diff options
author | Andrew McRae <amcrae@google.com> | 2022-03-13 16:58:25 +1100 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-03-29 23:09:31 +0000 |
commit | 6ea4239b2caa21e1588a15078bfdba9b00a0a2a0 (patch) | |
tree | 2b062b22a7c02157546de615d8c854e9be9f72b2 /zephyr/projects/nissa/src/board_power.c | |
parent | 2bd5b88f7f77c5a3f4613bf48fe7e53de49e0813 (diff) | |
download | chrome-ec-6ea4239b2caa21e1588a15078bfdba9b00a0a2a0.tar.gz |
nissa: Add Nivviks ADC power signal handling
Split from chromium:3389663
Adds ADC signal processing for 3.3V and 1.05V rails.
Depends-on:
- https://github.com/zephyrproject-rtos/zephyr/pull/43398
- https://github.com/zephyrproject-rtos/zephyr/pull/41515
BUG=b:216667527
TEST=zmake build nivviks; flash and run
BRANCH=none
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: I55203f1c18ae5fca059cd3ff988cea025614ae74
Signed-off-by: Perez Priego, Bernardo <bernardo.perez.priego@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3518911
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Reviewed-by: Divya S Sasidharan <divya.s.sasidharan@intel.com>
Diffstat (limited to 'zephyr/projects/nissa/src/board_power.c')
-rw-r--r-- | zephyr/projects/nissa/src/board_power.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zephyr/projects/nissa/src/board_power.c b/zephyr/projects/nissa/src/board_power.c index d4576f1f67..78fd49cebc 100644 --- a/zephyr/projects/nissa/src/board_power.c +++ b/zephyr/projects/nissa/src/board_power.c @@ -121,11 +121,14 @@ int board_power_signal_get(enum power_signal signal) * Temporary workaround for ADC signal. * Assume always on. */ + +#ifdef CONFIG_BOARD_NEREID case PWR_DSW_PWROK: return 1; case PWR_PG_PP1P05: return 1; +#endif } } |