summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/common-board-devices.h
diff options
context:
space:
mode:
authorZumeng Chen <zumeng.chen@windriver.com>2012-06-20 17:14:53 +0800
committerTony Lindgren <tony@atomide.com>2012-07-06 01:37:25 -0700
commit16aced80f6739beb2a6ff7b6f96c83ba80d331e8 (patch)
tree50e83b4139384aa0622f3b1b90bca221ab3476d4 /arch/arm/mach-omap2/common-board-devices.h
parentcb8ca5897b58f1820f44ac365c9740ba9986701b (diff)
downloadblackbird-op-linux-16aced80f6739beb2a6ff7b6f96c83ba80d331e8.tar.gz
blackbird-op-linux-16aced80f6739beb2a6ff7b6f96c83ba80d331e8.zip
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>
Diffstat (limited to 'arch/arm/mach-omap2/common-board-devices.h')
-rw-r--r--arch/arm/mach-omap2/common-board-devices.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/common-board-devices.h b/arch/arm/mach-omap2/common-board-devices.h
index a0b4a42836ab..4c4ef6a6166b 100644
--- a/arch/arm/mach-omap2/common-board-devices.h
+++ b/arch/arm/mach-omap2/common-board-devices.h
@@ -4,6 +4,7 @@
#include "twl-common.h"
#define NAND_BLOCK_SIZE SZ_128K
+#define OMAP3_EVM_TS_GPIO 175
struct mtd_partition;
struct ads7846_platform_data;
OpenPOWER on IntegriCloud