diff options
author | Tomasz Michalec <tm@semihalf.com> | 2021-06-22 11:09:31 +0200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-14 21:24:50 +0000 |
commit | 3d41adc1d1d13a76b68f7927caa37315ed90977e (patch) | |
tree | ec679e13f5ec35281fea6e852fa38783ccc5fbad /zephyr/emul/Kconfig | |
parent | 58e9704c8f823bebbf2ae426567dd95a8eef6d50 (diff) | |
download | chrome-ec-3d41adc1d1d13a76b68f7927caa37315ed90977e.tar.gz |
zephyr: Add BMI160 emulator
Add BMI emulator which is emulated device on i2c bus. Emulated
accelerometer and gyroscope properties are defined through device tree,
but they can be changed in runtime through BMI emulator API. It allows
to set custom handlers for write and read messages to emulate more
complex scenarios or malfunctioning device.
BMI emulator is designed to implement support for different BMI models
as an extension to common emulator code.
BUG=b:184856157
BRANCH=none
TEST=none
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: I63e9d3aca98c8923372437f7a66257a4c82817f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2977559
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'zephyr/emul/Kconfig')
-rw-r--r-- | zephyr/emul/Kconfig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zephyr/emul/Kconfig b/zephyr/emul/Kconfig index 5a5747d922..76b4cb5566 100644 --- a/zephyr/emul/Kconfig +++ b/zephyr/emul/Kconfig @@ -27,3 +27,9 @@ config EMUL_PPC_SYV682X help Enable the SYV682x emulator. SYV682 is a USB Type-C PPC. This driver uses the emulated I2C bus. +config EMUL_BMI + bool "BMI emulator" + help + Enable the BMI emulator. This driver use emulated I2C bus. + It is used to test bmi 160 and 260 drivers. Emulators API is + available in zephyr/include/emul/emul_bmi.h |