diff options
author | Jett Rink <jettrink@chromium.org> | 2019-01-02 14:12:57 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-01-05 20:08:40 -0800 |
commit | ef15468753984a9d4ee71ea1c73fc7899e977802 (patch) | |
tree | 523988bc1762827ebce87b1761757ac60e4cfe5f /baseboard/octopus | |
parent | dd3955cf551e707f91c37f92c9198bd0f6af9d97 (diff) | |
download | chrome-ec-ef15468753984a9d4ee71ea1c73fc7899e977802.tar.gz |
octopus: reduce all octopus sensor fifo sizes
Too large of a FIFO causes jitter in the sensor timestamp which can
cause issues during batch CTS tests.
BRANCH=octopus
BUG=b:120508077
TEST=everything builds. Test with smaller fifo were done on bobba. See
CL:1387348
Change-Id: If67a46faa6e136006a20ac243b826b7ce06d9868
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1392425
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Karthikeyan Ramasubramanian <kramasub@chromium.org>
Diffstat (limited to 'baseboard/octopus')
-rw-r--r-- | baseboard/octopus/baseboard.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/baseboard/octopus/baseboard.h b/baseboard/octopus/baseboard.h index 05fe75d512..1b91245da0 100644 --- a/baseboard/octopus/baseboard.h +++ b/baseboard/octopus/baseboard.h @@ -269,6 +269,16 @@ #undef CONFIG_MOTION_SENSE_RESUME_DELAY_US #define CONFIG_MOTION_SENSE_RESUME_DELAY_US (10 * MSEC) +/* + * Interrupt and fifo are only used for base accelerometer + * and the lid sensor is polled real-time (in forced mode). + */ +#define CONFIG_ACCEL_INTERRUPTS +/* Power of 2 - Too large of a fifo causes too much timestamp jitter */ +#define CONFIG_ACCEL_FIFO 256 +/* Depends on how fast the AP boots and typical ODRs */ +#define CONFIG_ACCEL_FIFO_THRES (CONFIG_ACCEL_FIFO / 3) + #ifndef __ASSEMBLER__ #include "gpio_signal.h" |