diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2022-05-25 10:15:08 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-17 00:28:47 +0000 |
commit | 6883f5d7db091b51f3429b57bcc303feeed2d2af (patch) | |
tree | 6b43a5373f058cd8bee598dbc3e0e0052162056e /docs/zephyr | |
parent | 8c40ccebbe6d5b3cb689870787bc12bcab3c48bb (diff) | |
download | chrome-ec-6883f5d7db091b51f3429b57bcc303feeed2d2af.tar.gz |
zephyr: Add PLATFORM_EC_MAX_SENSOR_FREQ_MILLIHZ
By default, maximal sensor ODR are capped at 250Mhz.
However, some EC are too slow and can missed samples, failing CTS test.
Add a variable to reduce the maximal ODR allowed.
This variable sets CONFIG_EC_MAX_SENSOR_FREQ_MILLIHZ.
BUG=b:206571439
BRANCH=none
TEST=Check in loop that all samples are timestamp properly:
while true ; do
tast run localhost:22552 hardware.SensorIioserviceHard
sleep 1
done
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Change-Id: I3093ec22b0a7ab53481198ca8ad9c8c89e461d43
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3668645
Reviewed-by: Yuval Peress <peress@google.com>
Diffstat (limited to 'docs/zephyr')
-rw-r--r-- | docs/zephyr/zephyr_motionsense.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/zephyr/zephyr_motionsense.md b/docs/zephyr/zephyr_motionsense.md index b93d1ef490..4e6d0102ca 100644 --- a/docs/zephyr/zephyr_motionsense.md +++ b/docs/zephyr/zephyr_motionsense.md @@ -22,6 +22,7 @@ Kconfig Option | Default | Documentation `CONFIG_PLATFORM_EC_LID_ANGLE` | n | [LID ANGLE] `CONFIG_PLATFORM_EC_CONSOLE_CMD_ACCELS` | n | [ACCELS CMD] `CONFIG_PLATFORM_EC_ACCEL_SPOOF_MODE` | n | [ACCEL SPOOF MODE] +`CONFIG_PLATFORM_EC_MAX_SENSOR_FREQ_MILLIHZ` | n | [MAX SENSOR FREQUENCY] Additional Kconfig options are available at [Kconfig.sensor_devices](./zephyr_sensor_devices.md). @@ -282,4 +283,5 @@ lid_accel: lid-accel { [GMR TABLET MODE]: https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:src/platform/ec/zephyr/Kconfig.motionsense;?q="config%20PLATFORM_EC_GMR_TABLET_MODE"&ss=chromiumos [ACCEL INFO CMD]: https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:src/platform/ec/zephyr/Kconfig.motionsense;?q="config%20PLATFORM_EC_CONSOLE_CMD_ACCEL_INFO"&ss=chromiumos [ACCEL SPOOF CMD]: https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:src/platform/ec/zephyr/Kconfig.motionsense;?q="config%20PLATFORM_EC_CONSOLE_CMD_ACCEL_SPOOF"&ss=chromiumos +[MAX SENSOR FREQUENCY ]: https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:src/platform/ec/zephyr/Kconfig.motionsense;?q="config%20PLATFORM_EC_MAX_SENSOR_FREQ_MILLIHZ"&ss=chromiumos [ectool]: https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:src/platform/ec/util/ectool.c;?q=function:ms_help&ss=chromiumos |