diff options
author | james_chao <james_chao@asus.com> | 2016-08-31 21:07:20 +0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2017-01-05 14:46:39 +0000 |
commit | 8eb30b054de5a787e677458f1c6ab42789c828de (patch) | |
tree | 8f0b4bb267105e0837996a44571a452071aa0fd7 | |
parent | bce3965c51a928bc5264c341618285be649a7ddf (diff) | |
download | chrome-ec-8eb30b054de5a787e677458f1c6ab42789c828de.tar.gz |
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 <james_chao@asus.com>
Reviewed-on: https://chromium-review.googlesource.com/378565
Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r-- | power/braswell.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 |