diff options
author | Yuval Peress <peress@chromium.org> | 2021-04-15 10:55:25 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-16 22:32:27 +0000 |
commit | a2b75b36ebfeaf5f344e03e1c0ee0b77c11e82de (patch) | |
tree | faa28631546a204f7f718b63173c36046830b269 /zephyr/projects | |
parent | 7ffc631e080dde6741580ecf217e9565ad791a71 (diff) | |
download | chrome-ec-a2b75b36ebfeaf5f344e03e1c0ee0b77c11e82de.tar.gz |
driver: bmi: fix use of I2C_PORT_ACCEL
The BMI driver is currently using I2C_PORT_ACCEL incorrectly as a
CONFIG_ value.
Update the use cases to a new config option that selects between SPI
and I2C communication specifically for the chip. To avoid a lot of
device.h changes, the value of the config value is automatically
inferred if not explicitly set.
BRANCH=none
BUG=b:185392974, b:146065507
TEST=zmake testall
TEST=make buildall
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I6196cc595dc61877ab2b8ed5416bebee51276927
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2829010
Commit-Queue: Keith Short <keithshort@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/projects')
-rw-r--r-- | zephyr/projects/volteer/volteer/prj.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zephyr/projects/volteer/volteer/prj.conf b/zephyr/projects/volteer/volteer/prj.conf index 32a2ac8118..ed3255049d 100644 --- a/zephyr/projects/volteer/volteer/prj.conf +++ b/zephyr/projects/volteer/volteer/prj.conf @@ -86,6 +86,7 @@ CONFIG_PLATFORM_EC_TABLET_MODE=y # Sensor Drivers CONFIG_PLATFORM_EC_ACCEL_BMA255=y CONFIG_PLATFORM_EC_ACCELGYRO_BMI260=y +CONFIG_PLATFORM_EC_ACCELGYRO_BMI_COMM_I2C=y CONFIG_PLATFORM_EC_ALS_TCS3400=y # Temperature sensors |