1 --- a/arch/arm/plat-s3c24xx/devs.c
2 +++ b/arch/arm/plat-s3c24xx/devs.c
4 #include <asm/mach/irq.h>
6 #include <mach/hardware.h>
11 #include <plat/regs-serial.h>
12 @@ -199,6 +201,24 @@ struct platform_device s3c_device_nand =
14 EXPORT_SYMBOL(s3c_device_nand);
17 +struct platform_device s3c_device_ts = {
18 + .name = "s3c2410-ts",
22 +EXPORT_SYMBOL(s3c_device_ts);
24 +static struct s3c2410_ts_mach_info s3c2410ts_info;
26 +void set_s3c2410ts_info(const struct s3c2410_ts_mach_info *hard_s3c2410ts_info)
28 + memcpy(&s3c2410ts_info, hard_s3c2410ts_info,
29 + sizeof(struct s3c2410_ts_mach_info));
30 + s3c_device_ts.dev.platform_data = &s3c2410ts_info;
32 +EXPORT_SYMBOL(set_s3c2410ts_info);
34 /* USB Device (Gadget)*/
36 static struct resource s3c_usbgadget_resource[] = {
37 --- a/arch/arm/plat-s3c24xx/s3c244x.c
38 +++ b/arch/arm/plat-s3c24xx/s3c244x.c
39 @@ -59,6 +59,8 @@ void __init s3c244x_init_uarts(struct s3
40 s3c24xx_init_uartdevs("s3c2440-uart", s3c2410_uart_resources, cfg, no);
43 +extern struct platform_device s3c_device_ts;
45 void __init s3c244x_map_io(void)
47 /* register our io-tables */
48 @@ -70,6 +72,7 @@ void __init s3c244x_map_io(void)
49 s3c_device_sdi.name = "s3c2440-sdi";
50 s3c_device_i2c0.name = "s3c2440-i2c";
51 s3c_device_nand.name = "s3c2440-nand";
52 + s3c_device_ts.name = "s3c2440-ts";
53 s3c_device_usbgadget.name = "s3c2440-usbgadget";
56 --- a/drivers/input/touchscreen/Kconfig
57 +++ b/drivers/input/touchscreen/Kconfig
58 @@ -124,6 +124,24 @@ config TOUCHSCREEN_FUJITSU
59 To compile this driver as a module, choose M here: the
60 module will be called fujitsu-ts.
62 +config TOUCHSCREEN_S3C2410
63 + tristate "Samsung S3C2410 touchscreen input driver"
64 + depends on ARCH_S3C2410 && INPUT && INPUT_TOUCHSCREEN
67 + Say Y here if you have the s3c2410 touchscreen.
71 + To compile this driver as a module, choose M here: the
72 + module will be called s3c2410_ts.
74 +config TOUCHSCREEN_S3C2410_DEBUG
75 + boolean "Samsung S3C2410 touchscreen debug messages"
76 + depends on TOUCHSCREEN_S3C2410
78 + Select this if you want debug messages
80 config TOUCHSCREEN_GUNZE
81 tristate "Gunze AHL-51S touchscreen"
83 --- a/drivers/input/touchscreen/Makefile
84 +++ b/drivers/input/touchscreen/Makefile
85 @@ -37,3 +37,4 @@ wm97xx-ts-$(CONFIG_TOUCHSCREEN_WM9712) +
86 wm97xx-ts-$(CONFIG_TOUCHSCREEN_WM9713) += wm9713.o
87 obj-$(CONFIG_TOUCHSCREEN_WM97XX_MAINSTONE) += mainstone-wm97xx.o
88 obj-$(CONFIG_TOUCHSCREEN_WM97XX_ZYLONITE) += zylonite-wm97xx.o
89 +obj-$(CONFIG_TOUCHSCREEN_S3C2410) += s3c2410_ts.o
91 +++ b/arch/arm/mach-s3c2410/include/mach/ts.h
93 +/* arch/arm/mach-s3c2410/include/mach/ts.h
95 + * Copyright (c) 2005 Arnaud Patard <arnaud.patard@rtp-net.org>
98 + * This program is free software; you can redistribute it and/or modify
99 + * it under the terms of the GNU General Public License version 2 as
100 + * published by the Free Software Foundation.
104 + * 24-Mar-2005 RTP Created file
105 + * 03-Aug-2005 RTP Renamed to ts.h
108 +#ifndef __ASM_ARM_TS_H
109 +#define __ASM_ARM_TS_H
111 +#include <linux/touchscreen/ts_filter.h>
113 +struct s3c2410_ts_mach_info {
114 + /* Touchscreen delay. */
116 + /* Prescaler value. */
119 + * Null-terminated array of pointers to filter APIs and configurations
120 + * we want to use. In the same order they will be applied.
122 + const struct ts_filter_chain_configuration *filter_config;
125 +void set_s3c2410ts_info(const struct s3c2410_ts_mach_info *hard_s3c2410ts_info);
127 +#endif /* __ASM_ARM_TS_H */
128 --- a/arch/arm/plat-s3c/include/plat/devs.h
129 +++ b/arch/arm/plat-s3c/include/plat/devs.h
130 @@ -50,10 +50,11 @@ extern struct platform_device s3c_device
132 extern struct platform_device s3c_device_usbgadget;
134 +extern struct platform_device s3c_device_ts;
136 /* s3c2440 specific devices */
138 #ifdef CONFIG_CPU_S3C2440
140 extern struct platform_device s3c_device_camif;