summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-enterprise-sensors.c
diff options
context:
space:
mode:
authorKrishna Yarlagadda <kyarlagadda@nvidia.com>2011-05-17 22:46:27 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:46:03 -0800
commit2053069f5a87235c5b6f15b8010cfa57c01b50fb (patch)
treed19b143e50a57b3e7788e00949b3fc2dec1df6ba /arch/arm/mach-tegra/board-enterprise-sensors.c
parent88de2254db1ece1b183da615fa7c6c668f70d1ad (diff)
ARM: tegra: enterprise: Fix sensors orientation
Set correct orientation for accelerometer, gyro and compass on enterprise board Bug 833671 Change-Id: I0c63e00e22b5128870b1c38da22cb9165f224fb1 Reviewed-on: http://git-master/r/34528 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com> Rebase-Id: R878a84bb8949ac19535d34cca139ca2616e6d78f
Diffstat (limited to 'arch/arm/mach-tegra/board-enterprise-sensors.c')
-rw-r--r--arch/arm/mach-tegra/board-enterprise-sensors.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise-sensors.c b/arch/arm/mach-tegra/board-enterprise-sensors.c
index bb070b53cb45..53cf704dfdf2 100644
--- a/arch/arm/mach-tegra/board-enterprise-sensors.c
+++ b/arch/arm/mach-tegra/board-enterprise-sensors.c
@@ -73,7 +73,7 @@ static void enterprise_nct1008_init(void)
static struct mpu3050_platform_data mpu3050_data = {
.int_config = 0x10,
/* Orientation matrix for MPU on enterprise */
- .orientation = { 0, -1, 0, -1, 0, 0, 0, 0, -1 },
+ .orientation = { -1, 0, 0, 0, -1, 0, 0, 0, 1 },
.level_shifter = 0,
.accel = {
@@ -82,7 +82,7 @@ static struct mpu3050_platform_data mpu3050_data = {
.bus = EXT_SLAVE_BUS_SECONDARY,
.address = 0x0F,
/* Orientation matrix for Kionix on enterprise */
- .orientation = { 0, -1, 0, -1, 0, 0, 0, 0, -1 },
+ .orientation = { 0, 1, 0, -1, 0, 0, 0, 0, 1 },
},
@@ -92,7 +92,7 @@ static struct mpu3050_platform_data mpu3050_data = {
.bus = EXT_SLAVE_BUS_PRIMARY,
.address = 0x0C,
/* Orientation matrix for AKM on enterprise */
- .orientation = { 1, 0, 0, 0, -1, 0, 0, 0, -1 },
+ .orientation = { 0, 1, 0, -1, 0, 0, 0, 0, 1 },
},
};