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>2019-01-03 06:58:39 +0000
commitb210ef5048b14bc8931d8194163a32db4ec8eb4c (patch)
tree044655b2076929eaa03e3c089a45e66cfdf32eee
parent3647d96a1876e75f62ee3a6d45f577e5309d9630 (diff)
downloadchrome-ec-b210ef5048b14bc8931d8194163a32db4ec8eb4c.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> Reviewed-on: https://chromium-review.googlesource.com/c/1394410 Reviewed-by: Cheng-Han Yang <chenghan@chromium.org> Commit-Queue: Cheng-Han Yang <chenghan@chromium.org> Tested-by: Cheng-Han Yang <chenghan@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 70111b3e52..555a0eebbb 100644
--- a/common/ccd_config.c
+++ b/common/ccd_config.c
@@ -447,17 +447,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);