diff options
author | Leo-Tsai <leocx_tsai@compal.corp-partner.google.com> | 2022-03-25 16:26:04 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-03-28 06:41:14 +0000 |
commit | 96e9f2b61a119660e3ecbe74fa5c1d146e793c24 (patch) | |
tree | a2575d630649323531976bbbed970ad7b3b0b9a0 /board/banshee | |
parent | 75dbd3235b49f59210bcddb1b5387cdaf497fa16 (diff) | |
download | chrome-ec-96e9f2b61a119660e3ecbe74fa5c1d146e793c24.tar.gz |
Banshee: Enable sensor fifo for ALS sensor
This patch is define CONFIG_ACCEL_FIFO for ALS sensor
BUG=b:226256607
BRANCH=none
TEST=build make -j BOARD=Banshee pass
Signed-off-by: Leo-Tsai <leocx_tsai@compal.corp-partner.google.com>
Change-Id: I81bf8c40eaa2f9ee298afd07bcd67230c0de6bad
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3552602
Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com>
Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
Diffstat (limited to 'board/banshee')
-rw-r--r-- | board/banshee/board.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/banshee/board.h b/board/banshee/board.h index 0485f9d396..a20080147a 100644 --- a/board/banshee/board.h +++ b/board/banshee/board.h @@ -44,6 +44,13 @@ #define ALS_COUNT 1 #define CONFIG_ALS_CM32183 +/* Enable sensor fifo, must also define the _SIZE and _THRES */ +#define CONFIG_ACCEL_FIFO +/* FIFO size is in power of 2. */ +#define CONFIG_ACCEL_FIFO_SIZE 256 +/* Depends on how fast the AP boots and typical ODRs */ +#define CONFIG_ACCEL_FIFO_THRES (CONFIG_ACCEL_FIFO_SIZE / 3) + /* Sensors without hardware FIFO are in forced mode */ #define CONFIG_ACCEL_FORCE_MODE_MASK BIT(CLEAR_ALS) |