summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWonjoon Lee <woojoo.lee@samsung.com>2016-05-27 00:31:40 +0900
committerchrome-bot <chrome-bot@chromium.org>2016-05-31 14:14:44 -0700
commit5564c9fae726b0f5042fb3474763b4da33cc145b (patch)
tree6ef96e435ab536f0535d3e36a1d4e2c3f13a1809 /include
parent8f2c7d7f7670d696479e64daada86a9386bd1a31 (diff)
downloadchrome-ec-5564c9fae726b0f5042fb3474763b4da33cc145b.tar.gz
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 <woojoo.lee@samsung.com> Reviewed-on: https://chromium-review.googlesource.com/347722 Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/config.h1
-rw-r--r--include/ec_commands.h1
2 files changed, 2 insertions, 0 deletions
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 {