diff options
Diffstat (limited to 'arch/arm/mach-pxa/devices.c')
-rw-r--r-- | arch/arm/mach-pxa/devices.c | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c index 65447dc736c2..08b410343870 100644 --- a/arch/arm/mach-pxa/devices.c +++ b/arch/arm/mach-pxa/devices.c | |||
@@ -6,11 +6,12 @@ | |||
6 | 6 | ||
7 | #include <asm/pmu.h> | 7 | #include <asm/pmu.h> |
8 | #include <mach/udc.h> | 8 | #include <mach/udc.h> |
9 | #include <mach/pxa3xx-u2d.h> | ||
9 | #include <mach/pxafb.h> | 10 | #include <mach/pxafb.h> |
10 | #include <mach/mmc.h> | 11 | #include <mach/mmc.h> |
11 | #include <mach/irda.h> | 12 | #include <mach/irda.h> |
12 | #include <mach/ohci.h> | 13 | #include <mach/ohci.h> |
13 | #include <mach/pxa27x_keypad.h> | 14 | #include <plat/pxa27x_keypad.h> |
14 | #include <mach/pxa2xx_spi.h> | 15 | #include <mach/pxa2xx_spi.h> |
15 | #include <mach/camera.h> | 16 | #include <mach/camera.h> |
16 | #include <mach/audio.h> | 17 | #include <mach/audio.h> |
@@ -134,6 +135,33 @@ struct platform_device pxa27x_device_udc = { | |||
134 | } | 135 | } |
135 | }; | 136 | }; |
136 | 137 | ||
138 | #ifdef CONFIG_PXA3xx | ||
139 | static struct resource pxa3xx_u2d_resources[] = { | ||
140 | [0] = { | ||
141 | .start = 0x54100000, | ||
142 | .end = 0x54100fff, | ||
143 | .flags = IORESOURCE_MEM, | ||
144 | }, | ||
145 | [1] = { | ||
146 | .start = IRQ_USB2, | ||
147 | .end = IRQ_USB2, | ||
148 | .flags = IORESOURCE_IRQ, | ||
149 | }, | ||
150 | }; | ||
151 | |||
152 | struct platform_device pxa3xx_device_u2d = { | ||
153 | .name = "pxa3xx-u2d", | ||
154 | .id = -1, | ||
155 | .resource = pxa3xx_u2d_resources, | ||
156 | .num_resources = ARRAY_SIZE(pxa3xx_u2d_resources), | ||
157 | }; | ||
158 | |||
159 | void __init pxa3xx_set_u2d_info(struct pxa3xx_u2d_platform_data *info) | ||
160 | { | ||
161 | pxa_register_device(&pxa3xx_device_u2d, info); | ||
162 | } | ||
163 | #endif /* CONFIG_PXA3xx */ | ||
164 | |||
137 | static struct resource pxafb_resources[] = { | 165 | static struct resource pxafb_resources[] = { |
138 | [0] = { | 166 | [0] = { |
139 | .start = 0x44000000, | 167 | .start = 0x44000000, |