diff options
Diffstat (limited to 'zephyr/shim/include/usbc/tcpc_ccgxxf.h')
-rw-r--r-- | zephyr/shim/include/usbc/tcpc_ccgxxf.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/zephyr/shim/include/usbc/tcpc_ccgxxf.h b/zephyr/shim/include/usbc/tcpc_ccgxxf.h index 731ffcbc80..d28033e053 100644 --- a/zephyr/shim/include/usbc/tcpc_ccgxxf.h +++ b/zephyr/shim/include/usbc/tcpc_ccgxxf.h @@ -18,7 +18,10 @@ }, \ .drv = &ccgxxf_tcpm_drv, \ .flags = TCPC_FLAGS_TCPCI_REV2_0, \ - .alert_signal = COND_CODE_1(DT_NODE_HAS_PROP(id, int_pin), \ - (GPIO_SIGNAL(DT_PHANDLE(id, int_pin))), \ - (GPIO_LIMIT)), \ + COND_CODE_1(CONFIG_PLATFORM_EC_TCPC_INTERRUPT, \ + (.irq_gpio = GPIO_DT_SPEC_GET_OR(id, irq_gpios, {})), \ + (.alert_signal = COND_CODE_1( \ + DT_NODE_HAS_PROP(id, int_pin), \ + (GPIO_SIGNAL(DT_PHANDLE(id, int_pin))), \ + (GPIO_LIMIT)))), \ }, |