From 5e963997895ef62d19e672d9c1a3f330a38bbd1c Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Wed, 23 Jan 2019 15:05:42 -0800 Subject: mb/google/sarien: Force power on after cr50 update By default this board is configured to not power up after an EC reset. However in the case of a cr50 firmware update that will reset the EC it will end up powered off. In order to have it stay powered up configure the board to power up. This will get reset to the configured default when it boots again. BUG=b:121380403 TEST=update cr50 firmware and reboot to ensure system boots and does not end up powered off. Change-Id: I85beae24b1bc56bb0813f1fd1305218f04b0c1c8 Signed-off-by: Duncan Laurie Reviewed-on: https://review.coreboot.org/c/31058 Reviewed-by: Stefan Reinauer Tested-by: build bot (Jenkins) --- src/mainboard/google/sarien/chromeos.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/mainboard/google') diff --git a/src/mainboard/google/sarien/chromeos.c b/src/mainboard/google/sarien/chromeos.c index 0ea237a407..f9e42e0f69 100644 --- a/src/mainboard/google/sarien/chromeos.c +++ b/src/mainboard/google/sarien/chromeos.c @@ -21,6 +21,10 @@ #include #include #include +#include +#include +#include +#include enum rec_mode_state { REC_MODE_UNINITIALIZED, @@ -111,3 +115,11 @@ int get_lid_switch(void) { return 1; } + +void mainboard_cr50_update_reset(void) +{ +#if ENV_RAMSTAGE + /* Ensure system powers up after CR50 reset */ + pmc_set_afterg3(PCH_DEV_PMC, MAINBOARD_POWER_STATE_ON); +#endif +} -- cgit v1.2.3