From 23149261dc4a9429a1c98aa829e02d4a3ec5103a Mon Sep 17 00:00:00 2001 From: Daisuke Nojiri Date: Thu, 30 Nov 2017 17:58:38 -0800 Subject: system: Allow hibernate to clear AP_OFF flag After firmware update, cr50 toggles the EC's reset line, expecting the system will boot. This isn't the case for Chromebox because it sets AP_OFF flag on a clean shutdown (to restore the previous power state after power loss & restore). This patch adds EC_REBOOT_HIBERNATE_CLEAR_AP_OFF to EC reboot command. It makes EC first clear AP_OFF then hibernate. BUG=b:69721737 BRANCH=none TEST=Verify Fizz reboot after cr50 update. Change-Id: If3207d7284f244ca1adf0d516ef744dbc739a9c1 Signed-off-by: Daisuke Nojiri Reviewed-on: https://chromium-review.googlesource.com/802632 Reviewed-by: Aaron Durbin --- chip/ish/system.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chip/ish/system.c') diff --git a/chip/ish/system.c b/chip/ish/system.c index bd8e0e265f..f532e8bf85 100644 --- a/chip/ish/system.c +++ b/chip/ish/system.c @@ -39,6 +39,11 @@ void chip_save_reset_flags(int flags) { } +uint32_t chip_read_reset_flags(void) +{ + return 0; +} + void _system_reset(int flags, int wake_from_hibernate) { } -- cgit v1.2.1