1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * Copyright (C) 2012 Invensense, Inc. 4*4882a593Smuzhiyun */ 5*4882a593Smuzhiyun 6*4882a593Smuzhiyun #ifndef __INV_MPU6050_PLATFORM_H_ 7*4882a593Smuzhiyun #define __INV_MPU6050_PLATFORM_H_ 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun /** 10*4882a593Smuzhiyun * struct inv_mpu6050_platform_data - Platform data for the mpu driver 11*4882a593Smuzhiyun * @orientation: Orientation matrix of the chip (deprecated in favor of 12*4882a593Smuzhiyun * mounting matrix retrieved from device-tree) 13*4882a593Smuzhiyun * 14*4882a593Smuzhiyun * Contains platform specific information on how to configure the MPU6050 to 15*4882a593Smuzhiyun * work on this platform. The orientation matricies are 3x3 rotation matricies 16*4882a593Smuzhiyun * that are applied to the data to rotate from the mounting orientation to the 17*4882a593Smuzhiyun * platform orientation. The values must be one of 0, 1, or -1 and each row and 18*4882a593Smuzhiyun * column should have exactly 1 non-zero value. 19*4882a593Smuzhiyun * 20*4882a593Smuzhiyun * Deprecated in favor of mounting matrix retrieved from device-tree. 21*4882a593Smuzhiyun */ 22*4882a593Smuzhiyun struct inv_mpu6050_platform_data { 23*4882a593Smuzhiyun __s8 orientation[9]; 24*4882a593Smuzhiyun }; 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun #endif 27