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/it83xx | |
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/it83xx')
-rw-r--r-- | chip/it83xx/registers.h | 5 |
1 files changed, 5 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) --- */ |