]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Patch for Touch Screen noise on OMAP3EVM.
authorA NAVEEN <anaveen@mistralsolutions.com>
Mon, 8 Sep 2008 06:11:57 +0000 (11:41 +0530)
committerTony Lindgren <tony@atomide.com>
Thu, 11 Sep 2008 00:26:08 +0000 (17:26 -0700)
When git kernel tree is used on a OMAP3EVM board file for touch screen
testing, it shows lot of jitter. With this patch the jitter can be
reduced.

Signed-off-by: Naveen Atmakuri <anaveen@mistralsolutions.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-omap3evm.c

index 4963f0fad310c63c78d644b004186bc1d8da1285..9a4784ead4873ae3246bc2c5e1581353d60e2293 100644 (file)
@@ -27,6 +27,8 @@
 #include <asm/mach-types.h>
 #include <asm/mach/arch.h>
 #include <asm/mach/map.h>
+#include <linux/io.h>
+#include <linux/delay.h>
 
 #include <mach/gpio.h>
 #include <mach/keypad.h>
@@ -132,8 +134,16 @@ static int ads7846_get_pendown_state(void)
 }
 
 struct ads7846_platform_data ads7846_config = {
+       .x_max                  = 0x0fff,
+       .y_max                  = 0x0fff,
+       .x_plate_ohms           = 180,
+       .pressure_max           = 255,
+       .debounce_max           = 10,
+       .debounce_tol           = 3,
+       .debounce_rep           = 1,
        .get_pendown_state      = ads7846_get_pendown_state,
        .keep_vref_on           = 1,
+       .settle_delay_usecs     = 150,
 };
 
 static struct omap2_mcspi_device_config ads7846_mcspi_config = {