|
@@ -192,7 +192,7 @@
|
192
|
192
|
|
193
|
193
|
#define PD_RDO_OBJPOS_SET(i) (((i) << PD_RDO_OBJPOS_SHIFT) & PD_RDO_OBJPOS)
|
194
|
194
|
|
195
|
|
-/* Fixed and Variable RDO, no giveback support */
|
|
195
|
+/* Fixed and Variable RDO, no GiveBack support */
|
196
|
196
|
#define PD_RDO_FV_CURRENT_SHIFT 10
|
197
|
197
|
#define PD_RDO_FV_CURRENT (0x3FF << PD_RDO_FV_CURRENT_SHIFT)
|
198
|
198
|
#define PD_RDO_FV_MAX_CURRENT_SHIFT 0
|
|
@@ -201,7 +201,13 @@
|
201
|
201
|
#define PD_RDO_FV_CURRENT_SET(i) (((i) << PD_RDO_FV_CURRENT_SHIFT) & PD_RDO_FV_CURRENT)
|
202
|
202
|
#define PD_RDO_FV_MAX_CURRENT_SET(i) (((i) << PD_RDO_FV_MAX_CURRENT_SHIFT) & PD_RDO_FV_MAX_CURRENT)
|
203
|
203
|
|
204
|
|
-/* TODO: other types of RDO */
|
|
204
|
+/* Fixed and Variable RDO with GiveBack support */
|
|
205
|
+#define PD_RDO_FV_MIN_CURRENT_SHIFT 0
|
|
206
|
+#define PD_RDO_FV_MIN_CURRENT (0x3FF << PD_RDO_FV_MIN_CURRENT_SHIFT)
|
|
207
|
+
|
|
208
|
+#define PD_RDO_FV_MIN_CURRENT_SET(i) (((i) << PD_RDO_FV_MIN_CURRENT_SHIFT) & PD_RDO_FV_MIN_CURRENT)
|
|
209
|
+
|
|
210
|
+/* TODO: Battery RDOs */
|
205
|
211
|
|
206
|
212
|
|
207
|
213
|
/*
|