diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2008-09-09 04:19:41 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2008-09-09 04:19:41 -0400 |
commit | 7e90534a8fde3a528606ada5dedfa244d8e0452d (patch) | |
tree | 98d17fafc1c882d80af25258cec14f7bb4b91517 /arch/arm/mach-mx2/pcm038.c | |
parent | 5cf0942123bcacf8af8922eaf3fef70bce6078e6 (diff) |
i.MX2: make SoC devices globally available
Make SoC devices globally available to boards rather than using
a device specific init function.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx2/pcm038.c')
-rw-r--r-- | arch/arm/mach-mx2/pcm038.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/mach-mx2/pcm038.c b/arch/arm/mach-mx2/pcm038.c index 1028f453cfc8..7f55746e2591 100644 --- a/arch/arm/mach-mx2/pcm038.c +++ b/arch/arm/mach-mx2/pcm038.c | |||
@@ -28,6 +28,8 @@ | |||
28 | #include <mach/imx-uart.h> | 28 | #include <mach/imx-uart.h> |
29 | #include <mach/board-pcm038.h> | 29 | #include <mach/board-pcm038.h> |
30 | 30 | ||
31 | #include "devices.h" | ||
32 | |||
31 | /* | 33 | /* |
32 | * Phytec's phyCORE-i.MX27 comes with 32MiB flash, | 34 | * Phytec's phyCORE-i.MX27 comes with 32MiB flash, |
33 | * 16 bit width | 35 | * 16 bit width |
@@ -170,11 +172,11 @@ static struct platform_device *platform_devices[] __initdata = { | |||
170 | 172 | ||
171 | static void __init pcm038_init(void) | 173 | static void __init pcm038_init(void) |
172 | { | 174 | { |
173 | int i; | ||
174 | gpio_fec_active(); | 175 | gpio_fec_active(); |
175 | 176 | ||
176 | for (i = 0; i < 3; i++) | 177 | mxc_register_device(&mxc_uart_device0, &uart_pdata[0]); |
177 | imx_init_uart(i, &uart_pdata[i]); | 178 | mxc_register_device(&mxc_uart_device1, &uart_pdata[1]); |
179 | mxc_register_device(&mxc_uart_device2, &uart_pdata[2]); | ||
178 | 180 | ||
179 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); | 181 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); |
180 | 182 | ||