summaryrefslogtreecommitdiff
path: root/src/security
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2019-01-22 15:50:01 -0800
committerPatrick Georgi <pgeorgi@google.com>2019-01-24 13:55:21 +0000
commitb2e610011cfa8c821d93b474274fdab383462c49 (patch)
tree71111bd5904c356cf633919e55784b16671cd2b5 /src/security
parent2b27e236b52fc3ce022bae7bf0eafb7651a86554 (diff)
mb/google/sarien: Fix recovery mode detection
In order to support the physical recovery GPIO on sarien it needs to enable the option VBOOT_PHYSICAL_REC_SWITCH and set the GPIO number in the coreboot table appropriately so that depthcharge can correctly determine the GPIO number. The same is done for the write protect GPIO in this table. Additionally since we are reading a recovery request from H1 it needs to cache the result since H1 will only return true on the first request. All subsequent queries to H1 will not indicate recovery. Add a CAR global here to keep track of the state and only read it from H1 the first time. BUG=b:121380403 TEST=test_that DUT firmware_DevMode Change-Id: Ia816a2e285d3c2c3769b25fc5d20147abbc71421 Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: https://review.coreboot.org/c/31043 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/security')
0 files changed, 0 insertions, 0 deletions