summaryrefslogtreecommitdiff
path: root/include/gpio.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpio.h')
-rw-r--r--include/gpio.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/gpio.h b/include/gpio.h
index 75f23c5935..3b39ad9314 100644
--- a/include/gpio.h
+++ b/include/gpio.h
@@ -293,4 +293,13 @@ void gpio_set_alternate_function(uint32_t port, uint32_t mask, int func);
int gpio_power_down_module(enum module_id id);
#endif
+/*
+ * Check if signal is a valid GPIO signal, and not IO expander (enum
+ * ioex_signal) or eSPI virtual wire (enum espi_vw_signal).
+ *
+ * @param signal GPIO or IOEX or VW signal
+ * @return 1 if signal is GPIO else return 0
+ */
+int signal_is_gpio(int signal);
+
#endif /* __CROS_EC_GPIO_H */