diff options
author | Bolat Dinc <bolat.dinc@intel.com> | 2015-03-26 12:15:18 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-10-20 15:02:49 -0700 |
commit | 7b9ec099105a390b5301be6c12036061ecc8721e (patch) | |
tree | 6904dee1e9ccfe0152f0aeb13e0aeca4648e7b30 /include | |
parent | ceb35e56584fbf7ece433c444b8de7bae0ba77be (diff) | |
download | chrome-ec-7b9ec099105a390b5301be6c12036061ecc8721e.tar.gz |
driver: Add L3GD20H gyrometer basic driver support
BUG=chrome-os-partner:40465
BRANCH=None
TEST=Added Gyro config to test L3GD20H Gyro sensor in Kunimitsu.
Able to read the gyro data from "accelinfo" console command.
Rotated the sensor in X,Y,Z axis, respective axis values change.
Fits into the existing accel/gyro framework.
Change-Id: I19369560ddad5160c2fc9c7ef9823bd37b5389fa
Signed-off-by: Bolat Dinc <bolat.dinc@intel.com>
Signed-off-by: Divya Jyothi <divya.jyothi@intel.com>
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/264650
Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 3 | ||||
-rw-r--r-- | include/ec_commands.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index e93001087c..801bde198a 100644 --- a/include/config.h +++ b/include/config.h @@ -78,6 +78,9 @@ */ #undef CONFIG_ACCELGYRO_BMI160_INT_EVENT +/* Specify type of Gyrometers attached. */ +#undef CONFIG_GYRO_L3GD20H + /* Compile chip support for analog-to-digital convertor */ #undef CONFIG_ADC diff --git a/include/ec_commands.h b/include/ec_commands.h index 0fd2093b64..b959db783e 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -1744,6 +1744,7 @@ enum motionsensor_chip { MOTIONSENSE_CHIP_SI1142 = 4, MOTIONSENSE_CHIP_SI1143 = 5, MOTIONSENSE_CHIP_KX022 = 6, + MOTIONSENSE_CHIP_L3GD20H = 7, }; struct ec_response_motion_sensor_data { |