ARM: TEGRA: roth: Fix orientation vector
authorXiaohui Tao <xtao@nvidia.com>
Sun, 25 Nov 2012 07:33:30 +0000 (23:33 -0800)
committerSimone Willett <swillett@nvidia.com>
Wed, 5 Dec 2012 04:37:52 +0000 (20:37 -0800)
The mpu6050 is placed 90 degree clock-wise of the default positon.
Change the orientation vector accordingly.

Bug 1163074

Change-Id: I0280b6f0954111e236bb7efd700a24135f934ea6
Signed-off-by: Xiaohui Tao <xtao@nvidia.com>
Reviewed-on: http://git-master/r/166038
(cherry picked from commit 455aca3bf65d79317dcfcf6c3e8bd08ff59e244c)
Reviewed-on: http://git-master/r/168117
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Matt Wagner <mwagner@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
arch/arm/mach-tegra/board-roth.h

index 9f832e434bd4b2e43332bc9acf9606777bd366fe..91e6ce78599274062b2a4d4f85d45cf9ba125456 100644 (file)
@@ -78,7 +78,7 @@
 #define MPU_GYRO_IRQ_GPIO       TEGRA_GPIO_PR3
 #define MPU_GYRO_ADDR           0x68
 #define MPU_GYRO_BUS_NUM        0
-#define MPU_GYRO_ORIENTATION    { -1, 0, 0, 0, -1, 0, 0, 0, 1 }
+#define MPU_GYRO_ORIENTATION    { 0, 1, 0, -1, 0, 0, 0, 0, 1 }
 #define MPU_ACCEL_NAME          "kxtf9"
 #define MPU_ACCEL_IRQ_GPIO      0 /* DISABLE ACCELIRQ:  TEGRA_GPIO_PJ2 */
 #define MPU_ACCEL_ADDR          0x0F