From 75dffd13af1c810d46fca88c9846af4653843145 Mon Sep 17 00:00:00 2001 From: Wai-Hong Tam Date: Fri, 2 Oct 2020 16:17:29 -0700 Subject: Trogdor: Assert a GPIO to turn off rails before enter hibernate We disabled the PSL mode hibernate. We uses another GPIO to control switches, which were originally controlled by PSL_OUT. Add this GPIO, named HIBERNATE_L, such that the non-PSL mode hibernate can retrofit the original design. BRANCH=None BUG=b:169797080 TEST=Triggered EC hibernate and checked the HIBERNATE_L GPIO asserted. Change-Id: I69c0d0296f701f3027adfd4d27fa51bdae0844a5 Signed-off-by: Wai-Hong Tam Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2446662 Reviewed-by: Alexandru M Stan --- board/pompom/gpio.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'board/pompom') diff --git a/board/pompom/gpio.inc b/board/pompom/gpio.inc index 80753d9d42..4d731686a0 100644 --- a/board/pompom/gpio.inc +++ b/board/pompom/gpio.inc @@ -55,6 +55,7 @@ GPIO(EC_INT_L, PIN(A, 2), GPIO_ODR_HIGH) /* Interrupt line between GPIO(QSIP_ON, PIN(5, 0), GPIO_OUT_LOW) /* Not used, for non-switchcap testing */ /* Power enables */ +GPIO(HIBERNATE_L, PIN(5, 2), GPIO_OUT_HIGH) /* EC hibernate */ GPIO(SWITCHCAP_ON, PIN(D, 5), GPIO_OUT_LOW) /* Enable switch cap */ /* TODO(waihong): Remove it. The VBOB switch is for backup. */ GPIO(VBOB_EN, PIN(D, 3), GPIO_OUT_LOW) /* Enable VBOB */ -- cgit v1.2.1