diff options
author | Yuval Peress <peress@chromium.org> | 2019-07-15 11:40:47 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-23 00:25:33 +0000 |
commit | a2e7b77b3b62d9f663eb1f916fe9ab36bef06dbe (patch) | |
tree | 0508e2e77f23ba861090a53d1b99306fe9ad3046 /baseboard/grunt | |
parent | 3a2044d812f26a1ac0302a5eeb66eaf9433e78ba (diff) | |
download | chrome-ec-a2e7b77b3b62d9f663eb1f916fe9ab36bef06dbe.tar.gz |
common: Move fifo logic out of motion_sense.c
This change is needed to allow better testing of the fifo
behavior. Additionally, motion_sense_fifo.c will only be compiled
if CONFIG_ACCEL_FIFO is defined. This behaviour requires a few
small changes to several boards and baseboards to make
sure that we only define CONFIG_ACCEL_FIFO when the MOTIONSENSE
task is present (some times that may be only in one section RW or
RO).
BUG=b:137758297
BRANCH=None
TEST=buildall and ran CTS on arcada
Change-Id: I2f7e4e436ba9568a35b7a0b2c8d53a73f198ba73
Signed-off-by: Yuval Peress <peress@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1704163
Reviewed-by: Alexandru M Stan <amstan@chromium.org>
Commit-Queue: Alexandru M Stan <amstan@chromium.org>
Diffstat (limited to 'baseboard/grunt')
-rw-r--r-- | baseboard/grunt/baseboard.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/baseboard/grunt/baseboard.h b/baseboard/grunt/baseboard.h index ceff4d6e71..27d87091b2 100644 --- a/baseboard/grunt/baseboard.h +++ b/baseboard/grunt/baseboard.h @@ -185,11 +185,13 @@ /* Thermal */ #define CONFIG_TEMP_SENSOR_SB_TSI +#ifndef VARIANT_GRUNT_NO_SENSORS /* FIFO size is a power of 2. */ #define CONFIG_ACCEL_FIFO 256 /* Depends on how fast the AP boots and typical ODRs. */ #define CONFIG_ACCEL_FIFO_THRES (CONFIG_ACCEL_FIFO / 3) +#endif /* VARIANT_GRUNT_NO_SENSORS */ #define USB_PD_PORT_ANX74XX 0 #define USB_PD_PORT_PS8751 1 |