diff options
author | Ting Shen <phoenixshen@google.com> | 2020-08-06 16:53:44 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-06 17:15:34 +0000 |
commit | cdca80605b106d0fa580637b147c7af4d9ea5035 (patch) | |
tree | 16544e5ff3d3c917898467c2ed08e8c7782a0893 /chip/mchp | |
parent | 44d39b1af40f3759430cfdc995fe456a62585eff (diff) | |
download | chrome-ec-cdca80605b106d0fa580637b147c7af4d9ea5035.tar.gz |
chip: support dynamic hibernate_wake_pins config
Add CONFIG_HIBERNATE_WAKE_PINS_DYNAMIC to let board config
their wake pins at runtime.
BUG=b:162814191
TEST=make
BRANCH=master
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: Iae2072ec7239a0daa84222c23733b90153e732f1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2340730
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'chip/mchp')
-rw-r--r-- | chip/mchp/registers.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 */ |