diff options
Diffstat (limited to 'driver/als_bh1730.h')
-rw-r--r-- | driver/als_bh1730.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/driver/als_bh1730.h b/driver/als_bh1730.h index 3cd8757822..0847062afb 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 @@ -88,4 +94,3 @@ struct bh1730_drv_data_t { extern const struct accelgyro_drv bh1730_drv; #endif /* __CROS_EC_ALS_BH1730_H */ - |