blob: 554b59801aa8a994f63c012157fd1335c457eb31 [file] [log] [blame]
Ge Gao09a642b2013-02-02 00:26:00 +00001/*
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
Gregor Boirieeb379842016-04-20 19:23:45 +020019 * @orientation: Orientation matrix of the chip (deprecated in favor of
20 * mounting matrix retrieved from device-tree)
Ge Gao09a642b2013-02-02 00:26:00 +000021 *
22 * Contains platform specific information on how to configure the MPU6050 to
23 * work on this platform. The orientation matricies are 3x3 rotation matricies
24 * that are applied to the data to rotate from the mounting orientation to the
25 * platform orientation. The values must be one of 0, 1, or -1 and each row and
26 * column should have exactly 1 non-zero value.
Gregor Boirieeb379842016-04-20 19:23:45 +020027 *
28 * Deprecated in favor of mounting matrix retrieved from device-tree.
Ge Gao09a642b2013-02-02 00:26:00 +000029 */
30struct inv_mpu6050_platform_data {
31 __s8 orientation[9];
32};
33
34#endif