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 /driver | |
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 'driver')
-rw-r--r-- | driver/als_bh1730.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/driver/als_bh1730.h b/driver/als_bh1730.h index d0205033e4..f49afac76f 100644 --- a/driver/als_bh1730.h +++ b/driver/als_bh1730.h @@ -58,6 +58,12 @@ /* default Itime is about 10Hz */ #define BH1730_10000_MHZ (10*1000) +#define BH1730_MAX_FREQ BH1730_10000_MHZ +/* + * 10Hz is too fast for the AP: allow the AP query data less often, the EC will + * downsample. + */ +#define BH1730_MIN_FREQ (BH1730_MAX_FREQ / 100) /* * Use default lux calculation formula parameters if board specific |