diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2019-12-08 00:28:48 -0800 |
---|---|---|
committer | Justin TerAvest <teravest@chromium.org> | 2019-12-09 02:50:24 +0000 |
commit | 6f96b488deffa19f7fc0075ed586410c32f3a379 (patch) | |
tree | c5ac66a14d9e19bb9ddfea15678de192ca4e9e79 /board/garg/board.c | |
parent | fb1d26a58e5511d70f747e8b943096c22dead07c (diff) | |
download | chrome-ec-6f96b488deffa19f7fc0075ed586410c32f3a379.tar.gz |
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 <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1957374
Reviewed-by: Justin TerAvest <teravest@chromium.org>
Tested-by: Justin TerAvest <teravest@chromium.org>
Diffstat (limited to 'board/garg/board.c')
-rw-r--r-- | board/garg/board.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/garg/board.c b/board/garg/board.c index 3aa4c5cb65..6d740e6650 100644 --- a/board/garg/board.c +++ b/board/garg/board.c @@ -149,6 +149,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] = { |