summaryrefslogtreecommitdiff
path: root/board/adlrvpp_ite/board.c
diff options
context:
space:
mode:
authorSooraj Govindan <sooraj.govindan@intel.com>2020-11-05 22:45:15 +0530
committerCommit Bot <commit-bot@chromium.org>2020-11-10 07:20:56 +0000
commitf445f83ecbe4fb9196debf1b0eee5a3c84fd1013 (patch)
tree1edf6c11596098e18fe63683876d2ea7b0246103 /board/adlrvpp_ite/board.c
parentfdfcd39cfe0ea0fcf4ca64440480226c49cae50b (diff)
downloadchrome-ec-f445f83ecbe4fb9196debf1b0eee5a3c84fd1013.tar.gz
adlprvp: Add support for SYS_PWROK_EC
Per the power sequencing requirements, SYS_PWROK_EC should be driven based on ALL_SYS_PWRGD deassertion/assertion. BRANCH=None BUG=b:169551130 TEST=Build, flash and boot the Alderlake RVP platform to OS make BOARD=adlrvpp_ite -j; sudo util/flash_ec --board=adlrvpp_ite --image=<path> Signed-off-by: Sooraj Govindan <sooraj.govindan@intel.com> Change-Id: Ifd6805dc878cbbaa401f43b325a42d1b1431b1ed Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2521550 Tested-by: Sooraj Govindan <sooraj.govindan@intel.corp-partner.google.com> Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: caveh jalali <caveh@chromium.org>
Diffstat (limited to 'board/adlrvpp_ite/board.c')
-rw-r--r--board/adlrvpp_ite/board.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/board/adlrvpp_ite/board.c b/board/adlrvpp_ite/board.c
index ac3a501a67..b0b9c7789c 100644
--- a/board/adlrvpp_ite/board.c
+++ b/board/adlrvpp_ite/board.c
@@ -379,13 +379,22 @@ DECLARE_HOOK(HOOK_INIT, tcpc_aic_init, HOOK_PRIO_INIT_PCA9675);
/******************************************************************************/
/* PWROK signal configuration */
/*
- * On ADLRVP the ALL_SYS_PWRGD, VCCST_PWRGD, PCH_PWROK, and SYS_PWROK
- * signals are handled by the board. No EC control needed.
+ * On ADLRVP, SYS_PWROK_EC is an output controlled by EC and uses ALL_SYS_PWRGD
+ * as input.
*/
-const struct intel_x86_pwrok_signal pwrok_signal_assert_list[] = {};
+const struct intel_x86_pwrok_signal pwrok_signal_assert_list[] = {
+ {
+ .gpio = GPIO_SYS_PWROK_EC,
+ .delay_ms = 3,
+ },
+};
const int pwrok_signal_assert_count = ARRAY_SIZE(pwrok_signal_assert_list);
-const struct intel_x86_pwrok_signal pwrok_signal_deassert_list[] = {};
+const struct intel_x86_pwrok_signal pwrok_signal_deassert_list[] = {
+ {
+ .gpio = GPIO_SYS_PWROK_EC,
+ },
+};
const int pwrok_signal_deassert_count = ARRAY_SIZE(pwrok_signal_assert_list);
/*