diff options
Diffstat (limited to 'arch/arm/plat-s3c24xx')
-rw-r--r-- | arch/arm/plat-s3c24xx/devs.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/plat-s3c24xx/devs.c b/arch/arm/plat-s3c24xx/devs.c index 986d4e5408f5..8c6de1c9968f 100644 --- a/arch/arm/plat-s3c24xx/devs.c +++ b/arch/arm/plat-s3c24xx/devs.c | |||
@@ -158,9 +158,27 @@ void __init s3c24xx_fb_set_platdata(struct s3c2410fb_mach_info *pd) | |||
158 | } | 158 | } |
159 | 159 | ||
160 | /* Touchscreen */ | 160 | /* Touchscreen */ |
161 | |||
162 | static struct resource s3c_ts_resource[] = { | ||
163 | [0] = { | ||
164 | .start = S3C24XX_PA_ADC, | ||
165 | .end = S3C24XX_PA_ADC + S3C24XX_SZ_ADC - 1, | ||
166 | .flags = IORESOURCE_MEM, | ||
167 | }, | ||
168 | [1] = { | ||
169 | .start = IRQ_TC, | ||
170 | .end = IRQ_TC, | ||
171 | .flags = IORESOURCE_IRQ, | ||
172 | }, | ||
173 | |||
174 | }; | ||
175 | |||
161 | struct platform_device s3c_device_ts = { | 176 | struct platform_device s3c_device_ts = { |
162 | .name = "s3c2410-ts", | 177 | .name = "s3c2410-ts", |
163 | .id = -1, | 178 | .id = -1, |
179 | .dev.parent = &s3c_device_adc.dev, | ||
180 | .num_resources = ARRAY_SIZE(s3c_ts_resource), | ||
181 | .resource = s3c_ts_resource, | ||
164 | }; | 182 | }; |
165 | EXPORT_SYMBOL(s3c_device_ts); | 183 | EXPORT_SYMBOL(s3c_device_ts); |
166 | 184 | ||