mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-14 16:46:23 +00:00
board: nami: Enable sensors in forced mode
Sensors without interrupt line needs to be in forced mode, otherwise the EC may not poll them. BUG=b:73205042 BRANCH=master TEST=Check with accelrate the ec rate is 100ms by default: Before: > accelrate 0 Data rate for sensor 0: 15620 EC rate for sensor 0: 0 Current EC rate: 1000000 Current Interrupt rate: 0 After: +accelrate 0 Data rate for sensor 0: 15620 EC rate for sensor 0: 100000 Current EC rate: 100000 Current Interrupt rate: 0 Change-Id: Ib626e06f572d97efe4ccd80bf87c18958f940c5c Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/960940 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
514c3b3e26
commit
0778c50859
@@ -276,6 +276,9 @@ int board_get_version(void);
|
||||
void board_reset_pd_mcu(void);
|
||||
void board_set_tcpc_power_mode(int port, int mode);
|
||||
|
||||
/* Sensors without hardware FIFO are in forced mode */
|
||||
#define CONFIG_ACCEL_FORCE_MODE_MASK ((1 << LID_ACCEL) | (1 << LID_ALS))
|
||||
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
|
||||
#endif /* __CROS_EC_BOARD_H */
|
||||
|
||||
Reference in New Issue
Block a user