summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorPhilip Chen <philipchen@google.com>2017-02-16 02:07:28 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-06-06 17:09:27 -0700
commitd8036441ca85bdfbf6f8d3a8bd5547bf626d6f3d (patch)
tree02808b183bec9c5f15ea7e1d10248def1c7a3f75 /board
parentf7930038a1028776d6159b79178f394d2c76578e (diff)
downloadchrome-ec-d8036441ca85bdfbf6f8d3a8bd5547bf626d6f3d.tar.gz
scarlet: enable mkbp
BUG=chrome-os-partner:62987, b:62307687 CQ-DEPEND=CL:524987, CL:524034, CL:524973 BRANCH=scarlet TEST=manually push VolUp/VolDown on scarlet Change-Id: I593bdce6c69856c4099c8c17059f5fd1eb8aae33 Reviewed-on: https://chromium-review.googlesource.com/443746 Reviewed-by: Shawn N <shawnn@chromium.org> Commit-Queue: Philip Chen <philipchen@chromium.org> Tested-by: Philip Chen <philipchen@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/524981 Commit-Ready: Philip Chen <philipchen@chromium.org> Reviewed-by: Philip Chen <philipchen@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/scarlet/board.c6
-rw-r--r--board/scarlet/board.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/board/scarlet/board.c b/board/scarlet/board.c
index 188ed30371..388a5b4a94 100644
--- a/board/scarlet/board.c
+++ b/board/scarlet/board.c
@@ -561,3 +561,9 @@ int board_allow_i2c_passthru(int port)
{
return (port == I2C_PORT_VIRTUAL_BATTERY);
}
+
+int tablet_get_mode(void)
+{
+ /* Always in tablet mode */
+ return 1;
+}
diff --git a/board/scarlet/board.h b/board/scarlet/board.h
index 132e43e2ac..8d39658ace 100644
--- a/board/scarlet/board.h
+++ b/board/scarlet/board.h
@@ -191,6 +191,7 @@
/* Enable Accel over SPI */
#define CONFIG_SPI_ACCEL_PORT 0 /* SPI master port (SPIP) form BMI160 */
+#define CONFIG_KEYBOARD_PROTOCOL_MKBP
#define CONFIG_MKBP_EVENT
/* Define the MKBP events which are allowed to wakeup AP in S3. */
#define CONFIG_MKBP_WAKEUP_MASK \