diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-11 12:50:50 -0500 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-19 15:54:34 -0500 |
commit | d7e0951f929513ced7c57882d2f95d49a546e002 (patch) | |
tree | da72b67a4e988a95fe93e3422dcc6ed52d7e4341 /arch/arm/mach-mx3/mm.c | |
parent | 972cc48207450ce6aeed416ac176fe4d0482a4a3 (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.c | 23 |
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 | |
61 | int imx31_register_gpios(void); | ||
62 | void __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 |
63 | static struct map_desc mx35_io_desc[] __initdata = { | 70 | static 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 | |||
81 | int imx3x_register_gpios(void); | ||
82 | |||
83 | void __init mx31_init_irq(void) | ||
84 | { | ||
85 | mxc_init_irq(MX31_IO_ADDRESS(MX3x_AVIC_BASE_ADDR)); | ||
86 | imx3x_register_gpios(); | ||
87 | } | ||
88 | 86 | ||
87 | int imx35_register_gpios(void); | ||
89 | void __init mx35_init_irq(void) | 88 | void __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 |
95 | static int mxc_init_l2x0(void) | 96 | static int mxc_init_l2x0(void) |