···1+/* linux/include/asm/arch-s3c2410/ts.h2+ *3+ * Copyright (c) 2005 Arnaud Patard <arnaud.patard@rtp-net.org>4+ *5+ * This program is free software; you can redistribute it and/or modify6+ * it under the terms of the GNU General Public License version 2 as7+ * published by the Free Software Foundation.8+*/9+10+#ifndef __ASM_ARM_TS_H11+#define __ASM_ARM_TS_H12+13+struct s3c2410_ts_mach_info {14+ int delay;15+ int presc;16+ int oversampling_shift;17+};18+19+extern void s3c24xx_ts_set_platdata(struct s3c2410_ts_mach_info *);20+21+#endif /* __ASM_ARM_TS_H */
···114115 for (i = 0; i < npd->nr_sets; i++) {116 ret = s3c_nand_copy_set(to);117- if (!ret) {118 printk(KERN_ERR "%s: failed to copy set %d\n",119 __func__, i);120 return;···122 to++;123 }124 }00125}126127EXPORT_SYMBOL_GPL(s3c_nand_set_platdata);
···114115 for (i = 0; i < npd->nr_sets; i++) {116 ret = s3c_nand_copy_set(to);117+ if (ret) {118 printk(KERN_ERR "%s: failed to copy set %d\n",119 __func__, i);120 return;···122 to++;123 }124 }125+126+ s3c_device_nand.dev.platform_data = npd;127}128129EXPORT_SYMBOL_GPL(s3c_nand_set_platdata);
···37#include <plat/cpu.h>38#include <plat/regs-spi.h>390040/* Serial port registrations */4142static struct resource s3c2410_uart0_resource[] = {···183 printk(KERN_ERR "no memory for LCD platform data\n");184 }185}0000000000000000186187/* USB Device (Gadget)*/188
···37#include <plat/cpu.h>38#include <plat/regs-spi.h>3940+#include <mach/ts.h>41+42/* Serial port registrations */4344static struct resource s3c2410_uart0_resource[] = {···181 printk(KERN_ERR "no memory for LCD platform data\n");182 }183}184+185+/* Touchscreen */186+struct platform_device s3c_device_ts = {187+ .name = "s3c2410-ts",188+ .id = -1,189+};190+EXPORT_SYMBOL(s3c_device_ts);191+192+static struct s3c2410_ts_mach_info s3c2410ts_info;193+194+void __init s3c24xx_ts_set_platdata(struct s3c2410_ts_mach_info *hard_s3c2410ts_info)195+{196+ memcpy(&s3c2410ts_info, hard_s3c2410ts_info, sizeof(struct s3c2410_ts_mach_info));197+ s3c_device_ts.dev.platform_data = &s3c2410ts_info;198+}199+EXPORT_SYMBOL(s3c24xx_ts_set_platdata);200201/* USB Device (Gadget)*/202