Mary Ruthven would like Bill Richardson and Vadim Bendebury to review cr50: enable write protect.
cr50: enable write protect Enable write protect based on the type of image being built. Write protect will be enabled on production images and disabled on dev images. BUG=chrome-os-partner:55604 BUG=chrome-os-partner:49959 BRANCH=none TEST=verify wp is enabled unless the image is built with CR50_DEV=1 Change-Id: Ibcd7f35fb4b33142c94e59e8c103624fce4e0b10 Signed-off-by: Mary Ruthven <mrut...@chromium.org> --- M board/cr50/board.c 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/board/cr50/board.c b/board/cr50/board.c index 686387e..520c7d8 100644 --- a/board/cr50/board.c +++ b/board/cr50/board.c @@ -304,8 +304,8 @@ /* Initialize NvMem partitions */ nvmem_init(); - /* TODO(crosbug.com/p/49959): For now, leave flash WP unlocked */ - GREG32(RBOX, EC_WP_L) = 1; + /* Enable write protect on production images. Disable it on dev */ + GREG32(RBOX, EC_WP_L) = !console_is_restricted(); /* Indication that firmware is running, for debug purposes. */ GREG32(PMU, PWRDN_SCRATCH16) = 0xCAFECAFE;
To view, visit this change. To unsubscribe, visit settings.
Mary Ruthven posted comments on cr50: enable write protect.
Patch Set 1: Verified+1
To view, visit this change. To unsubscribe, visit settings.
Bill Richardson posted comments on cr50: enable write protect.
Patch Set 1: Code-Review+2 (1 comment)
BUG=chrome-os-partner:55604 BUG=chrome-os-partner:49959
Also 58961
To view, visit this change. To unsubscribe, visit settings.
Mary Ruthven uploaded patch set #2 to cr50: enable write protect.
cr50: enable write protect Enable write protect based on the type of image being built. Write protect will be enabled on production images and disabled on dev images. BUG=chrome-os-partner:49959 BUG=chrome-os-partner:55604 BUG=chrome-os-partner:58961 BRANCH=none TEST=verify wp is enabled unless the image is built with CR50_DEV=1 Change-Id: Ibcd7f35fb4b33142c94e59e8c103624fce4e0b10 Signed-off-by: Mary Ruthven <mrut...@chromium.org> --- M board/cr50/board.c 1 file changed, 2 insertions(+), 2 deletions(-)
To view, visit this change. To unsubscribe, visit settings.
Mary Ruthven posted comments on cr50: enable write protect.
Patch Set 2: Verified+1 Commit-Queue+1 (1 comment)
BUG=chrome-os-partner:49959 BUG=chrome-os-partner:55604
Also 58961
Done
To view, visit this change. To unsubscribe, visit settings.