aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3/mm.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-11-11 12:50:50 -0500
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-11-19 15:54:34 -0500
commitd7e0951f929513ced7c57882d2f95d49a546e002 (patch)
treeda72b67a4e988a95fe93e3422dcc6ed52d7e4341 /arch/arm/mach-mx3/mm.c
parent972cc48207450ce6aeed416ac176fe4d0482a4a3 (diff)
ARM: mx3: move registration of gpios to plat-mxc/gpio.c
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mm.c')
-rw-r--r--arch/arm/mach-mx3/mm.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/arch/arm/mach-mx3/mm.c b/arch/arm/mach-mx3/mm.c
index 193c18cd5304..998c3d7f1f22 100644
--- a/arch/arm/mach-mx3/mm.c
+++ b/arch/arm/mach-mx3/mm.c
@@ -57,7 +57,14 @@ void __init mx31_map_io(void)
57 57
58 iotable_init(mx31_io_desc, ARRAY_SIZE(mx31_io_desc)); 58 iotable_init(mx31_io_desc, ARRAY_SIZE(mx31_io_desc));
59} 59}
60#endif 60
61int imx31_register_gpios(void);
62void __init mx31_init_irq(void)
63{
64 mxc_init_irq(MX31_IO_ADDRESS(MX31_AVIC_BASE_ADDR));
65 imx31_register_gpios();
66}
67#endif /* ifdef CONFIG_ARCH_MX31 */
61 68
62#ifdef CONFIG_ARCH_MX35 69#ifdef CONFIG_ARCH_MX35
63static struct map_desc mx35_io_desc[] __initdata = { 70static struct map_desc mx35_io_desc[] __initdata = {
@@ -76,20 +83,14 @@ void __init mx35_map_io(void)
76 83
77 iotable_init(mx35_io_desc, ARRAY_SIZE(mx35_io_desc)); 84 iotable_init(mx35_io_desc, ARRAY_SIZE(mx35_io_desc));
78} 85}
79#endif
80
81int imx3x_register_gpios(void);
82
83void __init mx31_init_irq(void)
84{
85 mxc_init_irq(MX31_IO_ADDRESS(MX3x_AVIC_BASE_ADDR));
86 imx3x_register_gpios();
87}
88 86
87int imx35_register_gpios(void);
89void __init mx35_init_irq(void) 88void __init mx35_init_irq(void)
90{ 89{
91 mx31_init_irq(); 90 mxc_init_irq(MX35_IO_ADDRESS(MX35_AVIC_BASE_ADDR));
91 imx35_register_gpios();
92} 92}
93#endif /* ifdef CONFIG_ARCH_MX35 */
93 94
94#ifdef CONFIG_CACHE_L2X0 95#ifdef CONFIG_CACHE_L2X0
95static int mxc_init_l2x0(void) 96static int mxc_init_l2x0(void)