summaryrefslogtreecommitdiff
path: root/common/motion_sense.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/motion_sense.c')
-rw-r--r--common/motion_sense.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/motion_sense.c b/common/motion_sense.c
index 4bf2e7293f..eea52d394e 100644
--- a/common/motion_sense.c
+++ b/common/motion_sense.c
@@ -141,6 +141,9 @@ void motion_sense_task(void)
return;
}
+ /* Write to status byte to represent that accelerometers are present. */
+ *lpc_status |= EC_MEMMAP_ACC_STATUS_PRESENCE_BIT;
+
while (1) {
ts0 = get_time();
@@ -194,7 +197,7 @@ void motion_sense_task(void)
*/
sample_id = (sample_id + 1) &
EC_MEMMAP_ACC_STATUS_SAMPLE_ID_MASK;
- *lpc_status = sample_id;
+ *lpc_status = EC_MEMMAP_ACC_STATUS_PRESENCE_BIT | sample_id;
#ifdef CONFIG_CMD_LID_ANGLE