|
@@ -37,6 +37,8 @@
|
|
|
#include <plat/cpu.h>
|
|
|
#include <plat/regs-spi.h>
|
|
|
|
|
|
+#include <mach/ts.h>
|
|
|
+
|
|
|
/* Serial port registrations */
|
|
|
|
|
|
static struct resource s3c2410_uart0_resource[] = {
|
|
@@ -182,6 +184,22 @@ void __init s3c24xx_fb_set_platdata(struct s3c2410fb_mach_info *pd)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+/* 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 __init s3c24xx_ts_set_platdata(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(s3c24xx_ts_set_platdata);
|
|
|
+
|
|
|
/* USB Device (Gadget)*/
|
|
|
|
|
|
static struct resource s3c_usbgadget_resource[] = {
|