summaryrefslogtreecommitdiff
path: root/board/dratini/board.h
diff options
context:
space:
mode:
authorDevin Lu <devin.lu@quantatw.com>2019-10-17 16:53:53 +0800
committerCommit Bot <commit-bot@chromium.org>2019-10-21 03:23:42 +0000
commitddc3ecad7999e77256f5915d7fb36f42bd725d1a (patch)
treed9eb739149b726771b885a779d662ba9906e6116 /board/dratini/board.h
parentc40a6814ff463f1557dbaeb594bf2c33cb21cfbd (diff)
downloadchrome-ec-ddc3ecad7999e77256f5915d7fb36f42bd725d1a.tar.gz
dratini: disable accel, gyro sensors and tablet mode switch for clamshells
dratini and dragonair use the same PCB with BOM changes. Dratini uses a hall sensor instead of GMR, and does not stuff the accelerometer and gryo sensors. Disable initialization of those sensors on Dratini. Dratini is a clamshell that does not support tablet mode, so disable that, too. BUG=none BRANCH=none TEST=make buildall -j. make sure no initial event occurs with dratini. make sure tablet mode was disabled with dragonair. Change-Id: If65183f458d62f0b74e21233900d86102c4cc88d Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1866220 Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to 'board/dratini/board.h')
-rw-r--r--board/dratini/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/dratini/board.h b/board/dratini/board.h
index a7da73edae..96ac04021c 100644
--- a/board/dratini/board.h
+++ b/board/dratini/board.h
@@ -37,6 +37,7 @@
/* BMA253 Lid accel */
#define CONFIG_ACCEL_BMA255
#define CONFIG_ACCEL_FORCE_MODE_MASK (BIT(LID_ACCEL) | BIT(CLEAR_ALS))
+#define CONFIG_DYNAMIC_MOTION_SENSOR_COUNT
#define CONFIG_LID_ANGLE
#define CONFIG_LID_ANGLE_SENSOR_BASE BASE_ACCEL
#define CONFIG_LID_ANGLE_SENSOR_LID LID_ACCEL