diff options
author | Ching-Kang Yen <chingkang@chromium.org> | 2020-03-31 19:37:17 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-05-16 10:00:14 +0000 |
commit | 3452fa9ebd9dc90aa259ce50652a3d0f93e97500 (patch) | |
tree | ff6aaaf5c90c4809f0d480469435961bcd94d3be /util | |
parent | 04a3ecd6b770ac01e8019881a413caa6c23940be (diff) | |
download | chrome-ec-3452fa9ebd9dc90aa259ce50652a3d0f93e97500.tar.gz |
driver: Add BMI260 basic driver support
Add BMI260 accel/gyro driver code. Be able to do initial configuration,
start up sensor, config interrupt and fifo, perform calibration, and
access the sensor data from AP.
BRANCH=None
BUG=b:146144827
TEST=make -j4 BOARD=volteer \
&& flash_ec --image build/volteer/ec.bin --board volteer
Then, check sensor data is available on DUT by "ectool motionsense".
TEST=make buildall -j
TEST=tast run ${IP} hardware.SensorRing
Conflicts:
common/build.mk:
include/config.h:
include/ec_commands.h: ICM-42607 driver support landed earlier
Cq-Depend: chromium:2148802
Change-Id: I5124ee8359a74f98cfe8d26da640325f5e00cb15
Signed-off-by: Ching-Kang Yen <chingkang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2086534
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
(cherry picked from commit 00b4226613aa84f9734a22e50acd4d7ede960cc1)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3115728
Tested-by: Rong Chang <rongchang@chromium.org>
Tested-by: Gwendal Grignou <gwendal@chromium.org>
Commit-Queue: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3631904
Commit-Queue: Henry Sun <henrysun@google.com>
Reviewed-by: Henry Sun <henrysun@google.com>
Tested-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/ectool.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/ectool.c b/util/ectool.c index 757ea45fc5..4edc9e92db 100644 --- a/util/ectool.c +++ b/util/ectool.c @@ -4407,6 +4407,9 @@ static int cmd_motionsense(int argc, char **argv) case MOTIONSENSE_CHIP_LIS2MDL: printf("lis2mdl\n"); break; + case MOTIONSENSE_CHIP_BMI260: + printf("bmi260\n"); + break; case MOTIONSENSE_CHIP_ICM426XX: printf("icm426xx\n"); break; |