diff options
author | Ting Shen <phoenixshen@google.com> | 2023-05-04 18:18:22 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-05-09 10:19:27 +0000 |
commit | e794570e9daa3aba90ec645dba41238e812b7015 (patch) | |
tree | f9b40ef03ae541117f6d30be9177d99a474b3b84 /zephyr/emul/Kconfig | |
parent | cdf92d7797c988db2e5a74c5dbebdbc6bdf67e86 (diff) | |
download | chrome-ec-e794570e9daa3aba90ec645dba41238e812b7015.tar.gz |
zephyr/test: add icm42607 emulator
Implement a simple emulator for icm42607 sensor.
This is based on the generic i2c emulator with special handler to
process icm42607's mreg bank access and fifo access.
BUG=b:272665228
TEST=twister
Change-Id: I0f737bf013a62d256522224320d6cca50c3ab219
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4506513
Tested-by: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'zephyr/emul/Kconfig')
-rw-r--r-- | zephyr/emul/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/zephyr/emul/Kconfig b/zephyr/emul/Kconfig index 78e4a88a1d..756a1530cf 100644 --- a/zephyr/emul/Kconfig +++ b/zephyr/emul/Kconfig @@ -210,6 +210,14 @@ config EMUL_PS8743 Enable the PS8743 usb mux. This driver use emulated I2C bus. Emulator API is available in zephyr/include/emul/emul_ps8743.h. +config EMUL_ICM42607 + bool "icm42607 emulator" + default y + depends on DT_HAS_ZEPHYR_ICM42607_EMUL_ENABLED + select EMUL_COMMON_I2C + help + Enable the ICM42607 accelerometer and gyroscope emulator. + rsource "Kconfig.ln9310" rsource "Kconfig.lis2dw12" rsource "Kconfig.i2c_mock" |