summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2018-02-28 15:40:54 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2018-03-14 01:19:54 +0000
commit41c7266a025cdc97085ae9cef19b9bc682e58e92 (patch)
tree4aaadb639a00cb7fcfc293c432b9517eae766003
parent1c6767c8a90eb389dd86058254b15495a6c3bdca (diff)
downloadchrome-ec-41c7266a025cdc97085ae9cef19b9bc682e58e92.tar.gz
cr50: include GscFullConsole in rma open
Set GscFullConsole to Always in RMA open. We need this to be accessible after rma open, so that we can use RMA open as a ccd open testlab replacement. Commands like rddkeepalive and bitbang are needed for testlab use, so they should be accessible after open. BUG=b:74019846 BRANCH=cr50, cr50-mp TEST=build, do rma open, verify commands are not locked out, and do rma disable Change-Id: Iaeb89cea94d478dc0eb25c92bb09d488d14cad41 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/942309 Reviewed-by: Randall Spangler <rspangler@chromium.org> (cherry picked from commit 097f5e6a0b1258dbb69842d1ebc6e4dd0142a5d7) Reviewed-on: https://chromium-review.googlesource.com/961614 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Tested-by: Vadim Bendebury <vbendeb@chromium.org> Commit-Queue: Vadim Bendebury <vbendeb@chromium.org>
-rw-r--r--common/ccd_config.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/common/ccd_config.c b/common/ccd_config.c
index 42150d45ef..e37cab7105 100644
--- a/common/ccd_config.c
+++ b/common/ccd_config.c
@@ -493,17 +493,8 @@ int ccd_reset_config(unsigned int flags)
int i;
/* Allow all capabilities all the time */
- for (i = 0; i < CCD_CAP_COUNT; i++) {
- /*
- * Restricted console commands are still IfOpened, but
- * that's kinda meaningless because we set a
- * well-defined password below.
- */
- if (i == CCD_CAP_GSC_RESTRICTED_CONSOLE)
- continue;
-
+ for (i = 0; i < CCD_CAP_COUNT; i++)
raw_set_cap(i, CCD_CAP_STATE_ALWAYS);
- }
/* Force WP disabled at boot */
raw_set_flag(CCD_FLAG_OVERRIDE_WP_AT_BOOT, 1);