From 8eb30b054de5a787e677458f1c6ab42789c828de Mon Sep 17 00:00:00 2001 From: james_chao Date: Wed, 31 Aug 2016 21:07:20 +0800 Subject: braswell: call the watchdog_reload() when waiting to pseudo g3 BUG=chrome-os-partner:56811 BRANCH=firmware-terra-7287.154.B TEST=enter 'hibernate' in EC console, the ec should not reset. Change-Id: I71672ebc93cda94a8899a05f8baed46084622e3b Signed-off-by: james_chao Reviewed-on: https://chromium-review.googlesource.com/378565 Reviewed-by: Shawn N --- power/braswell.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/power/braswell.c b/power/braswell.c index 0fe6737677..a048ba7a1e 100644 --- a/power/braswell.c +++ b/power/braswell.c @@ -19,6 +19,7 @@ #include "timer.h" #include "usb_charge.h" #include "util.h" +#include "watchdog.h" #include "wireless.h" #include "registers.h" @@ -357,7 +358,8 @@ void enter_pseudo_g3(void) gpio_set_level(GPIO_SMC_SHUTDOWN, 1); /* Power to EC should shut down now */ + /* Terra11 shutdown takes several seconds, for unknown reasons */ while (1) - ; + watchdog_reload(); } #endif -- cgit v1.2.1