diff options
author | Denis Brockus <dbrockus@google.com> | 2021-05-13 16:01:13 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-19 19:57:44 +0000 |
commit | def759427d9bc1781e7b23a536694fd0ab8bb01f (patch) | |
tree | bb48994d08866dadd22f9ac8c6112a867a2c819c /power | |
parent | ba6eac081e5b4982346dc63059b4513786b379f7 (diff) | |
download | chrome-ec-def759427d9bc1781e7b23a536694fd0ab8bb01f.tar.gz |
zephyr: asurada: Enable power button and sequencing
BUG=b:180980668
BRANCH=none
TEST=get powerbtn command in shell
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: I1af4673b7eff84149e3aabad7ff09445a1f96e1b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2895306
Tested-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Yuval Peress <peress@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'power')
-rw-r--r-- | power/build.mk | 2 | ||||
-rw-r--r-- | power/it8xxx2.c | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/power/build.mk b/power/build.mk index e2b86a055e..f78605b18f 100644 --- a/power/build.mk +++ b/power/build.mk @@ -17,7 +17,7 @@ power-$(CONFIG_CHIPSET_ECDRIVEN)+=ec_driven.o power-$(CONFIG_CHIPSET_ICELAKE)+=icelake.o intel_x86.o power-$(CONFIG_CHIPSET_MT817X)+=mt817x.o power-$(CONFIG_CHIPSET_MT8183)+=mt8183.o -power-$(CONFIG_CHIPSET_MT8192)+=mt8192.o +power-$(CONFIG_CHIPSET_MT8192)+=it8xxx2.o mt8192.o power-$(CONFIG_CHIPSET_CEZANNE)+=amd_x86.o power-$(CONFIG_CHIPSET_RK3288)+=rk3288.o power-$(CONFIG_CHIPSET_RK3399)+=rk3399.o diff --git a/power/it8xxx2.c b/power/it8xxx2.c new file mode 100644 index 0000000000..7d758b29bd --- /dev/null +++ b/power/it8xxx2.c @@ -0,0 +1,14 @@ +/* Copyright 2021 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ +#include "gpio.h" +#include "power.h" + +/* 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"}, + {GPIO_AP_IN_SLEEP_L, POWER_SIGNAL_ACTIVE_LOW, "AP_IN_S3_L"}, + {GPIO_AP_EC_WATCHDOG_L, POWER_SIGNAL_ACTIVE_LOW, "AP_WDT_ASSERTED"}, +}; +BUILD_ASSERT(ARRAY_SIZE(power_signal_list) == POWER_SIGNAL_COUNT); |