summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/config.h3
-rw-r--r--include/power.h4
2 files changed, 7 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 70d9179789..cd09eed545 100644
--- a/include/config.h
+++ b/include/config.h
@@ -641,6 +641,9 @@
/*****************************************************************************/
+/* EC can choose power signal gpio by schematic version */
+#undef CONFIG_POWER_SIGNAL_RUNTIME_CONFIG
+
/* EC has GPIOs to allow board to reset RTC */
#undef CONFIG_BOARD_HAS_RTC_RESET
diff --git a/include/power.h b/include/power.h
index 41d7a5585d..fd0c9af432 100644
--- a/include/power.h
+++ b/include/power.h
@@ -69,7 +69,11 @@ struct power_signal_info {
* Each board must provide its signal list and a corresponding enum
* power_signal.
*/
+#ifdef CONFIG_POWER_SIGNAL_RUNTIME_CONFIG
+extern struct power_signal_info power_signal_list[];
+#else
extern const struct power_signal_info power_signal_list[];
+#endif
/* Convert enum power_signal to a mask for signal functions */
#define POWER_SIGNAL_MASK(signal) (1 << (signal))