diff options
author | Randall Spangler <rspangler@chromium.org> | 2014-04-29 10:22:16 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-04-30 10:00:02 +0000 |
commit | dd702e8447f278a322115c3ec1ce839db425c387 (patch) | |
tree | 1cb3aee685e6c561f4262569f416e02c22e6da9c /include/lpc.h | |
parent | 306e9a88b93908431ed6946c9c0ae6de309ceeec (diff) | |
download | chrome-ec-dd702e8447f278a322115c3ec1ce839db425c387.tar.gz |
baytrail: Workaround for stuck boot process
In some cases, the system will boot to S0 from the point of view of
the EC, but PLTRST# will never deassert. Work around this by waiting
50 ms for PLTRST# to deassert. If it doesn't, force the chipset all
the way down by deasserting RSMRST#, then pulse the power button to
turn it back on.
Also add a powerfail debug command to simulate this failure event, so
that the recovery process can be tested.
Add API to the LPC module to get the state of PLTRST#, and to the
power button state machine to force it released when we shut down the
chipset and and force another power button pulse as we reset the
chipset.
BUG=chrome-os-partner:28422
BRANCH=baytrail
TEST=1. Boot system. Should boot normally. Shut system down.
2. powerfail
3. Boot system. On the EC console, should see the system come up,
go back down through G3S5, then come back up. From the user's
point of view, it just boots.
1. Boot system. Should boot normally. (That is, powerfail is not sticky)
Change-Id: Ia57f196606f79b9f2fce7d9cd109ab932c3571aa
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/197523
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'include/lpc.h')
-rw-r--r-- | include/lpc.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/lpc.h b/include/lpc.h index 0ecaa6b822..c16b1bc5d4 100644 --- a/include/lpc.h +++ b/include/lpc.h @@ -96,4 +96,11 @@ void lpc_set_host_event_mask(enum lpc_host_event_type type, uint32_t mask); */ uint32_t lpc_get_host_event_mask(enum lpc_host_event_type type); +/** + * Return the state of platform reset. + * + * @return non-zero if PLTRST# is asserted (low); 0 if not asserted (high). + */ +int lpc_get_pltrst_asserted(void); + #endif /* __CROS_EC_LPC_H */ |