diff options
author | Scott Chao <scott.chao@bitland.corp-partner.google.com> | 2020-04-13 12:13:33 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-04-13 13:11:00 +0000 |
commit | 6328535c2e8350421412b02a5bc759cb97fec202 (patch) | |
tree | 7904aa456416debbbe525714e21656b1992ae1b7 /board/kakadu | |
parent | 08187869b6d4a18f7b319239d648dddff7b943cd (diff) | |
download | chrome-ec-6328535c2e8350421412b02a5bc759cb97fec202.tar.gz |
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 <scott.chao@bitland.corp-partner.google.com>
Change-Id: I355966aa1f209da6972e0bb12d4e03370f4a0313
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2145544
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Chen-Tsung Hsieh <chentsung@chromium.org>
Diffstat (limited to 'board/kakadu')
-rw-r--r-- | board/kakadu/board.c | 15 | ||||
-rw-r--r-- | board/kakadu/board.h | 10 |
2 files changed, 5 insertions, 20 deletions
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__ */ |