aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-s3c6410
diff options
context:
space:
mode:
authorMatt Hsu <matt_hsu@openmoko.org>2009-02-09 13:03:27 +0000
committerAndy Green <agreen@octopus.localdomain>2009-02-09 13:03:27 +0000
commitabe29c59c5f0af1184eaee94322b63ef4b95055f (patch)
treebcc2e64be48a28475807cfe78fd052260213005d /arch/arm/mach-s3c6410
parentfc193b9ce4fac373a7c7fa55e5bec8d67e4424fe (diff)
Fill up platform data of pcap7200 device on gta03.
Signed-off-by: Matt Hsu <matt_hsu@openmoko.org>
Diffstat (limited to 'arch/arm/mach-s3c6410')
-rw-r--r--arch/arm/mach-s3c6410/mach-om-gta03.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c6410/mach-om-gta03.c b/arch/arm/mach-s3c6410/mach-om-gta03.c
index 9e21f86026e..8986703b92a 100644
--- a/arch/arm/mach-s3c6410/mach-om-gta03.c
+++ b/arch/arm/mach-s3c6410/mach-om-gta03.c
@@ -32,6 +32,7 @@
#include <linux/lp5521.h>
#include <linux/spi/spi_bitbang.h>
#include <linux/l1k002.h>
+#include <linux/pcap7200.h>
#include <video/platform_lcd.h>
@@ -555,6 +556,18 @@ static struct lp5521_platform_data om_gta03_lp5521_pdata = {
.ext_enable = om_gta03_lp5521_chip_enable,
};
+static void om_gta03_pcap7200_reset(void)
+{
+ gpio_direction_output(GTA03_GPIO_TP_RESET, 1);
+ udelay(10);
+ gpio_direction_output(GTA03_GPIO_TP_RESET, 0);
+}
+
+static struct pcap7200_platform_data om_gta03_pcap7200_pdata = {
+ .mode = MULTI_TOUCH,
+ .reset = om_gta03_pcap7200_reset,
+};
+
static struct i2c_board_info om_gta03_i2c_devs[] __initdata = {
{
I2C_BOARD_INFO("pcf50633", 0x73),
@@ -564,6 +577,7 @@ static struct i2c_board_info om_gta03_i2c_devs[] __initdata = {
{
I2C_BOARD_INFO("pcap7200", 0x0a),
.irq = GTA03_IRQ_TOUCH,
+ .platform_data = &om_gta03_pcap7200_pdata,
},
{
I2C_BOARD_INFO("lp5521", 0x32),