diff options
author | Randall Spangler <rspangler@chromium.org> | 2018-05-18 10:17:50 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-05-18 20:08:18 -0700 |
commit | 3c6894cacc46d84a8e14bd1ed9b1253d75945adc (patch) | |
tree | 7c093592f7b697398921406e90229e161bd65975 /board/cr50/board.h | |
parent | a91ca602150f1bf5c98b00ad4b75f33c7a9f3fc8 (diff) | |
download | chrome-ec-3c6894cacc46d84a8e14bd1ed9b1253d75945adc.tar.gz |
cr50: Add check for developer mode
This will be used as part of the checks for when to allow CCD open.
Add check for firmware space dev mode bit, based on the similar code
which reads the FWMP. Print the state of both bits in 'ccd get'.
BUG=b:79983505
BRANCH=cr50
TEST=With dev mode off, 'ccd get' does not report TPM: dev_mode.
Turn on dev mode via the recovery screen, and it does.
Change-Id: I6af78bb104004323cd377ed996e1db94bc36fc62
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1066391
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'board/cr50/board.h')
-rw-r--r-- | board/cr50/board.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/cr50/board.h b/board/cr50/board.h index cf179d5d11..edbfe263f2 100644 --- a/board/cr50/board.h +++ b/board/cr50/board.h @@ -268,6 +268,7 @@ void power_button_record(void); /* Functions needed by CCD config */ int board_battery_is_present(void); int board_fwmp_allows_unlock(void); +int board_vboot_dev_mode_enabled(void); void board_reboot_ap(void); int board_wipe_tpm(void); int board_is_first_factory_boot(void); |