google/storm: support factory reset (wipeout) request

Hardware / Coreboot - Vadim Bendebury [chromium.org] - 22 April 2015 12:53 UTC

The recovery switch on storm is overloaded: it needs to be pressed for a certain duration at startup to signal different requests:

- keeping it pressed for 8 to 16 seconds after startup signals the need for factory reset (wipeout);- keeping it pressed for longer than 16 seconds signals the need for Chrome OS recovery.

This patch adds a function to report the wipeout request status and enables the new feature on Storm.

BRANCH=storm BUG=chrome-os-partner:37219

TEST=verified that keeping the recovery button pressed between 8 and 16 seconds at startup results in the wipeout request generated (crossystem 'wipeout_request' returns 1). Keeping the button pressed for more than 16 seconds triggers recovery mode.

Change-Id: I17131593e12833866a22837271feb0e6989e6750

381785d google/storm: support factory reset (wipeout) request
src/mainboard/google/storm/Kconfig | 1 +
src/mainboard/google/storm/chromeos.c | 73 +++++++++++++++++++++++++++------
2 files changed, 62 insertions(+), 12 deletions(-)

Upstream: review.coreboot.org


  • Share