diff options
Diffstat (limited to 'board')
-rw-r--r-- | board/brya/usbc_config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/board/brya/usbc_config.c b/board/brya/usbc_config.c index ba5b2d4b48..cac3b80e7c 100644 --- a/board/brya/usbc_config.c +++ b/board/brya/usbc_config.c @@ -390,6 +390,7 @@ static void board_tcpc_init(void) * C0/C2 TCPC, so they must be set up after the TCPC has * been taken out of reset. */ +#ifndef CONFIG_ZEPHYR if (get_board_id() == 1) { ioex_init(IOEX_ID_1_C0_NCT38XX); ioex_init(IOEX_ID_1_C2_NCT38XX); @@ -397,6 +398,10 @@ static void board_tcpc_init(void) ioex_init(IOEX_C0_NCT38XX); ioex_init(IOEX_C2_NCT38XX); } +#else + gpio_reset_port(DEVICE_DT_GET(DT_NODELABEL(ioex_port1))); + gpio_reset_port(DEVICE_DT_GET(DT_NODELABEL(ioex_port2))); +#endif /* Enable PPC interrupts. */ gpio_enable_interrupt(GPIO_USB_C0_PPC_INT_ODL); |