]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[ARM] 5496/1: Add w90p910 touch screen driver relevant kernel parts[2/2].
authorwanzongshun <mcuos.com@gmail.com>
Fri, 1 May 2009 15:13:05 +0000 (16:13 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 7 May 2009 14:24:18 +0000 (15:24 +0100)
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>
arch/arm/mach-w90x900/mach-w90p910evb.c

index 578a50910c0a88819c510ca96e2634704330087e..26de71f73f472b6dd2ffde29ca466b7f7364634d 100644 (file)
@@ -135,6 +135,29 @@ struct platform_device w90x900_device_usb_ohci = {
 };
 EXPORT_SYMBOL(w90x900_device_usb_ohci);
 
+/*TouchScreen controller*/
+
+static struct resource w90x900_ts_resource[] = {
+       [0] = {
+               .start = W90X900_PA_ADC,
+               .end   = W90X900_PA_ADC + W90X900_SZ_ADC-1,
+               .flags = IORESOURCE_MEM,
+       },
+       [1] = {
+               .start = IRQ_ADC,
+               .end   = IRQ_ADC,
+               .flags = IORESOURCE_IRQ,
+       },
+};
+
+struct platform_device w90x900_device_ts = {
+       .name           = "w90x900-ts",
+       .id             = -1,
+       .resource       = w90x900_ts_resource,
+       .num_resources  = ARRAY_SIZE(w90x900_ts_resource),
+};
+EXPORT_SYMBOL(w90x900_device_ts);
+
 static struct map_desc w90p910_iodesc[] __initdata = {
 };
 
@@ -145,6 +168,7 @@ static struct platform_device *w90p910evb_dev[] __initdata = {
        &w90p910_flash_device,
        &w90x900_device_usb_ehci,
        &w90x900_device_usb_ohci,
+       &w90x900_device_ts,
 };
 
 static void __init w90p910evb_map_io(void)