diff options
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/Kconfig | 9 | ||||
-rw-r--r-- | arch/arm/mach-imx/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-imx/eukrea_mbimx27-baseboard.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-cpuimx27.c | 11 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-eukrea_cpuimx25.c | 11 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-imx27_visstrim_m10.c | 11 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-imx27ipcam.c | 78 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-imx27lite.c | 11 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-mx1ads.c | 22 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-mx21ads.c | 11 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-mx25_3ds.c | 12 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-mx27_3ds.c | 17 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-mx27ads.c | 11 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-mxt_td60.c | 12 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-pca100.c | 16 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-pcm038.c | 19 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-scb9328.c | 13 | ||||
-rw-r--r-- | arch/arm/mach-imx/mm-imx1.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-imx/mm-imx21.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-imx/mm-imx25.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-imx/mm-imx27.c | 7 |
21 files changed, 203 insertions, 97 deletions
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 56684b517070..c1724185c242 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig | |||
@@ -300,4 +300,13 @@ config MACH_MXT_TD60 | |||
300 | Include support for i-MXT (aka td60) platform. This | 300 | Include support for i-MXT (aka td60) platform. This |
301 | includes specific configurations for the module and its peripherals. | 301 | includes specific configurations for the module and its peripherals. |
302 | 302 | ||
303 | config MACH_IMX27IPCAM | ||
304 | bool "IMX27 IPCAM platform" | ||
305 | select SOC_IMX27 | ||
306 | select IMX_HAVE_PLATFORM_IMX2_WDT | ||
307 | select IMX_HAVE_PLATFORM_IMX_UART | ||
308 | help | ||
309 | Include support for IMX27 IPCAM platform. This includes specific | ||
310 | configurations for the board and its peripherals. | ||
311 | |||
303 | endif | 312 | endif |
diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile index 77100bf26153..3e49ae0618aa 100644 --- a/arch/arm/mach-imx/Makefile +++ b/arch/arm/mach-imx/Makefile | |||
@@ -36,3 +36,4 @@ obj-$(CONFIG_MACH_CPUIMX27) += mach-cpuimx27.o | |||
36 | obj-$(CONFIG_MACH_EUKREA_MBIMX27_BASEBOARD) += eukrea_mbimx27-baseboard.o | 36 | obj-$(CONFIG_MACH_EUKREA_MBIMX27_BASEBOARD) += eukrea_mbimx27-baseboard.o |
37 | obj-$(CONFIG_MACH_PCA100) += mach-pca100.o | 37 | obj-$(CONFIG_MACH_PCA100) += mach-pca100.o |
38 | obj-$(CONFIG_MACH_MXT_TD60) += mach-mxt_td60.o | 38 | obj-$(CONFIG_MACH_MXT_TD60) += mach-mxt_td60.o |
39 | obj-$(CONFIG_MACH_IMX27IPCAM) += mach-imx27ipcam.o | ||
diff --git a/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c b/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c index 275c8589d797..fa5288018ba7 100644 --- a/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c +++ b/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c | |||
@@ -249,7 +249,7 @@ static const struct imxuart_platform_data uart_pdata __initconst = { | |||
249 | 249 | ||
250 | #define ADS7846_PENDOWN (GPIO_PORTD | 25) | 250 | #define ADS7846_PENDOWN (GPIO_PORTD | 25) |
251 | 251 | ||
252 | static void ads7846_dev_init(void) | 252 | static void __maybe_unused ads7846_dev_init(void) |
253 | { | 253 | { |
254 | if (gpio_request(ADS7846_PENDOWN, "ADS7846 pendown") < 0) { | 254 | if (gpio_request(ADS7846_PENDOWN, "ADS7846 pendown") < 0) { |
255 | printk(KERN_ERR "can't get ads746 pen down GPIO\n"); | 255 | printk(KERN_ERR "can't get ads746 pen down GPIO\n"); |
@@ -268,7 +268,8 @@ static struct ads7846_platform_data ads7846_config __initdata = { | |||
268 | .keep_vref_on = 1, | 268 | .keep_vref_on = 1, |
269 | }; | 269 | }; |
270 | 270 | ||
271 | static struct spi_board_info eukrea_mbimx27_spi_board_info[] __initdata = { | 271 | static struct spi_board_info __maybe_unused |
272 | eukrea_mbimx27_spi_board_info[] __initdata = { | ||
272 | [0] = { | 273 | [0] = { |
273 | .modalias = "ads7846", | 274 | .modalias = "ads7846", |
274 | .bus_num = 0, | 275 | .bus_num = 0, |
@@ -357,13 +358,11 @@ void __init eukrea_mbimx27_baseboard_init(void) | |||
357 | ads7846_dev_init(); | 358 | ads7846_dev_init(); |
358 | #endif | 359 | #endif |
359 | 360 | ||
360 | #if defined(CONFIG_SPI_IMX) || defined(CONFIG_SPI_IMX_MODULE) | ||
361 | /* SPI_CS0 init */ | 361 | /* SPI_CS0 init */ |
362 | mxc_gpio_mode(GPIO_PORTD | 28 | GPIO_GPIO | GPIO_OUT); | 362 | mxc_gpio_mode(GPIO_PORTD | 28 | GPIO_GPIO | GPIO_OUT); |
363 | imx27_add_spi_imx0(&eukrea_mbimx27_spi0_data); | 363 | imx27_add_spi_imx0(&eukrea_mbimx27_spi0_data); |
364 | spi_register_board_info(eukrea_mbimx27_spi_board_info, | 364 | spi_register_board_info(eukrea_mbimx27_spi_board_info, |
365 | ARRAY_SIZE(eukrea_mbimx27_spi_board_info)); | 365 | ARRAY_SIZE(eukrea_mbimx27_spi_board_info)); |
366 | #endif | ||
367 | 366 | ||
368 | /* Leds configuration */ | 367 | /* Leds configuration */ |
369 | mxc_gpio_mode(GPIO_PORTF | 16 | GPIO_GPIO | GPIO_OUT); | 368 | mxc_gpio_mode(GPIO_PORTF | 16 | GPIO_GPIO | GPIO_OUT); |
diff --git a/arch/arm/mach-imx/mach-cpuimx27.c b/arch/arm/mach-imx/mach-cpuimx27.c index 6cf04da2456a..cabb800adbb6 100644 --- a/arch/arm/mach-imx/mach-cpuimx27.c +++ b/arch/arm/mach-imx/mach-cpuimx27.c | |||
@@ -304,9 +304,10 @@ static struct sys_timer eukrea_cpuimx27_timer = { | |||
304 | }; | 304 | }; |
305 | 305 | ||
306 | MACHINE_START(CPUIMX27, "EUKREA CPUIMX27") | 306 | MACHINE_START(CPUIMX27, "EUKREA CPUIMX27") |
307 | .boot_params = MX27_PHYS_OFFSET + 0x100, | 307 | .boot_params = MX27_PHYS_OFFSET + 0x100, |
308 | .map_io = mx27_map_io, | 308 | .map_io = mx27_map_io, |
309 | .init_irq = mx27_init_irq, | 309 | .init_early = imx27_init_early, |
310 | .init_machine = eukrea_cpuimx27_init, | 310 | .init_irq = mx27_init_irq, |
311 | .timer = &eukrea_cpuimx27_timer, | 311 | .timer = &eukrea_cpuimx27_timer, |
312 | .init_machine = eukrea_cpuimx27_init, | ||
312 | MACHINE_END | 313 | MACHINE_END |
diff --git a/arch/arm/mach-imx/mach-eukrea_cpuimx25.c b/arch/arm/mach-imx/mach-eukrea_cpuimx25.c index eb395aba9237..439167dbe8f6 100644 --- a/arch/arm/mach-imx/mach-eukrea_cpuimx25.c +++ b/arch/arm/mach-imx/mach-eukrea_cpuimx25.c | |||
@@ -153,9 +153,10 @@ static struct sys_timer eukrea_cpuimx25_timer = { | |||
153 | 153 | ||
154 | MACHINE_START(EUKREA_CPUIMX25, "Eukrea CPUIMX25") | 154 | MACHINE_START(EUKREA_CPUIMX25, "Eukrea CPUIMX25") |
155 | /* Maintainer: Eukrea Electromatique */ | 155 | /* Maintainer: Eukrea Electromatique */ |
156 | .boot_params = MX25_PHYS_OFFSET + 0x100, | 156 | .boot_params = MX25_PHYS_OFFSET + 0x100, |
157 | .map_io = mx25_map_io, | 157 | .map_io = mx25_map_io, |
158 | .init_irq = mx25_init_irq, | 158 | .init_early = imx25_init_early, |
159 | .init_machine = eukrea_cpuimx25_init, | 159 | .init_irq = mx25_init_irq, |
160 | .timer = &eukrea_cpuimx25_timer, | 160 | .timer = &eukrea_cpuimx25_timer, |
161 | .init_machine = eukrea_cpuimx25_init, | ||
161 | MACHINE_END | 162 | MACHINE_END |
diff --git a/arch/arm/mach-imx/mach-imx27_visstrim_m10.c b/arch/arm/mach-imx/mach-imx27_visstrim_m10.c index 40a3666ea632..494723bf7ea7 100644 --- a/arch/arm/mach-imx/mach-imx27_visstrim_m10.c +++ b/arch/arm/mach-imx/mach-imx27_visstrim_m10.c | |||
@@ -251,9 +251,10 @@ static struct sys_timer visstrim_m10_timer = { | |||
251 | }; | 251 | }; |
252 | 252 | ||
253 | MACHINE_START(IMX27_VISSTRIM_M10, "Vista Silicon Visstrim_M10") | 253 | MACHINE_START(IMX27_VISSTRIM_M10, "Vista Silicon Visstrim_M10") |
254 | .boot_params = MX27_PHYS_OFFSET + 0x100, | 254 | .boot_params = MX27_PHYS_OFFSET + 0x100, |
255 | .map_io = mx27_map_io, | 255 | .map_io = mx27_map_io, |
256 | .init_irq = mx27_init_irq, | 256 | .init_early = imx27_init_early, |
257 | .init_machine = visstrim_m10_board_init, | 257 | .init_irq = mx27_init_irq, |
258 | .timer = &visstrim_m10_timer, | 258 | .timer = &visstrim_m10_timer, |
259 | .init_machine = visstrim_m10_board_init, | ||
259 | MACHINE_END | 260 | MACHINE_END |
diff --git a/arch/arm/mach-imx/mach-imx27ipcam.c b/arch/arm/mach-imx/mach-imx27ipcam.c new file mode 100644 index 000000000000..9be6cd6fbf8c --- /dev/null +++ b/arch/arm/mach-imx/mach-imx27ipcam.c | |||
@@ -0,0 +1,78 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2011 Freescale Semiconductor, Inc. All Rights Reserved. | ||
3 | * | ||
4 | * Author: Fabio Estevam <fabio.estevam@freescale.com> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | */ | ||
16 | |||
17 | #include <asm/mach-types.h> | ||
18 | #include <asm/mach/arch.h> | ||
19 | #include <asm/mach/time.h> | ||
20 | #include <mach/hardware.h> | ||
21 | #include <mach/common.h> | ||
22 | #include <mach/iomux-mx27.h> | ||
23 | |||
24 | #include "devices-imx27.h" | ||
25 | |||
26 | static const int mx27ipcam_pins[] __initconst = { | ||
27 | /* UART1 */ | ||
28 | PE12_PF_UART1_TXD, | ||
29 | PE13_PF_UART1_RXD, | ||
30 | /* FEC */ | ||
31 | PD0_AIN_FEC_TXD0, | ||
32 | PD1_AIN_FEC_TXD1, | ||
33 | PD2_AIN_FEC_TXD2, | ||
34 | PD3_AIN_FEC_TXD3, | ||
35 | PD4_AOUT_FEC_RX_ER, | ||
36 | PD5_AOUT_FEC_RXD1, | ||
37 | PD6_AOUT_FEC_RXD2, | ||
38 | PD7_AOUT_FEC_RXD3, | ||
39 | PD8_AF_FEC_MDIO, | ||
40 | PD9_AIN_FEC_MDC, | ||
41 | PD10_AOUT_FEC_CRS, | ||
42 | PD11_AOUT_FEC_TX_CLK, | ||
43 | PD12_AOUT_FEC_RXD0, | ||
44 | PD13_AOUT_FEC_RX_DV, | ||
45 | PD14_AOUT_FEC_RX_CLK, | ||
46 | PD15_AOUT_FEC_COL, | ||
47 | PD16_AIN_FEC_TX_ER, | ||
48 | PF23_AIN_FEC_TX_EN, | ||
49 | }; | ||
50 | |||
51 | static void __init mx27ipcam_init(void) | ||
52 | { | ||
53 | mxc_gpio_setup_multiple_pins(mx27ipcam_pins, ARRAY_SIZE(mx27ipcam_pins), | ||
54 | "mx27ipcam"); | ||
55 | |||
56 | imx27_add_imx_uart0(NULL); | ||
57 | imx27_add_fec(NULL); | ||
58 | imx27_add_imx2_wdt(NULL); | ||
59 | } | ||
60 | |||
61 | static void __init mx27ipcam_timer_init(void) | ||
62 | { | ||
63 | mx27_clocks_init(25000000); | ||
64 | } | ||
65 | |||
66 | static struct sys_timer mx27ipcam_timer = { | ||
67 | .init = mx27ipcam_timer_init, | ||
68 | }; | ||
69 | |||
70 | MACHINE_START(IMX27IPCAM, "Freescale IMX27IPCAM") | ||
71 | /* maintainer: Freescale Semiconductor, Inc. */ | ||
72 | .boot_params = MX27_PHYS_OFFSET + 0x100, | ||
73 | .map_io = mx27_map_io, | ||
74 | .init_early = imx27_init_early, | ||
75 | .init_irq = mx27_init_irq, | ||
76 | .timer = &mx27ipcam_timer, | ||
77 | .init_machine = mx27ipcam_init, | ||
78 | MACHINE_END | ||
diff --git a/arch/arm/mach-imx/mach-imx27lite.c b/arch/arm/mach-imx/mach-imx27lite.c index 3a1202e47212..841140516ede 100644 --- a/arch/arm/mach-imx/mach-imx27lite.c +++ b/arch/arm/mach-imx/mach-imx27lite.c | |||
@@ -75,9 +75,10 @@ static struct sys_timer mx27lite_timer = { | |||
75 | }; | 75 | }; |
76 | 76 | ||
77 | MACHINE_START(IMX27LITE, "LogicPD i.MX27LITE") | 77 | MACHINE_START(IMX27LITE, "LogicPD i.MX27LITE") |
78 | .boot_params = MX27_PHYS_OFFSET + 0x100, | 78 | .boot_params = MX27_PHYS_OFFSET + 0x100, |
79 | .map_io = mx27_map_io, | 79 | .map_io = mx27_map_io, |
80 | .init_irq = mx27_init_irq, | 80 | .init_early = imx27_init_early, |
81 | .init_machine = mx27lite_init, | 81 | .init_irq = mx27_init_irq, |
82 | .timer = &mx27lite_timer, | 82 | .timer = &mx27lite_timer, |
83 | .init_machine = mx27lite_init, | ||
83 | MACHINE_END | 84 | MACHINE_END |
diff --git a/arch/arm/mach-imx/mach-mx1ads.c b/arch/arm/mach-imx/mach-mx1ads.c index 1f446e5eb636..47cf56ac6d5b 100644 --- a/arch/arm/mach-imx/mach-mx1ads.c +++ b/arch/arm/mach-imx/mach-mx1ads.c | |||
@@ -144,17 +144,19 @@ struct sys_timer mx1ads_timer = { | |||
144 | 144 | ||
145 | MACHINE_START(MX1ADS, "Freescale MX1ADS") | 145 | MACHINE_START(MX1ADS, "Freescale MX1ADS") |
146 | /* Maintainer: Sascha Hauer, Pengutronix */ | 146 | /* Maintainer: Sascha Hauer, Pengutronix */ |
147 | .boot_params = MX1_PHYS_OFFSET + 0x100, | 147 | .boot_params = MX1_PHYS_OFFSET + 0x100, |
148 | .map_io = mx1_map_io, | 148 | .map_io = mx1_map_io, |
149 | .init_irq = mx1_init_irq, | 149 | .init_early = imx1_init_early, |
150 | .timer = &mx1ads_timer, | 150 | .init_irq = mx1_init_irq, |
151 | .init_machine = mx1ads_init, | 151 | .timer = &mx1ads_timer, |
152 | .init_machine = mx1ads_init, | ||
152 | MACHINE_END | 153 | MACHINE_END |
153 | 154 | ||
154 | MACHINE_START(MXLADS, "Freescale MXLADS") | 155 | MACHINE_START(MXLADS, "Freescale MXLADS") |
155 | .boot_params = MX1_PHYS_OFFSET + 0x100, | 156 | .boot_params = MX1_PHYS_OFFSET + 0x100, |
156 | .map_io = mx1_map_io, | 157 | .map_io = mx1_map_io, |
157 | .init_irq = mx1_init_irq, | 158 | .init_early = imx1_init_early, |
158 | .timer = &mx1ads_timer, | 159 | .init_irq = mx1_init_irq, |
159 | .init_machine = mx1ads_init, | 160 | .timer = &mx1ads_timer, |
161 | .init_machine = mx1ads_init, | ||
160 | MACHINE_END | 162 | MACHINE_END |
diff --git a/arch/arm/mach-imx/mach-mx21ads.c b/arch/arm/mach-imx/mach-mx21ads.c index 0a372577c2ac..fa52a1086eae 100644 --- a/arch/arm/mach-imx/mach-mx21ads.c +++ b/arch/arm/mach-imx/mach-mx21ads.c | |||
@@ -304,9 +304,10 @@ static struct sys_timer mx21ads_timer = { | |||
304 | 304 | ||
305 | MACHINE_START(MX21ADS, "Freescale i.MX21ADS") | 305 | MACHINE_START(MX21ADS, "Freescale i.MX21ADS") |
306 | /* maintainer: Freescale Semiconductor, Inc. */ | 306 | /* maintainer: Freescale Semiconductor, Inc. */ |
307 | .boot_params = MX21_PHYS_OFFSET + 0x100, | 307 | .boot_params = MX21_PHYS_OFFSET + 0x100, |
308 | .map_io = mx21ads_map_io, | 308 | .map_io = mx21ads_map_io, |
309 | .init_irq = mx21_init_irq, | 309 | .init_early = imx21_init_early, |
310 | .init_machine = mx21ads_board_init, | 310 | .init_irq = mx21_init_irq, |
311 | .timer = &mx21ads_timer, | 311 | .timer = &mx21ads_timer, |
312 | .init_machine = mx21ads_board_init, | ||
312 | MACHINE_END | 313 | MACHINE_END |
diff --git a/arch/arm/mach-imx/mach-mx25_3ds.c b/arch/arm/mach-imx/mach-mx25_3ds.c index 8382e7902078..cd18a0c91b83 100644 --- a/arch/arm/mach-imx/mach-mx25_3ds.c +++ b/arch/arm/mach-imx/mach-mx25_3ds.c | |||
@@ -226,10 +226,10 @@ static struct sys_timer mx25pdk_timer = { | |||
226 | 226 | ||
227 | MACHINE_START(MX25_3DS, "Freescale MX25PDK (3DS)") | 227 | MACHINE_START(MX25_3DS, "Freescale MX25PDK (3DS)") |
228 | /* Maintainer: Freescale Semiconductor, Inc. */ | 228 | /* Maintainer: Freescale Semiconductor, Inc. */ |
229 | .boot_params = MX25_PHYS_OFFSET + 0x100, | 229 | .boot_params = MX25_PHYS_OFFSET + 0x100, |
230 | .map_io = mx25_map_io, | 230 | .map_io = mx25_map_io, |
231 | .init_irq = mx25_init_irq, | 231 | .init_early = imx25_init_early, |
232 | .init_machine = mx25pdk_init, | 232 | .init_irq = mx25_init_irq, |
233 | .timer = &mx25pdk_timer, | 233 | .timer = &mx25pdk_timer, |
234 | .init_machine = mx25pdk_init, | ||
234 | MACHINE_END | 235 | MACHINE_END |
235 | |||
diff --git a/arch/arm/mach-imx/mach-mx27_3ds.c b/arch/arm/mach-imx/mach-mx27_3ds.c index 164331518bdd..4e0e225ca4a2 100644 --- a/arch/arm/mach-imx/mach-mx27_3ds.c +++ b/arch/arm/mach-imx/mach-mx27_3ds.c | |||
@@ -216,7 +216,7 @@ static struct regulator_init_data vgen_init = { | |||
216 | .consumer_supplies = vgen_consumers, | 216 | .consumer_supplies = vgen_consumers, |
217 | }; | 217 | }; |
218 | 218 | ||
219 | static struct mc13783_regulator_init_data mx27_3ds_regulators[] = { | 219 | static struct mc13xxx_regulator_init_data mx27_3ds_regulators[] = { |
220 | { | 220 | { |
221 | .id = MC13783_REG_VMMC1, | 221 | .id = MC13783_REG_VMMC1, |
222 | .init_data = &vmmc1_init, | 222 | .init_data = &vmmc1_init, |
@@ -227,10 +227,10 @@ static struct mc13783_regulator_init_data mx27_3ds_regulators[] = { | |||
227 | }; | 227 | }; |
228 | 228 | ||
229 | /* MC13783 */ | 229 | /* MC13783 */ |
230 | static struct mc13783_platform_data mc13783_pdata __initdata = { | 230 | static struct mc13xxx_platform_data mc13783_pdata __initdata = { |
231 | .regulators = mx27_3ds_regulators, | 231 | .regulators = mx27_3ds_regulators, |
232 | .num_regulators = ARRAY_SIZE(mx27_3ds_regulators), | 232 | .num_regulators = ARRAY_SIZE(mx27_3ds_regulators), |
233 | .flags = MC13783_USE_REGULATOR, | 233 | .flags = MC13XXX_USE_REGULATOR, |
234 | }; | 234 | }; |
235 | 235 | ||
236 | /* SPI */ | 236 | /* SPI */ |
@@ -295,9 +295,10 @@ static struct sys_timer mx27pdk_timer = { | |||
295 | 295 | ||
296 | MACHINE_START(MX27_3DS, "Freescale MX27PDK") | 296 | MACHINE_START(MX27_3DS, "Freescale MX27PDK") |
297 | /* maintainer: Freescale Semiconductor, Inc. */ | 297 | /* maintainer: Freescale Semiconductor, Inc. */ |
298 | .boot_params = MX27_PHYS_OFFSET + 0x100, | 298 | .boot_params = MX27_PHYS_OFFSET + 0x100, |
299 | .map_io = mx27_map_io, | 299 | .map_io = mx27_map_io, |
300 | .init_irq = mx27_init_irq, | 300 | .init_early = imx27_init_early, |
301 | .init_machine = mx27pdk_init, | 301 | .init_irq = mx27_init_irq, |
302 | .timer = &mx27pdk_timer, | 302 | .timer = &mx27pdk_timer, |
303 | .init_machine = mx27pdk_init, | ||
303 | MACHINE_END | 304 | MACHINE_END |
diff --git a/arch/arm/mach-imx/mach-mx27ads.c b/arch/arm/mach-imx/mach-mx27ads.c index b832f960fec4..367d1e4384c7 100644 --- a/arch/arm/mach-imx/mach-mx27ads.c +++ b/arch/arm/mach-imx/mach-mx27ads.c | |||
@@ -344,9 +344,10 @@ static void __init mx27ads_map_io(void) | |||
344 | 344 | ||
345 | MACHINE_START(MX27ADS, "Freescale i.MX27ADS") | 345 | MACHINE_START(MX27ADS, "Freescale i.MX27ADS") |
346 | /* maintainer: Freescale Semiconductor, Inc. */ | 346 | /* maintainer: Freescale Semiconductor, Inc. */ |
347 | .boot_params = MX27_PHYS_OFFSET + 0x100, | 347 | .boot_params = MX27_PHYS_OFFSET + 0x100, |
348 | .map_io = mx27ads_map_io, | 348 | .map_io = mx27ads_map_io, |
349 | .init_irq = mx27_init_irq, | 349 | .init_early = imx27_init_early, |
350 | .init_machine = mx27ads_board_init, | 350 | .init_irq = mx27_init_irq, |
351 | .timer = &mx27ads_timer, | 351 | .timer = &mx27ads_timer, |
352 | .init_machine = mx27ads_board_init, | ||
352 | MACHINE_END | 353 | MACHINE_END |
diff --git a/arch/arm/mach-imx/mach-mxt_td60.c b/arch/arm/mach-imx/mach-mxt_td60.c index 4ce71b0401db..69787c30c320 100644 --- a/arch/arm/mach-imx/mach-mxt_td60.c +++ b/arch/arm/mach-imx/mach-mxt_td60.c | |||
@@ -266,10 +266,10 @@ static struct sys_timer mxt_td60_timer = { | |||
266 | 266 | ||
267 | MACHINE_START(MXT_TD60, "Maxtrack i-MXT TD60") | 267 | MACHINE_START(MXT_TD60, "Maxtrack i-MXT TD60") |
268 | /* maintainer: Maxtrack Industrial */ | 268 | /* maintainer: Maxtrack Industrial */ |
269 | .boot_params = MX27_PHYS_OFFSET + 0x100, | 269 | .boot_params = MX27_PHYS_OFFSET + 0x100, |
270 | .map_io = mx27_map_io, | 270 | .map_io = mx27_map_io, |
271 | .init_irq = mx27_init_irq, | 271 | .init_early = imx27_init_early, |
272 | .init_machine = mxt_td60_board_init, | 272 | .init_irq = mx27_init_irq, |
273 | .timer = &mxt_td60_timer, | 273 | .timer = &mxt_td60_timer, |
274 | .init_machine = mxt_td60_board_init, | ||
274 | MACHINE_END | 275 | MACHINE_END |
275 | |||
diff --git a/arch/arm/mach-imx/mach-pca100.c b/arch/arm/mach-imx/mach-pca100.c index cccc0a0a9c72..3514178caeda 100644 --- a/arch/arm/mach-imx/mach-pca100.c +++ b/arch/arm/mach-imx/mach-pca100.c | |||
@@ -187,7 +187,6 @@ static struct i2c_board_info pca100_i2c_devices[] = { | |||
187 | } | 187 | } |
188 | }; | 188 | }; |
189 | 189 | ||
190 | #if defined(CONFIG_SPI_IMX) || defined(CONFIG_SPI_IMX_MODULE) | ||
191 | static struct spi_eeprom at25320 = { | 190 | static struct spi_eeprom at25320 = { |
192 | .name = "at25320an", | 191 | .name = "at25320an", |
193 | .byte_len = 4096, | 192 | .byte_len = 4096, |
@@ -211,7 +210,6 @@ static const struct spi_imx_master pca100_spi0_data __initconst = { | |||
211 | .chipselect = pca100_spi_cs, | 210 | .chipselect = pca100_spi_cs, |
212 | .num_chipselect = ARRAY_SIZE(pca100_spi_cs), | 211 | .num_chipselect = ARRAY_SIZE(pca100_spi_cs), |
213 | }; | 212 | }; |
214 | #endif | ||
215 | 213 | ||
216 | static void pca100_ac97_warm_reset(struct snd_ac97 *ac97) | 214 | static void pca100_ac97_warm_reset(struct snd_ac97 *ac97) |
217 | { | 215 | { |
@@ -389,13 +387,11 @@ static void __init pca100_init(void) | |||
389 | 387 | ||
390 | imx27_add_imx_i2c(1, &pca100_i2c1_data); | 388 | imx27_add_imx_i2c(1, &pca100_i2c1_data); |
391 | 389 | ||
392 | #if defined(CONFIG_SPI_IMX) || defined(CONFIG_SPI_IMX_MODULE) | ||
393 | mxc_gpio_mode(GPIO_PORTD | 28 | GPIO_GPIO | GPIO_IN); | 390 | mxc_gpio_mode(GPIO_PORTD | 28 | GPIO_GPIO | GPIO_IN); |
394 | mxc_gpio_mode(GPIO_PORTD | 27 | GPIO_GPIO | GPIO_IN); | 391 | mxc_gpio_mode(GPIO_PORTD | 27 | GPIO_GPIO | GPIO_IN); |
395 | spi_register_board_info(pca100_spi_board_info, | 392 | spi_register_board_info(pca100_spi_board_info, |
396 | ARRAY_SIZE(pca100_spi_board_info)); | 393 | ARRAY_SIZE(pca100_spi_board_info)); |
397 | imx27_add_spi_imx0(&pca100_spi0_data); | 394 | imx27_add_spi_imx0(&pca100_spi0_data); |
398 | #endif | ||
399 | 395 | ||
400 | gpio_request(OTG_PHY_CS_GPIO, "usb-otg-cs"); | 396 | gpio_request(OTG_PHY_CS_GPIO, "usb-otg-cs"); |
401 | gpio_direction_output(OTG_PHY_CS_GPIO, 1); | 397 | gpio_direction_output(OTG_PHY_CS_GPIO, 1); |
@@ -437,10 +433,10 @@ static struct sys_timer pca100_timer = { | |||
437 | }; | 433 | }; |
438 | 434 | ||
439 | MACHINE_START(PCA100, "phyCARD-i.MX27") | 435 | MACHINE_START(PCA100, "phyCARD-i.MX27") |
440 | .boot_params = MX27_PHYS_OFFSET + 0x100, | 436 | .boot_params = MX27_PHYS_OFFSET + 0x100, |
441 | .map_io = mx27_map_io, | 437 | .map_io = mx27_map_io, |
442 | .init_irq = mx27_init_irq, | 438 | .init_early = imx27_init_early, |
443 | .init_machine = pca100_init, | 439 | .init_irq = mx27_init_irq, |
444 | .timer = &pca100_timer, | 440 | .init_machine = pca100_init, |
441 | .timer = &pca100_timer, | ||
445 | MACHINE_END | 442 | MACHINE_END |
446 | |||
diff --git a/arch/arm/mach-imx/mach-pcm038.c b/arch/arm/mach-imx/mach-pcm038.c index 505614803bc6..9656ef38ca96 100644 --- a/arch/arm/mach-imx/mach-pcm038.c +++ b/arch/arm/mach-imx/mach-pcm038.c | |||
@@ -252,7 +252,7 @@ static struct regulator_init_data cam_data = { | |||
252 | .consumer_supplies = cam_consumers, | 252 | .consumer_supplies = cam_consumers, |
253 | }; | 253 | }; |
254 | 254 | ||
255 | static struct mc13783_regulator_init_data pcm038_regulators[] = { | 255 | static struct mc13xxx_regulator_init_data pcm038_regulators[] = { |
256 | { | 256 | { |
257 | .id = MC13783_REG_VCAM, | 257 | .id = MC13783_REG_VCAM, |
258 | .init_data = &cam_data, | 258 | .init_data = &cam_data, |
@@ -262,11 +262,11 @@ static struct mc13783_regulator_init_data pcm038_regulators[] = { | |||
262 | }, | 262 | }, |
263 | }; | 263 | }; |
264 | 264 | ||
265 | static struct mc13783_platform_data pcm038_pmic = { | 265 | static struct mc13xxx_platform_data pcm038_pmic = { |
266 | .regulators = pcm038_regulators, | 266 | .regulators = pcm038_regulators, |
267 | .num_regulators = ARRAY_SIZE(pcm038_regulators), | 267 | .num_regulators = ARRAY_SIZE(pcm038_regulators), |
268 | .flags = MC13783_USE_ADC | MC13783_USE_REGULATOR | | 268 | .flags = MC13XXX_USE_ADC | MC13XXX_USE_REGULATOR | |
269 | MC13783_USE_TOUCHSCREEN, | 269 | MC13XXX_USE_TOUCHSCREEN, |
270 | }; | 270 | }; |
271 | 271 | ||
272 | static struct spi_board_info pcm038_spi_board_info[] __initdata = { | 272 | static struct spi_board_info pcm038_spi_board_info[] __initdata = { |
@@ -340,9 +340,10 @@ static struct sys_timer pcm038_timer = { | |||
340 | }; | 340 | }; |
341 | 341 | ||
342 | MACHINE_START(PCM038, "phyCORE-i.MX27") | 342 | MACHINE_START(PCM038, "phyCORE-i.MX27") |
343 | .boot_params = MX27_PHYS_OFFSET + 0x100, | 343 | .boot_params = MX27_PHYS_OFFSET + 0x100, |
344 | .map_io = mx27_map_io, | 344 | .map_io = mx27_map_io, |
345 | .init_irq = mx27_init_irq, | 345 | .init_early = imx27_init_early, |
346 | .init_machine = pcm038_init, | 346 | .init_irq = mx27_init_irq, |
347 | .timer = &pcm038_timer, | 347 | .timer = &pcm038_timer, |
348 | .init_machine = pcm038_init, | ||
348 | MACHINE_END | 349 | MACHINE_END |
diff --git a/arch/arm/mach-imx/mach-scb9328.c b/arch/arm/mach-imx/mach-scb9328.c index eae878f306c6..dcaee043628e 100644 --- a/arch/arm/mach-imx/mach-scb9328.c +++ b/arch/arm/mach-imx/mach-scb9328.c | |||
@@ -145,10 +145,11 @@ static struct sys_timer scb9328_timer = { | |||
145 | }; | 145 | }; |
146 | 146 | ||
147 | MACHINE_START(SCB9328, "Synertronixx scb9328") | 147 | MACHINE_START(SCB9328, "Synertronixx scb9328") |
148 | /* Sascha Hauer */ | 148 | /* Sascha Hauer */ |
149 | .boot_params = 0x08000100, | 149 | .boot_params = 0x08000100, |
150 | .map_io = mx1_map_io, | 150 | .map_io = mx1_map_io, |
151 | .init_irq = mx1_init_irq, | 151 | .init_early = imx1_init_early, |
152 | .timer = &scb9328_timer, | 152 | .init_irq = mx1_init_irq, |
153 | .init_machine = scb9328_init, | 153 | .timer = &scb9328_timer, |
154 | .init_machine = scb9328_init, | ||
154 | MACHINE_END | 155 | MACHINE_END |
diff --git a/arch/arm/mach-imx/mm-imx1.c b/arch/arm/mach-imx/mm-imx1.c index 729ae0915af8..378c61b1e74c 100644 --- a/arch/arm/mach-imx/mm-imx1.c +++ b/arch/arm/mach-imx/mm-imx1.c | |||
@@ -30,10 +30,13 @@ static struct map_desc imx_io_desc[] __initdata = { | |||
30 | 30 | ||
31 | void __init mx1_map_io(void) | 31 | void __init mx1_map_io(void) |
32 | { | 32 | { |
33 | iotable_init(imx_io_desc, ARRAY_SIZE(imx_io_desc)); | ||
34 | } | ||
35 | |||
36 | void __init imx1_init_early(void) | ||
37 | { | ||
33 | mxc_set_cpu_type(MXC_CPU_MX1); | 38 | mxc_set_cpu_type(MXC_CPU_MX1); |
34 | mxc_arch_reset_init(MX1_IO_ADDRESS(MX1_WDT_BASE_ADDR)); | 39 | mxc_arch_reset_init(MX1_IO_ADDRESS(MX1_WDT_BASE_ADDR)); |
35 | |||
36 | iotable_init(imx_io_desc, ARRAY_SIZE(imx_io_desc)); | ||
37 | } | 40 | } |
38 | 41 | ||
39 | int imx1_register_gpios(void); | 42 | int imx1_register_gpios(void); |
diff --git a/arch/arm/mach-imx/mm-imx21.c b/arch/arm/mach-imx/mm-imx21.c index e728af81d1b1..b6152c6b5b29 100644 --- a/arch/arm/mach-imx/mm-imx21.c +++ b/arch/arm/mach-imx/mm-imx21.c | |||
@@ -56,10 +56,13 @@ static struct map_desc imx21_io_desc[] __initdata = { | |||
56 | */ | 56 | */ |
57 | void __init mx21_map_io(void) | 57 | void __init mx21_map_io(void) |
58 | { | 58 | { |
59 | iotable_init(imx21_io_desc, ARRAY_SIZE(imx21_io_desc)); | ||
60 | } | ||
61 | |||
62 | void __init imx21_init_early(void) | ||
63 | { | ||
59 | mxc_set_cpu_type(MXC_CPU_MX21); | 64 | mxc_set_cpu_type(MXC_CPU_MX21); |
60 | mxc_arch_reset_init(MX21_IO_ADDRESS(MX21_WDOG_BASE_ADDR)); | 65 | mxc_arch_reset_init(MX21_IO_ADDRESS(MX21_WDOG_BASE_ADDR)); |
61 | |||
62 | iotable_init(imx21_io_desc, ARRAY_SIZE(imx21_io_desc)); | ||
63 | } | 66 | } |
64 | 67 | ||
65 | int imx21_register_gpios(void); | 68 | int imx21_register_gpios(void); |
diff --git a/arch/arm/mach-imx/mm-imx25.c b/arch/arm/mach-imx/mm-imx25.c index 2edec6ce8fe7..09dd8d4e15bb 100644 --- a/arch/arm/mach-imx/mm-imx25.c +++ b/arch/arm/mach-imx/mm-imx25.c | |||
@@ -45,11 +45,14 @@ static struct map_desc mx25_io_desc[] __initdata = { | |||
45 | */ | 45 | */ |
46 | void __init mx25_map_io(void) | 46 | void __init mx25_map_io(void) |
47 | { | 47 | { |
48 | iotable_init(mx25_io_desc, ARRAY_SIZE(mx25_io_desc)); | ||
49 | } | ||
50 | |||
51 | void __init imx25_init_early(void) | ||
52 | { | ||
48 | mxc_set_cpu_type(MXC_CPU_MX25); | 53 | mxc_set_cpu_type(MXC_CPU_MX25); |
49 | mxc_iomux_v3_init(MX25_IO_ADDRESS(MX25_IOMUXC_BASE_ADDR)); | 54 | mxc_iomux_v3_init(MX25_IO_ADDRESS(MX25_IOMUXC_BASE_ADDR)); |
50 | mxc_arch_reset_init(MX25_IO_ADDRESS(MX25_WDOG_BASE_ADDR)); | 55 | mxc_arch_reset_init(MX25_IO_ADDRESS(MX25_WDOG_BASE_ADDR)); |
51 | |||
52 | iotable_init(mx25_io_desc, ARRAY_SIZE(mx25_io_desc)); | ||
53 | } | 56 | } |
54 | 57 | ||
55 | int imx25_register_gpios(void); | 58 | int imx25_register_gpios(void); |
diff --git a/arch/arm/mach-imx/mm-imx27.c b/arch/arm/mach-imx/mm-imx27.c index 374e48b7a412..bcaa3b69c456 100644 --- a/arch/arm/mach-imx/mm-imx27.c +++ b/arch/arm/mach-imx/mm-imx27.c | |||
@@ -56,10 +56,13 @@ static struct map_desc imx27_io_desc[] __initdata = { | |||
56 | */ | 56 | */ |
57 | void __init mx27_map_io(void) | 57 | void __init mx27_map_io(void) |
58 | { | 58 | { |
59 | iotable_init(imx27_io_desc, ARRAY_SIZE(imx27_io_desc)); | ||
60 | } | ||
61 | |||
62 | void __init imx27_init_early(void) | ||
63 | { | ||
59 | mxc_set_cpu_type(MXC_CPU_MX27); | 64 | mxc_set_cpu_type(MXC_CPU_MX27); |
60 | mxc_arch_reset_init(MX27_IO_ADDRESS(MX27_WDOG_BASE_ADDR)); | 65 | mxc_arch_reset_init(MX27_IO_ADDRESS(MX27_WDOG_BASE_ADDR)); |
61 | |||
62 | iotable_init(imx27_io_desc, ARRAY_SIZE(imx27_io_desc)); | ||
63 | } | 66 | } |
64 | 67 | ||
65 | int imx27_register_gpios(void); | 68 | int imx27_register_gpios(void); |