aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-pxa/corgi.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c
index 3678d1e0e826..fc428b827671 100644
--- a/arch/arm/mach-pxa/corgi.c
+++ b/arch/arm/mach-pxa/corgi.c
@@ -130,12 +130,29 @@ static struct platform_device corgikbd_device = {
130/* 130/*
131 * Corgi Touch Screen Device 131 * Corgi Touch Screen Device
132 */ 132 */
133static struct resource corgits_resources[] = {
134 [0] = {
135 .start = CORGI_IRQ_GPIO_TP_INT,
136 .end = CORGI_IRQ_GPIO_TP_INT,
137 .flags = IORESOURCE_IRQ,
138 },
139};
140
141static struct corgits_machinfo corgi_ts_machinfo = {
142 .get_hsync_len = corgi_get_hsync_len,
143 .put_hsync = corgi_put_hsync,
144 .wait_hsync = corgi_wait_hsync,
145};
146
133static struct platform_device corgits_device = { 147static struct platform_device corgits_device = {
134 .name = "corgi-ts", 148 .name = "corgi-ts",
135 .dev = { 149 .dev = {
136 .parent = &corgissp_device.dev, 150 .parent = &corgissp_device.dev,
151 .platform_data = &corgi_ts_machinfo,
137 }, 152 },
138 .id = -1, 153 .id = -1,
154 .num_resources = ARRAY_SIZE(corgits_resources),
155 .resource = corgits_resources,
139}; 156};
140 157
141 158
@@ -239,6 +256,7 @@ static void __init corgi_init(void)
239 corgi_ssp_set_machinfo(&corgi_ssp_machinfo); 256 corgi_ssp_set_machinfo(&corgi_ssp_machinfo);
240 257
241 pxa_gpio_mode(CORGI_GPIO_USB_PULLUP | GPIO_OUT); 258 pxa_gpio_mode(CORGI_GPIO_USB_PULLUP | GPIO_OUT);
259 pxa_gpio_mode(CORGI_GPIO_HSYNC | GPIO_IN);
242 pxa_set_udc_info(&udc_info); 260 pxa_set_udc_info(&udc_info);
243 pxa_set_mci_info(&corgi_mci_platform_data); 261 pxa_set_mci_info(&corgi_mci_platform_data);
244 262