From 7ceebcd09f2f9e9a9d7a9a0c8c6163672ff3aa81 Mon Sep 17 00:00:00 2001 From: "makarand.karvekar" Date: Thu, 26 Aug 2010 11:31:58 -0500 Subject: [PATCH] [ARM] tegra: update gyro configuration. increased gyro sensitivity. corrected part placement. Change-Id: Icb050bbdc9e7f453fdd9d8331410d898c31370f5 Signed-off-by: makarand.karvekar --- arch/arm/mach-tegra/board-stingray-sensors.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-tegra/board-stingray-sensors.c b/arch/arm/mach-tegra/board-stingray-sensors.c index cb9063715232..c69d0e5fb3ac 100755 --- a/arch/arm/mach-tegra/board-stingray-sensors.c +++ b/arch/arm/mach-tegra/board-stingray-sensors.c @@ -264,14 +264,12 @@ static int stingray_l3g4200d_init(void) struct l3g4200d_platform_data stingray_gyro_pdata = { .poll_interval = 200, - .min_interval = 0, - - .g_range = 0, + .min_interval = 20, - .ctrl_reg_1 = 0xbf, + .ctrl_reg_1 = 0x3f, .ctrl_reg_2 = 0x00, .ctrl_reg_3 = 0x00, - .ctrl_reg_4 = 0x00, + .ctrl_reg_4 = 0x20, .ctrl_reg_5 = 0x00, .int_config = 0x00, .int_source = 0x00, @@ -283,8 +281,8 @@ struct l3g4200d_platform_data stingray_gyro_pdata = { .int_th_z_l = 0x00, .int_duration = 0x00, - .axis_map_x = 1, - .axis_map_y = 0, + .axis_map_x = 0, + .axis_map_y = 1, .axis_map_z = 2, .negate_x = 0, -- 2.34.1