summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2020-06-18 11:03:07 -0600
committerCommit Bot <commit-bot@chromium.org>2020-07-02 02:40:35 +0000
commit02fa7aa3134cab7a616069e7259cb63664aa1983 (patch)
treee75d4eca4d8635ed1cf435f77fdb377218d6e0a4
parentc50dc646789a4489a1bb3e3f33db3459d1d26529 (diff)
downloadchrome-ec-02fa7aa3134cab7a616069e7259cb63664aa1983.tar.gz
delbin: Move USB DB checks from baseboard
Update Delbin USB daughterboard options to match project configuration. BUG=b:155497872 BRANCH=none TEST=make BOARD=delbin TEST=make buildall Cq-Depend: chromium:2247617, chromium:2248238, chromium:2248239 Cq-Depend: chromium:2248240, chromium:2248241, chromium:2248242 Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I372b31093642e6fc94adb63695941e9c41346916 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2252484 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
-rw-r--r--board/delbin/board.c18
-rw-r--r--board/delbin/board.h2
2 files changed, 16 insertions, 4 deletions
diff --git a/board/delbin/board.c b/board/delbin/board.c
index 150c72a7f1..d7e7ad7f56 100644
--- a/board/delbin/board.c
+++ b/board/delbin/board.c
@@ -36,11 +36,12 @@
#define CPRINTS(format, args...) cprints(CC_CHIPSET, format, ## args)
/*
- * Reconfigure Volteer GPIOs based on the board ID
+ * FW_CONFIG defaults for Delbin if the CBI data is not initialized.
*/
-__override void config_volteer_gpios(void)
-{
-}
+union volteer_cbi_fw_config fw_config_defaults = {
+ /* Set all FW_CONFIG fields default to 0 */
+ .raw_value = 0,
+};
static void board_init(void)
{
@@ -232,4 +233,13 @@ const int usb_port_enable[USB_PORT_COUNT] = {
GPIO_EN_PP5000_USBA,
};
+void board_reset_pd_mcu(void)
+{
+ /* TODO(b/159336576): Delbin: check USB PD reset operation */
+}
+
+__override void board_cbi_init(void)
+{
+ /* TODO(b/159336576): Delbin: check FW_CONFIG fields for USB DB type */
+}
diff --git a/board/delbin/board.h b/board/delbin/board.h
index 0c81052f58..03c495d8d6 100644
--- a/board/delbin/board.h
+++ b/board/delbin/board.h
@@ -151,6 +151,8 @@ enum sensor_id {
SENSOR_COUNT,
};
+void board_reset_pd_mcu(void);
+
#endif /* !__ASSEMBLER__ */
#endif /* __CROS_EC_BOARD_H */