From ddc3ecad7999e77256f5915d7fb36f42bd725d1a Mon Sep 17 00:00:00 2001 From: Devin Lu Date: Thu, 17 Oct 2019 16:53:53 +0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1866220 Reviewed-by: Paul Fagerburg --- board/dratini/board.h | 1 + 1 file changed, 1 insertion(+) (limited to 'board/dratini/board.h') 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 -- cgit v1.2.1