From 6f96b488deffa19f7fc0075ed586410c32f3a379 Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Sun, 8 Dec 2019 00:28:48 -0800 Subject: board: Set min/max frequency attributes On some boards, min_/max_frequency attributes were not set, esp. for kx022 acceleometers. BUG=b:145799480 BRANCH=octopus,coral TEST=compile Change-Id: I6d32926541505f02f183539ca3ad9f70c1ae7a6b Signed-off-by: Gwendal Grignou Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1957374 Reviewed-by: Justin TerAvest Tested-by: Justin TerAvest --- board/bobba/board.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'board/bobba/board.c') diff --git a/board/bobba/board.c b/board/bobba/board.c index 61503cce4d..9bbedbcb07 100644 --- a/board/bobba/board.c +++ b/board/bobba/board.c @@ -171,6 +171,8 @@ struct motion_sensor_t motion_sensors[] = { .i2c_spi_addr_flags = KX022_ADDR1_FLAGS, .rot_standard_ref = NULL, /* Identity matrix. */ .default_range = 4, /* g */ + .min_frequency = KX022_ACCEL_MIN_FREQ, + .max_frequency = KX022_ACCEL_MAX_FREQ, .config = { /* EC use accel for angle detection */ [SENSOR_CONFIG_EC_S0] = { -- cgit v1.2.1