diff options
author | Mary Ruthven <mruthven@chromium.org> | 2018-02-28 15:40:54 -0800 |
---|---|---|
committer | Philip Chen <philipchen@chromium.org> | 2018-11-16 22:01:00 +0000 |
commit | fed0195f5649651525b9dad72015931ad5872d53 (patch) | |
tree | 3b8f2f8f7d1a1b0a7b52729cb338655bec362d1a | |
parent | b3f093572e244205f62b009d677f9f7c82a81a8a (diff) | |
download | chrome-ec-fed0195f5649651525b9dad72015931ad5872d53.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/1333288
Reviewed-by: Marco Chen <marcochen@chromium.org>
Commit-Queue: Marco Chen <marcochen@chromium.org>
Tested-by: Marco Chen <marcochen@chromium.org>
(cherry picked from commit 560346bc02d1bd4b84ffd688541765e6856fb32e)
Reviewed-on: https://chromium-review.googlesource.com/c/1340488
Reviewed-by: Philip Chen <philipchen@chromium.org>
Commit-Queue: Philip Chen <philipchen@chromium.org>
Tested-by: Philip Chen <philipchen@chromium.org>
Trybot-Ready: Philip Chen <philipchen@chromium.org>
-rw-r--r-- | common/ccd_config.c | 11 |
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); |