diff options
author | Devin Lu <Devin.Lu@quantatw.com> | 2021-06-30 11:36:32 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-01 08:45:50 +0000 |
commit | a6c32af9a32ae095fcb6d51ff668e68f4a3890e7 (patch) | |
tree | 0a521abda155fa68b6facb0999e28a3fe7d48aa0 /board/redrix/usbc_config.c | |
parent | e039057ac888e5c65f56600f5e4ef27887e7e128 (diff) | |
download | chrome-ec-a6c32af9a32ae095fcb6d51ff668e68f4a3890e7.tar.gz |
redrix: Remove board ID 1 support
Redrix is now p2 schematic. Remove unused board ID configuration.
BUG=none
BRANCH=none
TEST=make BOARD=redrix
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: Iea2d824641ae35c135b45742fe1e34dd99931f42
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2995899
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Diffstat (limited to 'board/redrix/usbc_config.c')
-rw-r--r-- | board/redrix/usbc_config.c | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/board/redrix/usbc_config.c b/board/redrix/usbc_config.c index 4c84b814aa..8307d18b84 100644 --- a/board/redrix/usbc_config.c +++ b/board/redrix/usbc_config.c @@ -203,10 +203,7 @@ __override int bb_retimer_power_enable(const struct usb_mux *me, bool enable) enum ioex_signal rst_signal; if (me->usb_port == USBC_PORT_C0) { - if (get_board_id() == 1) - rst_signal = IOEX_ID_1_USB_C0_RT_RST_ODL; - else - rst_signal = IOEX_USB_C0_RT_RST_ODL; + rst_signal = IOEX_USB_C0_RT_RST_ODL; } else if (me->usb_port == USBC_PORT_C2) { rst_signal = IOEX_USB_C2_RT_RST_ODL; } else { @@ -231,20 +228,6 @@ __override int bb_retimer_power_enable(const struct usb_mux *me, bool enable) * which powers I2C controller within retimer */ msleep(1); - if (get_board_id() == 1) { - int val; - - /* - * Check if we were able to deassert - * reset. Board ID 1 uses a GPIO that is - * uncontrollable when a debug accessory is - * connected. - */ - if (ioex_get_level(rst_signal, &val) != EC_SUCCESS) - return EC_ERROR_UNKNOWN; - if (val != 1) - return EC_ERROR_NOT_POWERED; - } } else { ioex_set_level(rst_signal, 0); msleep(1); @@ -254,18 +237,11 @@ __override int bb_retimer_power_enable(const struct usb_mux *me, bool enable) void board_reset_pd_mcu(void) { - enum gpio_signal tcpc_rst; - - if (get_board_id() == 1) - tcpc_rst = GPIO_ID_1_USB_C0_C2_TCPC_RST_ODL; - else - tcpc_rst = GPIO_USB_C0_C2_TCPC_RST_ODL; - /* * TODO(b/179648104): figure out correct timing */ - gpio_set_level(tcpc_rst, 0); + gpio_set_level(GPIO_USB_C0_C2_TCPC_RST_ODL, 0); if (ec_cfg_usb_db_type() != DB_USB_ABSENT) { gpio_set_level(GPIO_USB_C1_RST_ODL, 0); gpio_set_level(GPIO_USB_C1_RT_RST_R_ODL, 0); @@ -277,7 +253,7 @@ void board_reset_pd_mcu(void) msleep(20); - gpio_set_level(tcpc_rst, 1); + gpio_set_level(GPIO_USB_C0_C2_TCPC_RST_ODL, 1); if (ec_cfg_usb_db_type() != DB_USB_ABSENT) { gpio_set_level(GPIO_USB_C1_RST_ODL, 1); gpio_set_level(GPIO_USB_C1_RT_RST_R_ODL, 1); |