From dfbc632cd5b5a856086249253a98bc83d8942a29 Mon Sep 17 00:00:00 2001 From: Yuval Peress Date: Mon, 15 Jul 2019 14:10:11 -0600 Subject: config: Refactor CONFIG_ACCEL_FIFO to enable use of IS_ENABLED This change allows us to use the IS_ENABLED condition to replace the various ifdef guards around the CONFIG_ACCEL_FIFO BUG=b:137758297,chromium:981990 BRANCH=None TEST=buildall and CTS tests on Arcada Change-Id: I65d36bac19855e51c830a33e6f3812575e8d15d9 Signed-off-by: Yuval Peress Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1704164 Reviewed-by: Jack Rosenthal Reviewed-by: Gwendal Grignou --- baseboard/zork/baseboard.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'baseboard/zork') diff --git a/baseboard/zork/baseboard.h b/baseboard/zork/baseboard.h index 362a8d2fc0..c7f706c2af 100644 --- a/baseboard/zork/baseboard.h +++ b/baseboard/zork/baseboard.h @@ -196,11 +196,12 @@ /* Thermal */ #define CONFIG_TEMP_SENSOR_SB_TSI +/* Enable sensor fifo, must also define the _SIZE and _THRES */ +#define CONFIG_ACCEL_FIFO /* FIFO size is a power of 2. */ -#define CONFIG_ACCEL_FIFO 256 - +#define CONFIG_ACCEL_FIFO_SIZE 256 /* Depends on how fast the AP boots and typical ODRs. */ -#define CONFIG_ACCEL_FIFO_THRES (CONFIG_ACCEL_FIFO / 3) +#define CONFIG_ACCEL_FIFO_THRES (CONFIG_ACCEL_FIFO_SIZE / 3) #ifndef __ASSEMBLER__ -- cgit v1.2.1