[ARM] Stingray board file: Modify the axis map to dictate the correct orientation
authorDan Murphy <wldm10@motorola.com>
Mon, 28 Jun 2010 18:51:40 +0000 (13:51 -0500)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:33:13 +0000 (16:33 -0700)
Change the axis_map values so that the orientation of the gyroscope to match Android's expectations

Change-Id: I171a37c814b8210637f97eba5ed6645c09073e89
Signed-off-by: Dan Murphy <wldm10@motorola.com>
arch/arm/mach-tegra/board-stingray-sensors.c

index 397d3b64e39907454673bebccb70d4dfbd4bbf28..a0202bce2adb13c0a804cfcb99d86e90901226cd 100755 (executable)
@@ -300,9 +300,9 @@ struct l3g4200d_platform_data stingray_gyro_pdata = {
        .int_th_z_l = 0x00,
        .int_duration = 0x00,
 
-       .axis_map_x = 0,
+       .axis_map_x = 1,
        .axis_map_y = 0,
-       .axis_map_z = 0,
+       .axis_map_z = 2,
 
        .negate_x = 0,
        .negate_y = 0,