summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2018-02-28 15:40:54 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-03-01 16:13:34 -0800
commit097f5e6a0b1258dbb69842d1ebc6e4dd0142a5d7 (patch)
treef43ab68316d61f83afe68a84769b3b534dcf5f58
parente0e2645b1e5e9fa8d039fead439cf2da8cbe1966 (diff)
downloadchrome-ec-097f5e6a0b1258dbb69842d1ebc6e4dd0142a5d7.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>
-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 d9f12bc503..680358b6ea 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);