diff options
| author | Ge Gao <ggao@invensense.com> | 2013-02-01 19:26:00 -0500 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2013-02-10 12:42:43 -0500 |
| commit | 09a642b78523e9f4c5970c806ad218aa3de31551 (patch) | |
| tree | d233f7f645b66e8a02ff1128fcc6673a7183b047 /include/linux/platform_data | |
| parent | 8ce4a56a52bf566659768a9e46e759e7cd5f33d9 (diff) | |
Invensense MPU6050 Device Driver.
This the basic functional Invensense MPU6050 Device driver.
Signed-off-by: Ge Gao <ggao@invensense.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/invensense_mpu6050.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/linux/platform_data/invensense_mpu6050.h b/include/linux/platform_data/invensense_mpu6050.h new file mode 100644 index 000000000000..ad3aa7b95f35 --- /dev/null +++ b/include/linux/platform_data/invensense_mpu6050.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2012 Invensense, Inc. | ||
| 3 | * | ||
| 4 | * This software is licensed under the terms of the GNU General Public | ||
| 5 | * License version 2, as published by the Free Software Foundation, and | ||
| 6 | * may be copied, distributed, and modified under those terms. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | */ | ||
| 13 | |||
| 14 | #ifndef __INV_MPU6050_PLATFORM_H_ | ||
| 15 | #define __INV_MPU6050_PLATFORM_H_ | ||
| 16 | |||
| 17 | /** | ||
| 18 | * struct inv_mpu6050_platform_data - Platform data for the mpu driver | ||
| 19 | * @orientation: Orientation matrix of the chip | ||
| 20 | * | ||
| 21 | * Contains platform specific information on how to configure the MPU6050 to | ||
| 22 | * work on this platform. The orientation matricies are 3x3 rotation matricies | ||
| 23 | * that are applied to the data to rotate from the mounting orientation to the | ||
| 24 | * platform orientation. The values must be one of 0, 1, or -1 and each row and | ||
| 25 | * column should have exactly 1 non-zero value. | ||
| 26 | */ | ||
| 27 | struct inv_mpu6050_platform_data { | ||
| 28 | __s8 orientation[9]; | ||
| 29 | }; | ||
| 30 | |||
| 31 | #endif | ||
