summaryrefslogtreecommitdiff
path: root/board/poppy/board.h
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2018-03-19 14:27:32 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-03-22 15:24:44 -0700
commit9304e2ac012e1cba92e697bfd36428146d4528c7 (patch)
tree75c7239fb88a760fdcba020d7c76decad9896330 /board/poppy/board.h
parent0f32382760d3fe131ac39f5e2de2bcc388fb5bf6 (diff)
downloadchrome-ec-9304e2ac012e1cba92e697bfd36428146d4528c7.tar.gz
board: Add CONFIG_ACCEL_FORCE_MODE_MASK for ALS when needed
Some board did not configured the ALS in force mode. We were lucky that their data was collected while scanning other sensors, but that's not true anymore since CL:959112 BUG=b:75533383 TEST=Compile BRANCH=poppy Change-Id: I4c6f744756a90dd9f2d142bb56826e91b806d5dd Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/969627 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'board/poppy/board.h')
-rw-r--r--board/poppy/board.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/poppy/board.h b/board/poppy/board.h
index ca4fa2c2b0..ed5b94617a 100644
--- a/board/poppy/board.h
+++ b/board/poppy/board.h
@@ -264,6 +264,9 @@ void board_set_tcpc_power_mode(int port, int mode);
void base_detect_interrupt(enum gpio_signal signal);
+/* 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 */