Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003 * Copyright (C) 2012 Invensense, Inc.
0004 */
0005 
0006 #ifndef __INV_MPU6050_PLATFORM_H_
0007 #define __INV_MPU6050_PLATFORM_H_
0008 
0009 /**
0010  * struct inv_mpu6050_platform_data - Platform data for the mpu driver
0011  * @orientation:    Orientation matrix of the chip (deprecated in favor of
0012  *          mounting matrix retrieved from device-tree)
0013  *
0014  * Contains platform specific information on how to configure the MPU6050 to
0015  * work on this platform.  The orientation matrices are 3x3 rotation matrices
0016  * that are applied to the data to rotate from the mounting orientation to the
0017  * platform orientation.  The values must be one of 0, 1, or -1 and each row and
0018  * column should have exactly 1 non-zero value.
0019  *
0020  * Deprecated in favor of mounting matrix retrieved from device-tree.
0021  */
0022 struct inv_mpu6050_platform_data {
0023     __s8 orientation[9];
0024 };
0025 
0026 #endif