summaryrefslogtreecommitdiff
path: root/src/vendorcode/google/chromeos
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2017-11-30 17:41:09 -0800
committerAaron Durbin <adurbin@chromium.org>2017-12-08 17:12:37 +0000
commit40d0bfa212d5516c68d3ad044334f7d2cc6b4445 (patch)
tree123df866ee4e44d970987200165e009b8b9ae1e2 /src/vendorcode/google/chromeos
parentff906fb95bab0c4c24c2589fd0de3b1d1d0b2e24 (diff)
downloadcoreboot-40d0bfa212d5516c68d3ad044334f7d2cc6b4445.tar.xz
cr50: Make EC clear AP_OFF before hibnernate
This patch makes AP send EC_REBOOT_HIBERNATE_CLEAR_AP_OFF, which makes EC clear AP_OFF flag then hibernate. This is needed to make Chromebox boot when cr50 toggles the EC's reset line after TURN_UPDATE_ON command. BUG=b:69721737 BRANCH=none CQ-DEPEND=CL:802632 TEST=Verify Fizz reboot after cr50 update. Change-Id: I5f590286393ac21382cab64afdccae92d3fc14ba Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://review.coreboot.org/22657 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/vendorcode/google/chromeos')
-rw-r--r--src/vendorcode/google/chromeos/cr50_enable_update.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vendorcode/google/chromeos/cr50_enable_update.c b/src/vendorcode/google/chromeos/cr50_enable_update.c
index 7e8806e2d7..b5e4b6cc67 100644
--- a/src/vendorcode/google/chromeos/cr50_enable_update.c
+++ b/src/vendorcode/google/chromeos/cr50_enable_update.c
@@ -61,9 +61,10 @@ static void enable_update(void *unused)
if (IS_ENABLED(CONFIG_POWER_OFF_ON_CR50_UPDATE)) {
if (IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC)) {
- printk(BIOS_INFO, "Hibernating EC.\n");
- google_chromeec_reboot(0, EC_REBOOT_HIBERNATE,
- EC_REBOOT_FLAG_ON_AP_SHUTDOWN);
+ printk(BIOS_INFO, "Hibernating EC. Clearing AP_OFF.\n");
+ google_chromeec_reboot(0,
+ EC_REBOOT_HIBERNATE_CLEAR_AP_OFF,
+ EC_REBOOT_FLAG_ON_AP_SHUTDOWN);
}
poweroff();
}