summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2017-06-30 14:38:11 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-10-04 21:44:32 -0700
commita5cc6b48191d7e43b85bc10a3f78ba4cd62b9e31 (patch)
tree014988d963cb147bfeaa395d8734e78b076cb1d0
parent12181aacdeed24db30241c597ea72259900b2e94 (diff)
downloadchrome-ec-a5cc6b48191d7e43b85bc10a3f78ba4cd62b9e31.tar.gz
Fizz: Lock system
This patch undefines CONFIG_SYSTEM_UNLOCKED, which forces the system to be unlocked, and defines CONFIG_USB_PD_COMM_LOCKED, which enables PD only if EC is in RW. With this change, if SW write-protect is enabled, the system will stay in G3 until 50W or more power is supplied. BUG=b:38462249 BRANCH=none TEST=Lock Fizz and boot it on type-c adapter. Verify RW image is successfully verified and executed. Change-Id: Id8255c5c8e6af93bda3fd4de079008561f46e14c Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/558377 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r--board/fizz/board.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/fizz/board.h b/board/fizz/board.h
index dbfd7b2f04..5c9059257b 100644
--- a/board/fizz/board.h
+++ b/board/fizz/board.h
@@ -12,7 +12,8 @@
* Allow dangerous commands.
* TODO: Remove this config before production.
*/
-#define CONFIG_SYSTEM_UNLOCKED
+#undef CONFIG_SYSTEM_UNLOCKED
+#define CONFIG_USB_PD_COMM_LOCKED
/* EC */
#define CONFIG_ADC