From 6328535c2e8350421412b02a5bc759cb97fec202 Mon Sep 17 00:00:00 2001 From: Scott Chao Date: Mon, 13 Apr 2020 12:13:33 +0800 Subject: kakadu: disable double tap Kakadu does not support double tap. BUG=b:153612734 BRANCH=kukui TEST=make -j BOARD=kakadu TEST=make buildall Signed-off-by: Scott Chao Change-Id: I355966aa1f209da6972e0bb12d4e03370f4a0313 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2145544 Reviewed-by: Hung-Te Lin Reviewed-by: Ting Shen Reviewed-by: Chen-Tsung Hsieh --- board/kakadu/board.c | 15 +++++---------- board/kakadu/board.h | 10 ---------- 2 files changed, 5 insertions(+), 20 deletions(-) (limited to 'board/kakadu') diff --git a/board/kakadu/board.c b/board/kakadu/board.c index bbd5010d82..5375f55f02 100644 --- a/board/kakadu/board.c +++ b/board/kakadu/board.c @@ -345,15 +345,10 @@ struct motion_sensor_t motion_sensors[] = { .min_frequency = LSM6DSM_ODR_MIN_VAL, .max_frequency = LSM6DSM_ODR_MAX_VAL, .config = { - /* Enable accel in S0 */ - [SENSOR_CONFIG_EC_S0] = { - .odr = TAP_ODR, - .ec_rate = 100 * MSEC, - }, - /* For double tap detection */ - [SENSOR_CONFIG_EC_S3] = { - .odr = TAP_ODR, - .ec_rate = 100 * MSEC, + /* Enable accel in S0 */ + [SENSOR_CONFIG_EC_S0] = { + .odr = 13000 | ROUND_UP_FLAG, + .ec_rate = 100 * MSEC, }, }, }, @@ -369,7 +364,7 @@ struct motion_sensor_t motion_sensors[] = { MOTIONSENSE_TYPE_GYRO), .port = I2C_PORT_ACCEL, .i2c_spi_addr_flags = LSM6DSM_ADDR0_FLAGS, - .default_range = 1000, /* dps */ + .default_range = 1000 | ROUND_UP_FLAG, /* dps */ .rot_standard_ref = &lid_standard_ref, .min_frequency = LSM6DSM_ODR_MIN_VAL, .max_frequency = LSM6DSM_ODR_MAX_VAL, diff --git a/board/kakadu/board.h b/board/kakadu/board.h index 4db58eb1e9..c3d1a083f4 100644 --- a/board/kakadu/board.h +++ b/board/kakadu/board.h @@ -113,16 +113,6 @@ int board_is_sourcing_vbus(int port); void pogo_adc_interrupt(enum gpio_signal signal); int board_discharge_on_ac(int enable); -/* Enable double tap detection */ -#define CONFIG_GESTURE_DETECTION -#define CONFIG_GESTURE_HOST_DETECTION -#define CONFIG_GESTURE_SENSOR_DOUBLE_TAP 0 -#define CONFIG_GESTURE_SENSOR_DOUBLE_TAP_FOR_HOST -#define CONFIG_GESTURE_SAMPLING_INTERVAL_MS 5 -#define CONFIG_GESTURE_TAP_THRES_MG 100 -#define CONFIG_GESTURE_TAP_MAX_INTERSTICE_T 500 -#define CONFIG_GESTURE_DETECTION_MASK \ - BIT(CONFIG_GESTURE_SENSOR_DOUBLE_TAP) #endif /* !__ASSEMBLER__ */ -- cgit v1.2.1