diff options
author | Keith Short <keithshort@chromium.org> | 2020-11-04 12:54:27 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-05 01:06:57 +0000 |
commit | 77a38c2a933d50942e7e533d51ddf2d5353bf195 (patch) | |
tree | 3d61403cd6fed543fcb1877f221a44101817b445 /board/boldar/board.c | |
parent | 07df81e9fe268506952d7d6229c3d260e278d92a (diff) | |
download | chrome-ec-77a38c2a933d50942e7e533d51ddf2d5353bf195.tar.gz |
boldar: remove board ID 0 checks
Board ID 0 checks were only used on the volteer reference board.
BUG=b:149858568
BRANCH=firmware-volteer-13521.B-master
TEST=make buildall
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I96b6dd4e48ef4d8febb5ec31fc7d4c18ad365063
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2519962
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'board/boldar/board.c')
-rw-r--r-- | board/boldar/board.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/board/boldar/board.c b/board/boldar/board.c index 1993b241fb..32d7eaadb8 100644 --- a/board/boldar/board.c +++ b/board/boldar/board.c @@ -358,16 +358,14 @@ const int usb_port_enable[USB_PORT_COUNT] = { GPIO_EN_PP5000_USBA, }; -static enum gpio_signal ps8xxx_rst_odl = GPIO_USB_C1_RT_RST_ODL; - static void ps8815_reset(void) { int val; - gpio_set_level(ps8xxx_rst_odl, 0); + gpio_set_level(GPIO_USB_C1_RT_RST_ODL, 0); msleep(GENERIC_MAX(PS8XXX_RESET_DELAY_MS, PS8815_PWR_H_RST_H_DELAY_MS)); - gpio_set_level(ps8xxx_rst_odl, 1); + gpio_set_level(GPIO_USB_C1_RT_RST_ODL, 1); msleep(PS8815_FW_INIT_DELAY_MS); /* @@ -458,16 +456,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; - } config_port_discrete_tcpc(0); switch (usb_db) { case DB_USB_ABSENT: |