From 9304e2ac012e1cba92e697bfd36428146d4528c7 Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Mon, 19 Mar 2018 14:27:32 -0700 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/969627 Commit-Ready: ChromeOS CL Exonerator Bot Reviewed-by: Furquan Shaikh --- board/poppy/board.h | 3 +++ 1 file changed, 3 insertions(+) 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 */