diff options
-rw-r--r-- | zephyr/program/corsola/src/npcx_usbc.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/zephyr/program/corsola/src/npcx_usbc.c b/zephyr/program/corsola/src/npcx_usbc.c index 16d736338f..0ee6a43dc1 100644 --- a/zephyr/program/corsola/src/npcx_usbc.c +++ b/zephyr/program/corsola/src/npcx_usbc.c @@ -53,11 +53,8 @@ DECLARE_HOOK(HOOK_INIT, board_usb_mux_init, HOOK_PRIO_INIT_I2C + 1); void board_tcpc_init(void) { - /* Reset TCPC if we have had a system reset. - * With EFSv2, it is possible to be in RW without having reset the TCPC. - */ - if (!system_jumped_late() && - (system_get_reset_flags() & EC_RESET_FLAG_POWER_ON)) { + /* Only reset TCPC if not sysjump */ + if (!system_jumped_late()) { /* TODO(crosbug.com/p/61098): How long do we need to wait? */ board_reset_pd_mcu(); } @@ -85,12 +82,7 @@ __override int board_rt1718s_init(int port) { static bool gpio_initialized; - /* Reset TCPC sink/source control when it's a power-on reset. Do not - * alter the carried GPIO status or this might stop PPC sinking and - * brown-out the system when battery disconnected. - */ - if (!system_jumped_late() && !gpio_initialized && - (system_get_reset_flags() & EC_RESET_FLAG_POWER_ON)) { + if (!system_jumped_late() && !gpio_initialized) { /* set GPIO 1~3 as push pull, as output, output low. */ rt1718s_gpio_set_flags(port, RT1718S_GPIO1, GPIO_OUT_LOW); rt1718s_gpio_set_flags(port, RT1718S_GPIO2, GPIO_OUT_LOW); |