diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2020-12-10 21:38:48 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-21 06:51:51 +0000 |
commit | e2882f20fa28810e735e1a8f0750674e7940eb2d (patch) | |
tree | 12cf288e7751a417f294bbfc502c96b920551289 /board/kohaku/board.c | |
parent | 89dbca62cb6b01f1242b01a44a8ac41c1cd6d151 (diff) | |
download | chrome-ec-e2882f20fa28810e735e1a8f0750674e7940eb2d.tar.gz |
kohaku: Set base light sensor information correctly
BH1370 light sensor only support 10Hz frequency.
Set parameters properly. Sensor only used on kohaku.
BUG=b:172343923
BRANCH=hatch
TEST=Check on Kohaku the light parameters are correct.
Change-Id: Ibb9b2699e414cf80730d290aba981dcd4898f84f
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2586069
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Diffstat (limited to 'board/kohaku/board.c')
-rw-r--r-- | board/kohaku/board.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/board/kohaku/board.c b/board/kohaku/board.c index 300a19b3bb..4432444431 100644 --- a/board/kohaku/board.c +++ b/board/kohaku/board.c @@ -313,12 +313,11 @@ struct motion_sensor_t motion_sensors[] = { .i2c_spi_addr_flags = BH1730_I2C_ADDR_FLAGS, .rot_standard_ref = NULL, .default_range = 65535, - .min_frequency = 10, - .max_frequency = 10, + .min_frequency = BH1730_MIN_FREQ, + .max_frequency = BH1730_MAX_FREQ, .config = { [SENSOR_CONFIG_EC_S0] = { - .odr = 100000, - .ec_rate = 0, + .odr = BH1730_10000_MHZ, }, }, }, |