diff options
author | Jonathan Brandmeyer <jbrandmeyer@chromium.org> | 2018-09-18 11:42:18 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-09-19 12:18:18 -0700 |
commit | efa5d1dac544db64d0df45db31493c0f5d26dc2c (patch) | |
tree | 7de2b7dcd8372ce13f6c5b02c1c78f79cd5a9d62 /baseboard | |
parent | 5a09049c5cc9a30ddfbe69e11b833146d8f5f04f (diff) | |
download | chrome-ec-efa5d1dac544db64d0df45db31493c0f5d26dc2c.tar.gz |
Careena: Disable motion sensors
The body frame motion sensor will not be installed for Careena.
BUG=b:115649135
TEST=observe that the EC does not attempt to initialize any of its
motion sensors in the EC log.
BRANCH=grunt
Signed-off-by: Jonathan Brandmeyer <jbrandmeyer@chromium.org>
Change-Id: I0e7c2e9e39d290c21f20b766da4347a2e2902942
Reviewed-on: https://chromium-review.googlesource.com/1231474
Commit-Ready: Jett Rink <jettrink@chromium.org>
Tested-by: Jonathan Brandmeyer <jbrandmeyer@chromium.org>
Reviewed-by: Edward Hill <ecgh@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'baseboard')
-rw-r--r-- | baseboard/grunt/baseboard.c | 2 | ||||
-rw-r--r-- | baseboard/grunt/baseboard.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/baseboard/grunt/baseboard.c b/baseboard/grunt/baseboard.c index 678d69010d..36374956d2 100644 --- a/baseboard/grunt/baseboard.c +++ b/baseboard/grunt/baseboard.c @@ -425,7 +425,7 @@ struct motion_sensor_t motion_sensors[] = { }, }; -const unsigned int motion_sensor_count = ARRAY_SIZE(motion_sensors); +unsigned int motion_sensor_count = ARRAY_SIZE(motion_sensors); #ifndef TEST_BUILD void lid_angle_peripheral_enable(int enable) diff --git a/baseboard/grunt/baseboard.h b/baseboard/grunt/baseboard.h index 8eef4fc998..fdb0752c39 100644 --- a/baseboard/grunt/baseboard.h +++ b/baseboard/grunt/baseboard.h @@ -176,6 +176,7 @@ #define CONFIG_ACCEL_KX022 #define CONFIG_CMD_ACCELS #define CONFIG_CMD_ACCEL_INFO +#define CONFIG_DYNAMIC_MOTION_SENSOR_COUNT #define CONFIG_TABLET_MODE #define CONFIG_LID_ANGLE #define CONFIG_LID_ANGLE_TABLET_MODE |