diff options
author | Denis Brockus <dbrockus@google.com> | 2021-10-26 16:50:44 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-03 21:43:57 +0000 |
commit | 7709b473263a7d8a740080ccbc848c54c76569d9 (patch) | |
tree | 9f1aeebc0c0617a43fa375121b56270955bed0ab /power | |
parent | 67b3cae16ba1a80407ccf7f82ec7695ba6cd44c1 (diff) | |
download | chrome-ec-7709b473263a7d8a740080ccbc848c54c76569d9.tar.gz |
zephyr: mt8192: gather power-signal information from DT
This currently only uses DT power-signal for
platforms that define CONFIG_AP_ARM_MTK_MT8192
BUG=b:188674805
BRANCH=none
TEST=zmake testall
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: I151c451f0725449459744b1ebda042c0c3aa6ad8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3246296
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Tested-by: Denis Brockus <dbrockus@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'power')
-rw-r--r-- | power/mt8192.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/power/mt8192.c b/power/mt8192.c index f1c8e994c1..1ec7a79c42 100644 --- a/power/mt8192.c +++ b/power/mt8192.c @@ -79,6 +79,8 @@ /* 30 ms for hard reset, we hold it longer to prevent TPM false alarm. */ #define SYS_RST_PULSE_LENGTH (50 * MSEC) +#ifndef CONFIG_ZEPHYR + /* power signal list. Must match order of enum power_signal. */ const struct power_signal_info power_signal_list[] = { {GPIO_PMIC_EC_PWRGD, POWER_SIGNAL_ACTIVE_HIGH, "PMIC_PWR_GOOD"}, @@ -87,6 +89,8 @@ const struct power_signal_info power_signal_list[] = { }; BUILD_ASSERT(ARRAY_SIZE(power_signal_list) == POWER_SIGNAL_COUNT); +#endif /* !CONFIG_ZEPHYR */ + static int forcing_shutdown; static void watchdog_interrupt_deferred(void) |