summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Peress <peress@chromium.org>2021-04-21 01:15:11 -0600
committerCommit Bot <commit-bot@chromium.org>2021-04-22 16:55:32 +0000
commitfa949557a52aa54d0389e3307a2fb2eedfb38c50 (patch)
treed86e57cb711926f8a3e12c11b5fc9e85bcc57b15
parent3578930d552ca166845348dac670d8a0c2d80e86 (diff)
downloadchrome-ec-fa949557a52aa54d0389e3307a2fb2eedfb38c50.tar.gz
zephyr: driver: bmi160: Add Kconfig to enable bmi160
Adds a Kconfig option to add the bmi160 drivers. BRANCH=none BUG=b:185966444 TEST=zmake testall Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: I602c4fe9564ebb49dc0db5bb00d51b413ebe76c5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2842710 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
-rw-r--r--zephyr/CMakeLists.txt2
-rw-r--r--zephyr/Kconfig.sensor_devices13
2 files changed, 13 insertions, 2 deletions
diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt
index 883031ef7e..7f0290afed 100644
--- a/zephyr/CMakeLists.txt
+++ b/zephyr/CMakeLists.txt
@@ -204,6 +204,8 @@ zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_ACCEL_BMA255
zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_ACCELGYRO_BMI
"${PLATFORM_EC}/driver/accelgyro_bmi_common.c"
"${PLATFORM_EC}/common/math_util.c")
+zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_ACCELGYRO_BMI160
+ "${PLATFORM_EC}/driver/accelgyro_bmi160.c")
zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_ACCELGYRO_BMI260
"${PLATFORM_EC}/driver/accelgyro_bmi260.c")
zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_ACCELGYRO_ICM
diff --git a/zephyr/Kconfig.sensor_devices b/zephyr/Kconfig.sensor_devices
index 3cfa41220d..5de06bb23a 100644
--- a/zephyr/Kconfig.sensor_devices
+++ b/zephyr/Kconfig.sensor_devices
@@ -26,12 +26,21 @@ config PLATFORM_EC_ACCEL_BMA255
Currently the driver supports BMA253, BMA255, BMA355, BMA280, BMA282,
BMA223, BMA254, BMA284, BMA250E, BMA222E, BMC150 BMC056, BMC156.
+config PLATFORM_EC_ACCELGYRO_BMI160
+ bool "BMI160 Accelgyrometer Driver"
+ select PLATFORM_EC_ACCELGYRO_BMI
+ help
+ The driver supports Bosch's BMI160 which is an Inertial Measurement
+ Unit (IMU) consisting of a 16-bit tri-axial gyroscope and a 16-bit
+ tri-axial accelerometer.
+
config PLATFORM_EC_ACCELGYRO_BMI260
bool "BMI260 Accelgyrometer Driver"
select PLATFORM_EC_ACCELGYRO_BMI
help
- The driver supports Bosch's BMI260 which is an IMU consisting of
- a 16-bit tri-axial gyroscope and a 16-bit tri-axial accelerometer.
+ The driver supports Bosch's BMI260 which is an Inertial Measurement
+ Unit (IMU) consisting of a 16-bit tri-axial gyroscope and a 16-bit
+ tri-axial accelerometer.
config PLATFORM_EC_ALS_TCS3400
bool "TCS3400 Ambient Light Senseor Driver"