diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-zoom.c')
-rw-r--r-- | arch/arm/mach-omap2/board-zoom.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/arch/arm/mach-omap2/board-zoom.c b/arch/arm/mach-omap2/board-zoom.c index 1dd195afa396..4b133d75c935 100644 --- a/arch/arm/mach-omap2/board-zoom.c +++ b/arch/arm/mach-omap2/board-zoom.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/input.h> | 16 | #include <linux/input.h> |
17 | #include <linux/gpio.h> | 17 | #include <linux/gpio.h> |
18 | #include <linux/i2c/twl.h> | 18 | #include <linux/i2c/twl.h> |
19 | #include <linux/mtd/nand.h> | ||
19 | 20 | ||
20 | #include <asm/mach-types.h> | 21 | #include <asm/mach-types.h> |
21 | #include <asm/mach/arch.h> | 22 | #include <asm/mach/arch.h> |
@@ -33,7 +34,7 @@ | |||
33 | 34 | ||
34 | #define ZOOM3_EHCI_RESET_GPIO 64 | 35 | #define ZOOM3_EHCI_RESET_GPIO 64 |
35 | 36 | ||
36 | static void __init omap_zoom_init_irq(void) | 37 | static void __init omap_zoom_init_early(void) |
37 | { | 38 | { |
38 | omap2_init_common_infrastructure(); | 39 | omap2_init_common_infrastructure(); |
39 | if (machine_is_omap_zoom2()) | 40 | if (machine_is_omap_zoom2()) |
@@ -42,14 +43,12 @@ static void __init omap_zoom_init_irq(void) | |||
42 | else if (machine_is_omap_zoom3()) | 43 | else if (machine_is_omap_zoom3()) |
43 | omap2_init_common_devices(h8mbx00u0mer0em_sdrc_params, | 44 | omap2_init_common_devices(h8mbx00u0mer0em_sdrc_params, |
44 | h8mbx00u0mer0em_sdrc_params); | 45 | h8mbx00u0mer0em_sdrc_params); |
45 | |||
46 | omap_init_irq(); | ||
47 | } | 46 | } |
48 | 47 | ||
49 | #ifdef CONFIG_OMAP_MUX | 48 | #ifdef CONFIG_OMAP_MUX |
50 | static struct omap_board_mux board_mux[] __initdata = { | 49 | static struct omap_board_mux board_mux[] __initdata = { |
51 | /* WLAN IRQ - GPIO 162 */ | 50 | /* WLAN IRQ - GPIO 162 */ |
52 | OMAP3_MUX(MCBSP1_CLKX, OMAP_MUX_MODE4 | OMAP_PIN_INPUT_PULLUP), | 51 | OMAP3_MUX(MCBSP1_CLKX, OMAP_MUX_MODE4 | OMAP_PIN_INPUT), |
53 | /* WLAN POWER ENABLE - GPIO 101 */ | 52 | /* WLAN POWER ENABLE - GPIO 101 */ |
54 | OMAP3_MUX(CAM_D2, OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT), | 53 | OMAP3_MUX(CAM_D2, OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT), |
55 | /* WLAN SDIO: MMC3 CMD */ | 54 | /* WLAN SDIO: MMC3 CMD */ |
@@ -126,8 +125,8 @@ static void __init omap_zoom_init(void) | |||
126 | usbhs_init(&usbhs_bdata); | 125 | usbhs_init(&usbhs_bdata); |
127 | } | 126 | } |
128 | 127 | ||
129 | board_nand_init(zoom_nand_partitions, | 128 | board_nand_init(zoom_nand_partitions, ARRAY_SIZE(zoom_nand_partitions), |
130 | ARRAY_SIZE(zoom_nand_partitions), ZOOM_NAND_CS); | 129 | ZOOM_NAND_CS, NAND_BUSWIDTH_16); |
131 | zoom_debugboard_init(); | 130 | zoom_debugboard_init(); |
132 | zoom_peripherals_init(); | 131 | zoom_peripherals_init(); |
133 | zoom_display_init(); | 132 | zoom_display_init(); |
@@ -135,18 +134,20 @@ static void __init omap_zoom_init(void) | |||
135 | 134 | ||
136 | MACHINE_START(OMAP_ZOOM2, "OMAP Zoom2 board") | 135 | MACHINE_START(OMAP_ZOOM2, "OMAP Zoom2 board") |
137 | .boot_params = 0x80000100, | 136 | .boot_params = 0x80000100, |
138 | .map_io = omap3_map_io, | ||
139 | .reserve = omap_reserve, | 137 | .reserve = omap_reserve, |
140 | .init_irq = omap_zoom_init_irq, | 138 | .map_io = omap3_map_io, |
139 | .init_early = omap_zoom_init_early, | ||
140 | .init_irq = omap_init_irq, | ||
141 | .init_machine = omap_zoom_init, | 141 | .init_machine = omap_zoom_init, |
142 | .timer = &omap_timer, | 142 | .timer = &omap_timer, |
143 | MACHINE_END | 143 | MACHINE_END |
144 | 144 | ||
145 | MACHINE_START(OMAP_ZOOM3, "OMAP Zoom3 board") | 145 | MACHINE_START(OMAP_ZOOM3, "OMAP Zoom3 board") |
146 | .boot_params = 0x80000100, | 146 | .boot_params = 0x80000100, |
147 | .map_io = omap3_map_io, | ||
148 | .reserve = omap_reserve, | 147 | .reserve = omap_reserve, |
149 | .init_irq = omap_zoom_init_irq, | 148 | .map_io = omap3_map_io, |
149 | .init_early = omap_zoom_init_early, | ||
150 | .init_irq = omap_init_irq, | ||
150 | .init_machine = omap_zoom_init, | 151 | .init_machine = omap_zoom_init, |
151 | .timer = &omap_timer, | 152 | .timer = &omap_timer, |
152 | MACHINE_END | 153 | MACHINE_END |