summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chip/it83xx/registers.h5
-rw-r--r--chip/mchp/registers.h5
-rw-r--r--chip/mec1322/registers.h5
-rw-r--r--chip/npcx/registers.h5
-rw-r--r--include/config.h3
5 files changed, 23 insertions, 0 deletions
diff --git a/chip/it83xx/registers.h b/chip/it83xx/registers.h
index 1d654295d2..be346c6153 100644
--- a/chip/it83xx/registers.h
+++ b/chip/it83xx/registers.h
@@ -1591,8 +1591,13 @@ enum i2c_channels {
#define USB_DP_DM_PULL_DOWN_EN BIT(4)
/* Wake pin definitions, defined at board-level */
+#ifndef CONFIG_HIBERNATE_WAKE_PINS_DYNAMIC
extern const enum gpio_signal hibernate_wake_pins[];
extern const int hibernate_wake_pins_used;
+#else
+extern enum gpio_signal hibernate_wake_pins[];
+extern int hibernate_wake_pins_used;
+#endif
/* --- MISC (not implemented yet) --- */
diff --git a/chip/mchp/registers.h b/chip/mchp/registers.h
index 145e61257d..05ecb42aad 100644
--- a/chip/mchp/registers.h
+++ b/chip/mchp/registers.h
@@ -2237,8 +2237,13 @@ typedef struct MCHP_dma_chan dma_chan_t;
#endif /* #ifdef CHIP_FAMILY */
/* Wake pin definitions, defined at board-level */
+#ifndef CONFIG_HIBERNATE_WAKE_PINS_DYNAMIC
extern const enum gpio_signal hibernate_wake_pins[];
extern const int hibernate_wake_pins_used;
+#else
+extern enum gpio_signal hibernate_wake_pins[];
+extern int hibernate_wake_pins_used;
+#endif
#endif /* __CROS_EC_REGISTERS_H */
diff --git a/chip/mec1322/registers.h b/chip/mec1322/registers.h
index c59b590ef8..7bbd9fb068 100644
--- a/chip/mec1322/registers.h
+++ b/chip/mec1322/registers.h
@@ -499,7 +499,12 @@ typedef volatile struct mec1322_dma_regs mec1322_dma_regs_t;
#define MEC1322_IRQ_RTC_ALARM 92
/* Wake pin definitions, defined at board-level */
+#ifndef CONFIG_HIBERNATE_WAKE_PINS_DYNAMIC
extern const enum gpio_signal hibernate_wake_pins[];
extern const int hibernate_wake_pins_used;
+#else
+extern enum gpio_signal hibernate_wake_pins[];
+extern int hibernate_wake_pins_used;
+#endif
#endif /* __CROS_EC_REGISTERS_H */
diff --git a/chip/npcx/registers.h b/chip/npcx/registers.h
index 5b173493d6..3c1cd4f006 100644
--- a/chip/npcx/registers.h
+++ b/chip/npcx/registers.h
@@ -2273,7 +2273,12 @@ static inline int npcx_is_uart(void)
#define NPCX_PS2_PSIEN_PS2_WUE 4
#define NPCX_PS2_PSIEN_PS2_CLK_SEL 7
+#ifndef CONFIG_HIBERNATE_WAKE_PINS_DYNAMIC
extern const enum gpio_signal hibernate_wake_pins[];
extern const int hibernate_wake_pins_used;
+#else
+extern enum gpio_signal hibernate_wake_pins[];
+extern int hibernate_wake_pins_used;
+#endif
#endif /* __CROS_EC_REGISTERS_H */
diff --git a/include/config.h b/include/config.h
index a6032b9f14..81ef70e5f0 100644
--- a/include/config.h
+++ b/include/config.h
@@ -2169,6 +2169,9 @@
*/
#undef CONFIG_HIBERNATE_PSL
+/* Wake up pins have non-const configuration. */
+#undef CONFIG_HIBERNATE_WAKE_PINS_DYNAMIC
+
/*
* Chip supports a 64-bit hardware timer and implements
* __hw_clock_source_read64 and __hw_clock_source_set64.