diff options
Diffstat (limited to 'arch/arm/mach-mx25/devices.c')
-rw-r--r-- | arch/arm/mach-mx25/devices.c | 231 |
1 files changed, 1 insertions, 230 deletions
diff --git a/arch/arm/mach-mx25/devices.c b/arch/arm/mach-mx25/devices.c index 82d3e53f01f2..3468eb15b236 100644 --- a/arch/arm/mach-mx25/devices.c +++ b/arch/arm/mach-mx25/devices.c | |||
@@ -22,101 +22,6 @@ | |||
22 | #include <mach/mx25.h> | 22 | #include <mach/mx25.h> |
23 | #include <mach/irqs.h> | 23 | #include <mach/irqs.h> |
24 | 24 | ||
25 | static struct resource uart0[] = { | ||
26 | { | ||
27 | .start = 0x43f90000, | ||
28 | .end = 0x43f93fff, | ||
29 | .flags = IORESOURCE_MEM, | ||
30 | }, { | ||
31 | .start = 45, | ||
32 | .end = 45, | ||
33 | .flags = IORESOURCE_IRQ, | ||
34 | }, | ||
35 | }; | ||
36 | |||
37 | struct platform_device mxc_uart_device0 = { | ||
38 | .name = "imx-uart", | ||
39 | .id = 0, | ||
40 | .resource = uart0, | ||
41 | .num_resources = ARRAY_SIZE(uart0), | ||
42 | }; | ||
43 | |||
44 | static struct resource uart1[] = { | ||
45 | { | ||
46 | .start = 0x43f94000, | ||
47 | .end = 0x43f97fff, | ||
48 | .flags = IORESOURCE_MEM, | ||
49 | }, { | ||
50 | .start = 32, | ||
51 | .end = 32, | ||
52 | .flags = IORESOURCE_IRQ, | ||
53 | }, | ||
54 | }; | ||
55 | |||
56 | struct platform_device mxc_uart_device1 = { | ||
57 | .name = "imx-uart", | ||
58 | .id = 1, | ||
59 | .resource = uart1, | ||
60 | .num_resources = ARRAY_SIZE(uart1), | ||
61 | }; | ||
62 | |||
63 | static struct resource uart2[] = { | ||
64 | { | ||
65 | .start = 0x5000c000, | ||
66 | .end = 0x5000ffff, | ||
67 | .flags = IORESOURCE_MEM, | ||
68 | }, { | ||
69 | .start = 18, | ||
70 | .end = 18, | ||
71 | .flags = IORESOURCE_IRQ, | ||
72 | }, | ||
73 | }; | ||
74 | |||
75 | struct platform_device mxc_uart_device2 = { | ||
76 | .name = "imx-uart", | ||
77 | .id = 2, | ||
78 | .resource = uart2, | ||
79 | .num_resources = ARRAY_SIZE(uart2), | ||
80 | }; | ||
81 | |||
82 | static struct resource uart3[] = { | ||
83 | { | ||
84 | .start = 0x50008000, | ||
85 | .end = 0x5000bfff, | ||
86 | .flags = IORESOURCE_MEM, | ||
87 | }, { | ||
88 | .start = 5, | ||
89 | .end = 5, | ||
90 | .flags = IORESOURCE_IRQ, | ||
91 | }, | ||
92 | }; | ||
93 | |||
94 | struct platform_device mxc_uart_device3 = { | ||
95 | .name = "imx-uart", | ||
96 | .id = 3, | ||
97 | .resource = uart3, | ||
98 | .num_resources = ARRAY_SIZE(uart3), | ||
99 | }; | ||
100 | |||
101 | static struct resource uart4[] = { | ||
102 | { | ||
103 | .start = 0x5002c000, | ||
104 | .end = 0x5002ffff, | ||
105 | .flags = IORESOURCE_MEM, | ||
106 | }, { | ||
107 | .start = 40, | ||
108 | .end = 40, | ||
109 | .flags = IORESOURCE_IRQ, | ||
110 | }, | ||
111 | }; | ||
112 | |||
113 | struct platform_device mxc_uart_device4 = { | ||
114 | .name = "imx-uart", | ||
115 | .id = 4, | ||
116 | .resource = uart4, | ||
117 | .num_resources = ARRAY_SIZE(uart4), | ||
118 | }; | ||
119 | |||
120 | static u64 otg_dmamask = DMA_BIT_MASK(32); | 25 | static u64 otg_dmamask = DMA_BIT_MASK(32); |
121 | 26 | ||
122 | static struct resource mxc_otg_resources[] = { | 27 | static struct resource mxc_otg_resources[] = { |
@@ -179,63 +84,6 @@ struct platform_device mxc_usbh2 = { | |||
179 | .num_resources = ARRAY_SIZE(mxc_usbh2_resources), | 84 | .num_resources = ARRAY_SIZE(mxc_usbh2_resources), |
180 | }; | 85 | }; |
181 | 86 | ||
182 | static struct resource mxc_spi_resources0[] = { | ||
183 | { | ||
184 | .start = 0x43fa4000, | ||
185 | .end = 0x43fa7fff, | ||
186 | .flags = IORESOURCE_MEM, | ||
187 | }, { | ||
188 | .start = 14, | ||
189 | .end = 14, | ||
190 | .flags = IORESOURCE_IRQ, | ||
191 | }, | ||
192 | }; | ||
193 | |||
194 | struct platform_device mxc_spi_device0 = { | ||
195 | .name = "spi_imx", | ||
196 | .id = 0, | ||
197 | .num_resources = ARRAY_SIZE(mxc_spi_resources0), | ||
198 | .resource = mxc_spi_resources0, | ||
199 | }; | ||
200 | |||
201 | static struct resource mxc_spi_resources1[] = { | ||
202 | { | ||
203 | .start = 0x50010000, | ||
204 | .end = 0x50013fff, | ||
205 | .flags = IORESOURCE_MEM, | ||
206 | }, { | ||
207 | .start = 13, | ||
208 | .end = 13, | ||
209 | .flags = IORESOURCE_IRQ, | ||
210 | }, | ||
211 | }; | ||
212 | |||
213 | struct platform_device mxc_spi_device1 = { | ||
214 | .name = "spi_imx", | ||
215 | .id = 1, | ||
216 | .num_resources = ARRAY_SIZE(mxc_spi_resources1), | ||
217 | .resource = mxc_spi_resources1, | ||
218 | }; | ||
219 | |||
220 | static struct resource mxc_spi_resources2[] = { | ||
221 | { | ||
222 | .start = 0x50004000, | ||
223 | .end = 0x50007fff, | ||
224 | .flags = IORESOURCE_MEM, | ||
225 | }, { | ||
226 | .start = 0, | ||
227 | .end = 0, | ||
228 | .flags = IORESOURCE_IRQ, | ||
229 | }, | ||
230 | }; | ||
231 | |||
232 | struct platform_device mxc_spi_device2 = { | ||
233 | .name = "spi_imx", | ||
234 | .id = 2, | ||
235 | .num_resources = ARRAY_SIZE(mxc_spi_resources2), | ||
236 | .resource = mxc_spi_resources2, | ||
237 | }; | ||
238 | |||
239 | static struct resource mxc_pwm_resources0[] = { | 87 | static struct resource mxc_pwm_resources0[] = { |
240 | { | 88 | { |
241 | .start = 0x53fe0000, | 89 | .start = 0x53fe0000, |
@@ -331,63 +179,6 @@ struct platform_device mxc_pwm_device3 = { | |||
331 | .resource = mxc_pwm_resources3, | 179 | .resource = mxc_pwm_resources3, |
332 | }; | 180 | }; |
333 | 181 | ||
334 | static struct resource mxc_i2c_1_resources[] = { | ||
335 | { | ||
336 | .start = 0x43f80000, | ||
337 | .end = 0x43f83fff, | ||
338 | .flags = IORESOURCE_MEM, | ||
339 | }, { | ||
340 | .start = 3, | ||
341 | .end = 3, | ||
342 | .flags = IORESOURCE_IRQ, | ||
343 | } | ||
344 | }; | ||
345 | |||
346 | struct platform_device mxc_i2c_device0 = { | ||
347 | .name = "imx-i2c", | ||
348 | .id = 0, | ||
349 | .num_resources = ARRAY_SIZE(mxc_i2c_1_resources), | ||
350 | .resource = mxc_i2c_1_resources, | ||
351 | }; | ||
352 | |||
353 | static struct resource mxc_i2c_2_resources[] = { | ||
354 | { | ||
355 | .start = 0x43f98000, | ||
356 | .end = 0x43f9bfff, | ||
357 | .flags = IORESOURCE_MEM, | ||
358 | }, { | ||
359 | .start = 4, | ||
360 | .end = 4, | ||
361 | .flags = IORESOURCE_IRQ, | ||
362 | } | ||
363 | }; | ||
364 | |||
365 | struct platform_device mxc_i2c_device1 = { | ||
366 | .name = "imx-i2c", | ||
367 | .id = 1, | ||
368 | .num_resources = ARRAY_SIZE(mxc_i2c_2_resources), | ||
369 | .resource = mxc_i2c_2_resources, | ||
370 | }; | ||
371 | |||
372 | static struct resource mxc_i2c_3_resources[] = { | ||
373 | { | ||
374 | .start = 0x43f84000, | ||
375 | .end = 0x43f87fff, | ||
376 | .flags = IORESOURCE_MEM, | ||
377 | }, { | ||
378 | .start = 10, | ||
379 | .end = 10, | ||
380 | .flags = IORESOURCE_IRQ, | ||
381 | } | ||
382 | }; | ||
383 | |||
384 | struct platform_device mxc_i2c_device2 = { | ||
385 | .name = "imx-i2c", | ||
386 | .id = 2, | ||
387 | .num_resources = ARRAY_SIZE(mxc_i2c_3_resources), | ||
388 | .resource = mxc_i2c_3_resources, | ||
389 | }; | ||
390 | |||
391 | static struct mxc_gpio_port imx_gpio_ports[] = { | 182 | static struct mxc_gpio_port imx_gpio_ports[] = { |
392 | { | 183 | { |
393 | .chip.label = "gpio-0", | 184 | .chip.label = "gpio-0", |
@@ -412,7 +203,7 @@ static struct mxc_gpio_port imx_gpio_ports[] = { | |||
412 | } | 203 | } |
413 | }; | 204 | }; |
414 | 205 | ||
415 | int __init mxc_register_gpios(void) | 206 | int __init imx25_register_gpios(void) |
416 | { | 207 | { |
417 | return mxc_gpio_init(imx_gpio_ports, ARRAY_SIZE(imx_gpio_ports)); | 208 | return mxc_gpio_init(imx_gpio_ports, ARRAY_SIZE(imx_gpio_ports)); |
418 | } | 209 | } |
@@ -437,26 +228,6 @@ struct platform_device mx25_fec_device = { | |||
437 | .resource = mx25_fec_resources, | 228 | .resource = mx25_fec_resources, |
438 | }; | 229 | }; |
439 | 230 | ||
440 | static struct resource mxc_nand_resources[] = { | ||
441 | { | ||
442 | .start = MX25_NFC_BASE_ADDR, | ||
443 | .end = MX25_NFC_BASE_ADDR + 0x1fff, | ||
444 | .flags = IORESOURCE_MEM, | ||
445 | }, | ||
446 | { | ||
447 | .start = MX25_INT_NANDFC, | ||
448 | .end = MX25_INT_NANDFC, | ||
449 | .flags = IORESOURCE_IRQ, | ||
450 | }, | ||
451 | }; | ||
452 | |||
453 | struct platform_device mxc_nand_device = { | ||
454 | .name = "mxc_nand", | ||
455 | .id = 0, | ||
456 | .num_resources = ARRAY_SIZE(mxc_nand_resources), | ||
457 | .resource = mxc_nand_resources, | ||
458 | }; | ||
459 | |||
460 | static struct resource mx25_rtc_resources[] = { | 231 | static struct resource mx25_rtc_resources[] = { |
461 | { | 232 | { |
462 | .start = MX25_DRYICE_BASE_ADDR, | 233 | .start = MX25_DRYICE_BASE_ADDR, |