diff options
author | Evan Green <evgreen@chromium.org> | 2021-01-19 16:21:36 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-26 00:42:05 +0000 |
commit | e8faab25e6926460fbb6a0427b3d93edb2825b33 (patch) | |
tree | 73ea245aece6f42fcd0ba29632da8da43008a002 /board | |
parent | affbf150d56d16cbb881e239b78a38512152e777 (diff) | |
download | chrome-ec-e8faab25e6926460fbb6a0427b3d93edb2825b33.tar.gz |
dedede: Add MKBP_EVENT to baseboard
CtsSensorTestCases is failing on Drawcia because it requests 100
events from accelerometer and gyroscope but gets zero. We can
read sensor events just fine, but they never seem to push to the
kernel. Add CONFIG_MKBP_EVENT into the baseboard, and then clean up
all the one-off variants that have added this themselves. Also, add
some accel commands specific to drawcia for easier debugging.
BUG=b:171939568
BRANCH=none
TEST=Use amstan's script, which amounts to cat /dev/iio:deviceN
Signed-off-by: Evan Green <evgreen@chromium.org>
Change-Id: Ia796ec2f9a08d3628dcabb4b5fca425693af4099
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2638636
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/drawcia/board.h | 3 | ||||
-rw-r--r-- | board/madoo/board.h | 3 | ||||
-rw-r--r-- | board/magolor/board.h | 3 | ||||
-rw-r--r-- | board/metaknight/board.h | 3 | ||||
-rw-r--r-- | board/sasuke/board.h | 3 | ||||
-rw-r--r-- | board/waddledoo/board.h | 3 |
6 files changed, 3 insertions, 15 deletions
diff --git a/board/drawcia/board.h b/board/drawcia/board.h index 0808a21315..0479234318 100644 --- a/board/drawcia/board.h +++ b/board/drawcia/board.h @@ -40,6 +40,9 @@ /* Sensors without hardware FIFO are in forced mode */ #define CONFIG_ACCEL_FORCE_MODE_MASK BIT(LID_ACCEL) +#define CONFIG_CMD_ACCELS +#define CONFIG_CMD_ACCEL_INFO + #define CONFIG_ACCEL_INTERRUPTS /* Enable sensor fifo, must also define the _SIZE and _THRES */ #define CONFIG_ACCEL_FIFO diff --git a/board/madoo/board.h b/board/madoo/board.h index 020793f830..f18d2a0cfe 100644 --- a/board/madoo/board.h +++ b/board/madoo/board.h @@ -103,9 +103,6 @@ #define CONFIG_ACCEL_LSM6DSM_INT_EVENT \ TASK_EVENT_MOTION_SENSOR_INTERRUPT(BASE_ACCEL) -#define CONFIG_MKBP_EVENT -#define CONFIG_MKBP_USE_GPIO - #define CONFIG_BATTERY_DEVICE_CHEMISTRY "LION" #define CONFIG_BATTERY_FUEL_GAUGE diff --git a/board/magolor/board.h b/board/magolor/board.h index cab934da2b..648d431be5 100644 --- a/board/magolor/board.h +++ b/board/magolor/board.h @@ -145,9 +145,6 @@ #define CONFIG_TABLET_MODE_SWITCH #define CONFIG_GMR_TABLET_MODE -#define CONFIG_MKBP_EVENT -#define CONFIG_MKBP_USE_GPIO - /* Volume Button feature */ #define CONFIG_ADC_BUTTONS #define CONFIG_VOLUME_BUTTONS diff --git a/board/metaknight/board.h b/board/metaknight/board.h index 2761f0346f..25d402c10a 100644 --- a/board/metaknight/board.h +++ b/board/metaknight/board.h @@ -129,9 +129,6 @@ #define CONFIG_TABLET_MODE_SWITCH #define CONFIG_GMR_TABLET_MODE -#define CONFIG_MKBP_EVENT -#define CONFIG_MKBP_USE_GPIO - /* Volume Button feature */ #define CONFIG_ADC_BUTTONS #define CONFIG_VOLUME_BUTTONS diff --git a/board/sasuke/board.h b/board/sasuke/board.h index b2a79a499c..54fc3292b0 100644 --- a/board/sasuke/board.h +++ b/board/sasuke/board.h @@ -122,9 +122,6 @@ #define GPIO_EC_I2C_SUB_USB_C1_SCL GPIO_EC_I2C_SUB_C1_SCL_HDMI_EN_ODL #define GPIO_EC_I2C_SUB_USB_C1_SDA GPIO_EC_I2C_SUB_C1_SDA_HDMI_HPD_ODL -#define CONFIG_MKBP_EVENT -#define CONFIG_MKBP_USE_GPIO - #define CONFIG_MATH_UTIL #ifndef __ASSEMBLER__ diff --git a/board/waddledoo/board.h b/board/waddledoo/board.h index c286507638..d2c013dffd 100644 --- a/board/waddledoo/board.h +++ b/board/waddledoo/board.h @@ -139,9 +139,6 @@ #define CONFIG_TABLET_MODE_SWITCH #define CONFIG_GMR_TABLET_MODE -#define CONFIG_MKBP_EVENT -#define CONFIG_MKBP_USE_GPIO - #ifndef __ASSEMBLER__ #include "gpio_signal.h" |