* [PATCH] OMAP: set appropriate platform data for touchscreen.
@ 2008-11-20 14:02 Stanley.Miao
2008-11-21 7:47 ` stanley.miao
0 siblings, 1 reply; 2+ messages in thread
From: Stanley.Miao @ 2008-11-20 14:02 UTC (permalink / raw)
To: linux-omap; +Cc: david-b
Set appropriate platform data for touchscreen and make it work correctly.
Signed-off-by: Stanley.Miao <stanley.miao@windriver.com>
---
arch/arm/mach-omap2/board-3430sdp.c | 8 ++++++++
arch/arm/mach-omap2/board-ldp.c | 8 ++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c
index b7d2e92..42f92be 100644
--- a/arch/arm/mach-omap2/board-3430sdp.c
+++ b/arch/arm/mach-omap2/board-3430sdp.c
@@ -213,9 +213,17 @@ static int ads7846_vaux_control(int vaux_cntrl)
}
static struct ads7846_platform_data tsc2046_config __initdata = {
+ .x_max = 0x0fff,
+ .y_max = 0x0fff,
+ .x_plate_ohms = 180,
+ .pressure_max = 255,
+ .debounce_max = 10,
+ .debounce_tol = 10,
+ .debounce_rep = 1,
.get_pendown_state = ads7846_get_pendown_state,
.keep_vref_on = 1,
.vaux_control = ads7846_vaux_control,
+ .settle_delay_usecs = 150,
};
diff --git a/arch/arm/mach-omap2/board-ldp.c b/arch/arm/mach-omap2/board-ldp.c
index a59e4eb..f17d507 100644
--- a/arch/arm/mach-omap2/board-ldp.c
+++ b/arch/arm/mach-omap2/board-ldp.c
@@ -277,9 +277,17 @@ static int ads7846_vaux_control(int vaux_cntrl)
}
static struct ads7846_platform_data tsc2046_config __initdata = {
+ .x_max = 0x0fff,
+ .y_max = 0x0fff,
+ .x_plate_ohms = 180,
+ .pressure_max = 255,
+ .debounce_max = 10,
+ .debounce_tol = 10,
+ .debounce_rep = 1,
.get_pendown_state = ads7846_get_pendown_state,
.keep_vref_on = 1,
.vaux_control = ads7846_vaux_control,
+ .settle_delay_usecs = 150,
};
--
1.5.6.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] OMAP: set appropriate platform data for touchscreen.
2008-11-20 14:02 [PATCH] OMAP: set appropriate platform data for touchscreen Stanley.Miao
@ 2008-11-21 7:47 ` stanley.miao
0 siblings, 0 replies; 2+ messages in thread
From: stanley.miao @ 2008-11-21 7:47 UTC (permalink / raw)
To: linux-omap
Please ignore it, I will resend it with other patches together.
Stanley.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-21 7:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-20 14:02 [PATCH] OMAP: set appropriate platform data for touchscreen Stanley.Miao
2008-11-21 7:47 ` stanley.miao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox