summaryrefslogtreecommitdiff
path: root/baseboard
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2020-03-12 13:00:19 -0600
committerCommit Bot <commit-bot@chromium.org>2020-03-16 19:11:46 +0000
commit3027dd55428433becca109b12b2df87291f5d66d (patch)
tree1e8cd718a2886b7c52d860c9791a38bf962a5f62 /baseboard
parent27f5a494fc2d6f40b4f33f1f6887f0836ff7e195 (diff)
downloadchrome-ec-3027dd55428433becca109b12b2df87291f5d66d.tar.gz
OCPC: Introduce charger enum
This enum will specify which charger is primary, and the number of total charger chips for the board. This will be pre-defined for boards using a single charger chip. BUG=b:147440290 BRANCH=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Id612ace560207a7805e103465fd4035d46beed8f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2101220 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'baseboard')
-rw-r--r--baseboard/dedede/baseboard.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/baseboard/dedede/baseboard.h b/baseboard/dedede/baseboard.h
index 320839271b..afc2b9995f 100644
--- a/baseboard/dedede/baseboard.h
+++ b/baseboard/dedede/baseboard.h
@@ -115,6 +115,7 @@
#define CONFIG_USB_CHARGER
#define CONFIG_USB_PD_5V_EN_CUSTOM
#define CONFIG_TRICKLE_CHARGING
+#undef CONFIG_CHARGER_SINGLE_CHIP
/* Keyboard */
#define CONFIG_KEYBOARD_COL2_INVERTED
@@ -207,6 +208,11 @@
#error "Must define a VARIANT_DEDEDE_EC!"
#endif
+enum chg_id {
+ CHARGER_PRIMARY,
+ CHARGER_SECONDARY,
+ CHARGER_NUM,
+};
/* Reset all TCPCs */
void board_reset_pd_mcu(void);