From a2e7b77b3b62d9f663eb1f916fe9ab36bef06dbe Mon Sep 17 00:00:00 2001 From: Yuval Peress Date: Mon, 15 Jul 2019 11:40:47 -0600 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1704163 Reviewed-by: Alexandru M Stan Commit-Queue: Alexandru M Stan --- driver/accelgyro_bmi160.c | 1 + driver/accelgyro_lsm6dsm.c | 1 + driver/als_si114x.c | 1 + driver/als_tcs3400.c | 1 + driver/sync.c | 1 + 5 files changed, 5 insertions(+) (limited to 'driver') diff --git a/driver/accelgyro_bmi160.c b/driver/accelgyro_bmi160.c index 5fb79194d1..6408bfcc79 100644 --- a/driver/accelgyro_bmi160.c +++ b/driver/accelgyro_bmi160.c @@ -17,6 +17,7 @@ #include "hwtimer.h" #include "i2c.h" #include "math_util.h" +#include "motion_sense_fifo.h" #include "spi.h" #include "task.h" #include "timer.h" diff --git a/driver/accelgyro_lsm6dsm.c b/driver/accelgyro_lsm6dsm.c index e2bba975d6..1a098f3b1e 100644 --- a/driver/accelgyro_lsm6dsm.c +++ b/driver/accelgyro_lsm6dsm.c @@ -15,6 +15,7 @@ #include "hwtimer.h" #include "mag_cal.h" #include "math_util.h" +#include "motion_sense_fifo.h" #include "queue.h" #include "task.h" #include "timer.h" diff --git a/driver/als_si114x.c b/driver/als_si114x.c index 2ac8f1ccbd..4db3fcc9d7 100644 --- a/driver/als_si114x.c +++ b/driver/als_si114x.c @@ -14,6 +14,7 @@ #include "hwtimer.h" #include "i2c.h" #include "math_util.h" +#include "motion_sense_fifo.h" #include "task.h" #include "timer.h" #include "util.h" diff --git a/driver/als_tcs3400.c b/driver/als_tcs3400.c index 6b58735ad2..774efd863c 100644 --- a/driver/als_tcs3400.c +++ b/driver/als_tcs3400.c @@ -12,6 +12,7 @@ #include "hwtimer.h" #include "i2c.h" #include "math_util.h" +#include "motion_sense_fifo.h" #include "task.h" #include "util.h" diff --git a/driver/sync.c b/driver/sync.c index 34df824090..91d161765a 100644 --- a/driver/sync.c +++ b/driver/sync.c @@ -12,6 +12,7 @@ #include "console.h" #include "driver/sync.h" #include "hwtimer.h" +#include "motion_sense_fifo.h" #include "queue.h" #include "task.h" #include "util.h" -- cgit v1.2.1