diff options
author | Krishna Yarlagadda <kyarlagadda@nvidia.com> | 2011-05-17 22:46:27 +0530 |
---|---|---|
committer | Niket Sirsi <nsirsi@nvidia.com> | 2011-06-02 22:40:55 -0700 |
commit | 88d74a3f9b0033316bbcc1a478283389c0c9c11f (patch) | |
tree | c1720633852a0a6e28ed8dc3843c60c1d4ee81e1 /arch/arm/mach-tegra/board-enterprise-sensors.c | |
parent | 46d711b474bc5299a9633c283f3ed53308dd31dd (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>
Diffstat (limited to 'arch/arm/mach-tegra/board-enterprise-sensors.c')
-rw-r--r-- | arch/arm/mach-tegra/board-enterprise-sensors.c | 6 |
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 }, }, }; |