From 5564c9fae726b0f5042fb3474763b4da33cc145b Mon Sep 17 00:00:00 2001 From: Wonjoon Lee Date: Fri, 27 May 2016 00:31:40 +0900 Subject: driver: Add support bma255 sensor BMA255 is one of BMA2x2 accel sensor series. Adding defines,driver from https://github.com/BoschSensortec/BMA2x2_driver BUG=chrome-os-partner:52877 BRANCH=none TEST="accelread 2" is working on kevin, also check accelrate, accelrange can set proper value on IC Change-Id: I99932ff75aae91a744fe18dddc010b802085a2da Signed-off-by: Wonjoon Lee Reviewed-on: https://chromium-review.googlesource.com/347722 Reviewed-by: Shawn N --- include/config.h | 1 + include/ec_commands.h | 1 + 2 files changed, 2 insertions(+) (limited to 'include') diff --git a/include/config.h b/include/config.h index 2c4fa6ccc4..0addbc1a1e 100644 --- a/include/config.h +++ b/include/config.h @@ -51,6 +51,7 @@ #undef CONFIG_ACCEL_FORCE_MODE_MASK /* Specify type of accelerometers attached. */ +#undef CONFIG_ACCEL_BMA255 #undef CONFIG_ACCEL_KXCJ9 #undef CONFIG_ACCEL_KX022 #undef CONFIG_ACCELGYRO_LSM6DS0 diff --git a/include/ec_commands.h b/include/ec_commands.h index 871dbf9662..d58c560d62 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -1788,6 +1788,7 @@ enum motionsensor_chip { MOTIONSENSE_CHIP_SI1143 = 5, MOTIONSENSE_CHIP_KX022 = 6, MOTIONSENSE_CHIP_L3GD20H = 7, + MOTIONSENSE_CHIP_BMA255 = 8, }; struct ec_response_motion_sensor_data { -- cgit v1.2.1