diff options
author | mokopatches <mokopatches@openmoko.org> | 2008-11-19 17:03:13 +0000 |
---|---|---|
committer | warmcat <andy@warmcat.com> | 2008-11-19 17:03:13 +0000 |
commit | 5c920d695b46aa4e337ca98fd79a613e9760e9c3 (patch) | |
tree | 38dfd19e4058e95ef7135c0b9bc925d34635f9f8 /arch/arm/plat-s3c24xx/devs.c | |
parent | d377c9b9befa78d7a8e3e55aae2ef67dd4276d28 (diff) |
s3c2410_touchscreen.patch
Diffstat (limited to 'arch/arm/plat-s3c24xx/devs.c')
-rw-r--r-- | arch/arm/plat-s3c24xx/devs.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c24xx/devs.c b/arch/arm/plat-s3c24xx/devs.c index 54e992f4530..b689cf464c7 100644 --- a/arch/arm/plat-s3c24xx/devs.c +++ b/arch/arm/plat-s3c24xx/devs.c @@ -26,6 +26,8 @@ #include <asm/mach/irq.h> #include <mach/fb.h> #include <mach/hardware.h> +#include <asm/arch-s3c2410/ts.h> +#include <asm/io.h> #include <asm/irq.h> #include <plat/regs-serial.h> @@ -229,6 +231,23 @@ struct platform_device s3c_device_nand = { EXPORT_SYMBOL(s3c_device_nand); +/* Touchscreen */ +struct platform_device s3c_device_ts = { + .name = "s3c2410-ts", + .id = -1, +}; + +EXPORT_SYMBOL(s3c_device_ts); + +static struct s3c2410_ts_mach_info s3c2410ts_info; + +void set_s3c2410ts_info(struct s3c2410_ts_mach_info *hard_s3c2410ts_info) +{ + memcpy(&s3c2410ts_info,hard_s3c2410ts_info,sizeof(struct s3c2410_ts_mach_info)); + s3c_device_ts.dev.platform_data = &s3c2410ts_info; +} +EXPORT_SYMBOL(set_s3c2410ts_info); + /* USB Device (Gadget)*/ static struct resource s3c_usbgadget_resource[] = { |