summaryrefslogtreecommitdiff
path: root/board/eldrid/board.c
diff options
context:
space:
mode:
authorlennon chen <lennon_chen@wistron.corp-partner.google.com>2020-08-27 00:59:51 +0800
committerCommit Bot <commit-bot@chromium.org>2020-08-27 04:12:41 +0000
commit48f8461f39fee6375963c8b556deab3f283215d4 (patch)
treebe446516fe6340dfa298bf2a2ff22a01515f49bd /board/eldrid/board.c
parentc2ecdc3e62b88aeca159337705ad231dbb9f7e0e (diff)
downloadchrome-ec-48f8461f39fee6375963c8b556deab3f283215d4.tar.gz
Eldrid: Modify GPIO setting for USB-C1 TCPC
The GPIO32 is N/C pin for Eldrid. When board ID=0, that will cause USB-C1 TCPC(PS8815) initialize failed. This change also sets the default daughter board type to USB3 active. BUG=None BRANCH=None TEST=make buildall -j, check USB-C1 TCPC init ready Signed-off-by: lennon chen <lennon_chen@wistron.corp-partner.google.com> Change-Id: Ifb3377cdd98e2ae51aa44945845851b8e6b5dc90 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2378405 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/eldrid/board.c')
-rw-r--r--board/eldrid/board.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/board/eldrid/board.c b/board/eldrid/board.c
index 14b528c214..36dc137516 100644
--- a/board/eldrid/board.c
+++ b/board/eldrid/board.c
@@ -51,7 +51,7 @@
* FW_CONFIG defaults for Volteer if the CBI data is not initialized.
*/
union volteer_cbi_fw_config fw_config_defaults = {
- .usb_db = DB_USB4_GEN2,
+ .usb_db = DB_USB3_ACTIVE,
};
static void board_init(void)
@@ -361,17 +361,6 @@ __override void board_cbi_init(void)
{
enum ec_cfg_usb_db_type usb_db = ec_cfg_usb_db_type();
- /* Reconfigure Volteer GPIOs based on the board ID */
- if (get_board_id() == 0) {
- CPRINTS("Configuring GPIOs for board ID 0");
- CPRINTS("VOLUME_UP button disabled");
-
- /* Reassign USB_C1_RT_RST_ODL */
- bb_controls[USBC_PORT_C1].retimer_rst_gpio =
- GPIO_USB_C1_RT_RST_ODL_BOARDID_0;
- ps8xxx_rst_odl = GPIO_USB_C1_RT_RST_ODL_BOARDID_0;
- }
-
switch (usb_db) {
case DB_USB_ABSENT:
CPRINTS("%sNone", db_type_prefix);