summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2018-05-18 10:17:50 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-05-18 20:08:18 -0700
commit3c6894cacc46d84a8e14bd1ed9b1253d75945adc (patch)
tree7c093592f7b697398921406e90229e161bd65975 /common
parenta91ca602150f1bf5c98b00ad4b75f33c7a9f3fc8 (diff)
downloadchrome-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 'common')
-rw-r--r--common/ccd_config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/ccd_config.c b/common/ccd_config.c
index 4c49180123..74b20faed7 100644
--- a/common/ccd_config.c
+++ b/common/ccd_config.c
@@ -677,6 +677,10 @@ static int command_ccd_info(void)
cflush();
}
+ ccprintf("TPM:%s%s\n",
+ board_fwmp_allows_unlock() ? "" : " fwmp_lock",
+ board_vboot_dev_mode_enabled() ? " dev_mode" : "");
+
ccputs("Use 'ccd help' to print subcommands\n");
return EC_SUCCESS;
}