storm: add code for detecting rec/dev/write protect switches' status

Hardware / Coreboot - Daisuke Nojiri [chromium.org] - 15 April 2015 14:55 UTC

The gpio access code has been moved to a separate file to match other platforms. Accessor functions are added to read different switches state. They will be read by verstage, when it is enabled, and by ramstage, for passing the values to depthcharge.

It is unfortunate that the gpio values are not being cached and can change by the time CBMEM table is filled, but we have to live with that for now.

BUG=chrome-os-partner:33756,chrome-os-partner:34161 BRANCH=storm TEST=none yet.

Change-Id: I229fed0e35d643912f929671d5fc25aee5d1d167

81193e6 storm: add code for detecting rec/dev/write protect switches' status
src/mainboard/google/storm/Makefile.inc | 1 +
src/mainboard/google/storm/chromeos.c | 71 +++++++++++++++++++++++++++++++
src/mainboard/google/storm/mainboard.c | 26 -----------
3 files changed, 72 insertions(+), 26 deletions(-)

Upstream: review.coreboot.org


  • Share