mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 18:11:05 +00:00
kevin: Set Forced Mode for lid accel only
Addition to 4523735d: We can use the BMI160 internal FIFO, so set only
the Lid accel in forced mode.
Set EC rate for BMI160 accel as needed.
BRANCH=kevin
BUG=b:27849483
TEST=Check sensor parameters with accelrate. Check rotation is working.
Change-Id: I86f50e019db25837894036c4f27b255a65d2f894
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/374918
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
608852b840
commit
98ec487dff
@@ -470,7 +470,7 @@ struct motion_sensor_t motion_sensors[] = {
|
||||
/* EC use accel for angle detection */
|
||||
[SENSOR_CONFIG_EC_S0] = {
|
||||
.odr = 10000 | ROUND_UP_FLAG,
|
||||
.ec_rate = 0,
|
||||
.ec_rate = 100 * MSEC,
|
||||
},
|
||||
/* Sensor off in S3/S5 */
|
||||
[SENSOR_CONFIG_EC_S3] = {
|
||||
|
||||
@@ -85,11 +85,9 @@
|
||||
#define CONFIG_ACCEL_FIFO_THRES (CONFIG_ACCEL_FIFO / 3)
|
||||
|
||||
/*
|
||||
* Sensor internal FIFO are not enabled, we need to poll at
|
||||
* every data point.
|
||||
* Sensor internal FIFO is enabled for BMI160, but not for BMA255.
|
||||
*/
|
||||
#define CONFIG_ACCEL_FORCE_MODE_MASK \
|
||||
((1 << BASE_ACCEL) | (1 << BASE_GYRO) | (1 << LID_ACCEL))
|
||||
#define CONFIG_ACCEL_FORCE_MODE_MASK (1 << LID_ACCEL)
|
||||
|
||||
/* USB PD config */
|
||||
#define CONFIG_CASE_CLOSED_DEBUG_EXTERNAL
|
||||
|
||||
Reference in New Issue
Block a user