ARM: OMAP3530evm: set pendown_state and debounce time for ads7846
authorZumeng Chen <zumeng.chen@windriver.com>
Wed, 20 Jun 2012 09:14:53 +0000 (17:14 +0800)
committerTony Lindgren <tony@atomide.com>
Fri, 6 Jul 2012 08:37:25 +0000 (01:37 -0700)
commit16aced80f6739beb2a6ff7b6f96c83ba80d331e8
tree50e83b4139384aa0622f3b1b90bca221ab3476d4
parentcb8ca5897b58f1820f44ac365c9740ba9986701b
ARM: OMAP3530evm: set pendown_state and debounce time for ads7846

Currently most ads7846 config definitions for OMAP3 series boards have
been moved to common-board-devices.c, and it is transparent for init.
And it's no very proper to do gpio_request based on get_pendown_state
since omap_ads7846_init knows everything about ads7846_config.

So it's more fit to request gpio according to the right gpio_pendown
and set debounce time conditionally. If we don't set proper debouce
time, there are flooded interrupt counters of ads7846 responding to
one time touch on screen, then the driver couldn't work very well.

This patch has been validated on 3530evm.

Signed-off-by: Zumeng Chen <zumeng.chen@windriver.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-omap3evm.c
arch/arm/mach-omap2/common-board-devices.c
arch/arm/mach-omap2/common-board-devices.h
This page took 0.031186 seconds and 5 git commands to generate.