summaryrefslogtreecommitdiff
path: root/zephyr/test/drivers/common/src/stubs.c
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/test/drivers/common/src/stubs.c')
-rw-r--r--zephyr/test/drivers/common/src/stubs.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/zephyr/test/drivers/common/src/stubs.c b/zephyr/test/drivers/common/src/stubs.c
index cb0e915017..9943164417 100644
--- a/zephyr/test/drivers/common/src/stubs.c
+++ b/zephyr/test/drivers/common/src/stubs.c
@@ -188,12 +188,14 @@ void ppc_alert(enum gpio_signal signal)
*/
static void stubs_interrupt_init(void)
{
+ cprints(CC_USB, "Resetting TCPCs...");
+ cflush();
+
+#if !(CONFIG_PLATFORM_EC_TCPC_INTERRUPT)
/* Enable TCPC interrupts. */
gpio_enable_dt_interrupt(GPIO_INT_FROM_NODELABEL(int_usb_c0));
gpio_enable_dt_interrupt(GPIO_INT_FROM_NODELABEL(int_usb_c1));
-
- cprints(CC_USB, "Resetting TCPCs...");
- cflush();
+#endif
/* Reset generic TCPCI on port 0. */
gpio_pin_set_dt(GPIO_DT_FROM_NODELABEL(usb_c0_tcpc_rst_l), 0);