diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-08-16 13:42:58 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-08-16 13:42:58 -0400 |
commit | e4862f2f6f5653dfb67f3ba2b6f0bc74516ed51a (patch) | |
tree | 1db5a0540a4eecfad9b7daee476b985e82ddc810 /arch/arm/mach-omap2/board-zoom2.c | |
parent | ec62dbd7eb8e3dddb221da89ecbcea0fc3dee8c1 (diff) | |
parent | b2c1e07b81a126e5846dfc3d36f559d861df59f4 (diff) |
Merge branch 'for-2.6.36' into for-2.6.37
Fairly simple conflicts, the most serious ones are the i.MX ones which I
suspect now need another rename.
Conflicts:
arch/arm/mach-mx2/clock_imx27.c
arch/arm/mach-mx2/devices.c
arch/arm/mach-omap2/board-rx51-peripherals.c
arch/arm/mach-omap2/board-zoom2.c
sound/soc/fsl/mpc5200_dma.c
sound/soc/fsl/mpc5200_dma.h
sound/soc/fsl/mpc8610_hpcd.c
sound/soc/pxa/spitz.c
Diffstat (limited to 'arch/arm/mach-omap2/board-zoom2.c')
-rw-r--r-- | arch/arm/mach-omap2/board-zoom2.c | 65 |
1 files changed, 58 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/board-zoom2.c b/arch/arm/mach-omap2/board-zoom2.c index 410fe006c0f6..efbcd8fb21ec 100644 --- a/arch/arm/mach-omap2/board-zoom2.c +++ b/arch/arm/mach-omap2/board-zoom2.c | |||
@@ -92,31 +92,82 @@ static int __init omap3_zoom2_i2c_init(void) | |||
92 | 92 | ||
93 | #ifdef CONFIG_OMAP_MUX | 93 | #ifdef CONFIG_OMAP_MUX |
94 | static struct omap_board_mux board_mux[] __initdata = { | 94 | static struct omap_board_mux board_mux[] __initdata = { |
95 | /* WLAN IRQ - GPIO 162 */ | ||
96 | OMAP3_MUX(MCBSP1_CLKX, OMAP_MUX_MODE4 | OMAP_PIN_INPUT_PULLUP), | ||
97 | /* WLAN POWER ENABLE - GPIO 101 */ | ||
98 | OMAP3_MUX(CAM_D2, OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT), | ||
99 | /* WLAN SDIO: MMC3 CMD */ | ||
100 | OMAP3_MUX(MCSPI1_CS1, OMAP_MUX_MODE3 | OMAP_PIN_INPUT_PULLUP), | ||
101 | /* WLAN SDIO: MMC3 CLK */ | ||
102 | OMAP3_MUX(ETK_CLK, OMAP_MUX_MODE2 | OMAP_PIN_INPUT_PULLUP), | ||
103 | /* WLAN SDIO: MMC3 DAT[0-3] */ | ||
104 | OMAP3_MUX(ETK_D3, OMAP_MUX_MODE2 | OMAP_PIN_INPUT_PULLUP), | ||
105 | OMAP3_MUX(ETK_D4, OMAP_MUX_MODE2 | OMAP_PIN_INPUT_PULLUP), | ||
106 | OMAP3_MUX(ETK_D5, OMAP_MUX_MODE2 | OMAP_PIN_INPUT_PULLUP), | ||
107 | OMAP3_MUX(ETK_D6, OMAP_MUX_MODE2 | OMAP_PIN_INPUT_PULLUP), | ||
95 | { .reg_offset = OMAP_MUX_TERMINATOR }, | 108 | { .reg_offset = OMAP_MUX_TERMINATOR }, |
96 | }; | 109 | }; |
97 | #else | 110 | #else |
98 | #define board_mux NULL | 111 | #define board_mux NULL |
99 | #endif | 112 | #endif |
100 | 113 | ||
114 | static struct mtd_partition zoom_nand_partitions[] = { | ||
115 | /* All the partition sizes are listed in terms of NAND block size */ | ||
116 | { | ||
117 | .name = "X-Loader-NAND", | ||
118 | .offset = 0, | ||
119 | .size = 4 * (64 * 2048), /* 512KB, 0x80000 */ | ||
120 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | ||
121 | }, | ||
122 | { | ||
123 | .name = "U-Boot-NAND", | ||
124 | .offset = MTDPART_OFS_APPEND, /* Offset = 0x80000 */ | ||
125 | .size = 10 * (64 * 2048), /* 1.25MB, 0x140000 */ | ||
126 | .mask_flags = MTD_WRITEABLE, /* force read-only */ | ||
127 | }, | ||
128 | { | ||
129 | .name = "Boot Env-NAND", | ||
130 | .offset = MTDPART_OFS_APPEND, /* Offset = 0x1c0000 */ | ||
131 | .size = 2 * (64 * 2048), /* 256KB, 0x40000 */ | ||
132 | }, | ||
133 | { | ||
134 | .name = "Kernel-NAND", | ||
135 | .offset = MTDPART_OFS_APPEND, /* Offset = 0x0200000*/ | ||
136 | .size = 240 * (64 * 2048), /* 30M, 0x1E00000 */ | ||
137 | }, | ||
138 | { | ||
139 | .name = "system", | ||
140 | .offset = MTDPART_OFS_APPEND, /* Offset = 0x2000000 */ | ||
141 | .size = 3328 * (64 * 2048), /* 416M, 0x1A000000 */ | ||
142 | }, | ||
143 | { | ||
144 | .name = "userdata", | ||
145 | .offset = MTDPART_OFS_APPEND, /* Offset = 0x1C000000*/ | ||
146 | .size = 256 * (64 * 2048), /* 32M, 0x2000000 */ | ||
147 | }, | ||
148 | { | ||
149 | .name = "cache", | ||
150 | .offset = MTDPART_OFS_APPEND, /* Offset = 0x1E000000*/ | ||
151 | .size = 256 * (64 * 2048), /* 32M, 0x2000000 */ | ||
152 | }, | ||
153 | }; | ||
154 | |||
101 | static void __init omap_zoom2_init(void) | 155 | static void __init omap_zoom2_init(void) |
102 | { | 156 | { |
103 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); | 157 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); |
104 | zoom_peripherals_init(); | 158 | zoom_peripherals_init(); |
105 | omap3_zoom2_i2c_init(); | 159 | omap3_zoom2_i2c_init(); |
160 | board_nand_init(zoom_nand_partitions, | ||
161 | ARRAY_SIZE(zoom_nand_partitions), ZOOM_NAND_CS); | ||
106 | zoom_debugboard_init(); | 162 | zoom_debugboard_init(); |
107 | } | 163 | } |
108 | 164 | ||
109 | static void __init omap_zoom2_map_io(void) | ||
110 | { | ||
111 | omap2_set_globals_343x(); | ||
112 | omap34xx_map_common_io(); | ||
113 | } | ||
114 | |||
115 | MACHINE_START(OMAP_ZOOM2, "OMAP Zoom2 board") | 165 | MACHINE_START(OMAP_ZOOM2, "OMAP Zoom2 board") |
116 | .phys_io = ZOOM_UART_BASE, | 166 | .phys_io = ZOOM_UART_BASE, |
117 | .io_pg_offst = (ZOOM_UART_VIRT >> 18) & 0xfffc, | 167 | .io_pg_offst = (ZOOM_UART_VIRT >> 18) & 0xfffc, |
118 | .boot_params = 0x80000100, | 168 | .boot_params = 0x80000100, |
119 | .map_io = omap_zoom2_map_io, | 169 | .map_io = omap3_map_io, |
170 | .reserve = omap_reserve, | ||
120 | .init_irq = omap_zoom2_init_irq, | 171 | .init_irq = omap_zoom2_init_irq, |
121 | .init_machine = omap_zoom2_init, | 172 | .init_machine = omap_zoom2_init, |
122 | .timer = &omap_timer, | 173 | .timer = &omap_timer, |