diff options
author | wanzongshun <mcuos.com@gmail.com> | 2009-05-01 11:13:05 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-05-07 10:24:18 -0400 |
commit | 432818f08fa5cf983e13b0ac32ec59b0951882b9 (patch) | |
tree | 2592ebc47619e9f71a8d9c76dd75e3264c2c4ce5 /arch/arm/mach-w90x900 | |
parent | 177dd6bb8c70885bfe3c269bf21dab1c4aeaf5c3 (diff) |
[ARM] 5496/1: Add w90p910 touch screen driver relevant kernel parts[2/2].
Add this touch screen driver relevant kernel parts.
Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-w90x900')
-rw-r--r-- | arch/arm/mach-w90x900/mach-w90p910evb.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/mach-w90x900/mach-w90p910evb.c b/arch/arm/mach-w90x900/mach-w90p910evb.c index 578a50910c0a..26de71f73f47 100644 --- a/arch/arm/mach-w90x900/mach-w90p910evb.c +++ b/arch/arm/mach-w90x900/mach-w90p910evb.c | |||
@@ -135,6 +135,29 @@ struct platform_device w90x900_device_usb_ohci = { | |||
135 | }; | 135 | }; |
136 | EXPORT_SYMBOL(w90x900_device_usb_ohci); | 136 | EXPORT_SYMBOL(w90x900_device_usb_ohci); |
137 | 137 | ||
138 | /*TouchScreen controller*/ | ||
139 | |||
140 | static struct resource w90x900_ts_resource[] = { | ||
141 | [0] = { | ||
142 | .start = W90X900_PA_ADC, | ||
143 | .end = W90X900_PA_ADC + W90X900_SZ_ADC-1, | ||
144 | .flags = IORESOURCE_MEM, | ||
145 | }, | ||
146 | [1] = { | ||
147 | .start = IRQ_ADC, | ||
148 | .end = IRQ_ADC, | ||
149 | .flags = IORESOURCE_IRQ, | ||
150 | }, | ||
151 | }; | ||
152 | |||
153 | struct platform_device w90x900_device_ts = { | ||
154 | .name = "w90x900-ts", | ||
155 | .id = -1, | ||
156 | .resource = w90x900_ts_resource, | ||
157 | .num_resources = ARRAY_SIZE(w90x900_ts_resource), | ||
158 | }; | ||
159 | EXPORT_SYMBOL(w90x900_device_ts); | ||
160 | |||
138 | static struct map_desc w90p910_iodesc[] __initdata = { | 161 | static struct map_desc w90p910_iodesc[] __initdata = { |
139 | }; | 162 | }; |
140 | 163 | ||
@@ -145,6 +168,7 @@ static struct platform_device *w90p910evb_dev[] __initdata = { | |||
145 | &w90p910_flash_device, | 168 | &w90p910_flash_device, |
146 | &w90x900_device_usb_ehci, | 169 | &w90x900_device_usb_ehci, |
147 | &w90x900_device_usb_ohci, | 170 | &w90x900_device_usb_ohci, |
171 | &w90x900_device_ts, | ||
148 | }; | 172 | }; |
149 | 173 | ||
150 | static void __init w90p910evb_map_io(void) | 174 | static void __init w90p910evb_map_io(void) |