summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2013-04-29 11:50:35 -0700
committerChromeBot <chrome-bot@google.com>2013-04-30 12:40:43 -0700
commitc947ec8b21339b6f40ab1691983d2c9522616f02 (patch)
tree36bf8d6eed7cc02a4131d22bef5c2ec9abb32d53
parentc2b63a88c542ca817376bea0a1f2cd1c5194294b (diff)
downloadchrome-ec-c947ec8b21339b6f40ab1691983d2c9522616f02.tar.gz
spring: de-activate EC console input when WP is on
Spring supports Toad cable on the micro-B connector. So let's define CONFIG_CONSOLE_RESTRICTED_INPUT on this platform in order to de-activate the input on the EC serial console when the Write-Protect is on. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=spring BUG=chrome-os-partner:18716 TEST=on Spring, try with and without write-protect, use successfully the EC console in the former case, and see "Console is DISABLED" in the latter case. Change-Id: I843582dd4950ce235db5cbb62dad2cad1fabf72c Reviewed-on: https://gerrit.chromium.org/gerrit/49638 Commit-Queue: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Vic Yang <victoryang@chromium.org>
-rw-r--r--board/spring/board.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/spring/board.h b/board/spring/board.h
index d48cfee283..50de094a81 100644
--- a/board/spring/board.h
+++ b/board/spring/board.h
@@ -14,6 +14,9 @@
/* Use USART1 as console serial port */
#define CONFIG_CONSOLE_UART 1
+/* Console is not accessible when EC is write-protected */
+#define CONFIG_CONSOLE_RESTRICTED_INPUT
+
/* use I2C for host communication */
#define CONFIG_I2C