aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2011-02-11 04:23:19 -0500
committerSascha Hauer <s.hauer@pengutronix.de>2011-02-11 12:37:33 -0500
commite134fb2b40ca7e2d96ba460b0c844c6a9fa489c3 (patch)
treee124e8af68ec3ca6c01b9ed41e03ea9952fdaaca /arch
parent4bd597b633ae630e09d58957bd99870eac35fcb4 (diff)
ARM: mx3+mx5: rename mxc_board_init to ${machine}_init
mxc_board_init is too generic to be useful. Additionally change some mxc_timer to ${machine}_timer, too. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx3/mach-cpuimx35.c4
-rw-r--r--arch/arm/mach-mx3/mach-kzm_arm11_01.c6
-rw-r--r--arch/arm/mach-mx3/mach-mx31_3ds.c7
-rw-r--r--arch/arm/mach-mx3/mach-mx31ads.c7
-rw-r--r--arch/arm/mach-mx3/mach-mx31lite.c4
-rw-r--r--arch/arm/mach-mx3/mach-mx31moboard.c4
-rw-r--r--arch/arm/mach-mx3/mach-mx35_3ds.c4
-rw-r--r--arch/arm/mach-mx3/mach-pcm037.c4
-rw-r--r--arch/arm/mach-mx3/mach-pcm043.c4
-rw-r--r--arch/arm/mach-mx3/mach-qong.c4
-rw-r--r--arch/arm/mach-mx5/board-mx51_3ds.c10
-rw-r--r--arch/arm/mach-mx5/board-mx51_babbage.c10
-rw-r--r--arch/arm/mach-mx5/board-mx51_efikamx.c10
13 files changed, 34 insertions, 44 deletions
diff --git a/arch/arm/mach-mx3/mach-cpuimx35.c b/arch/arm/mach-mx3/mach-cpuimx35.c
index 0f2305626e17..6db0520e8794 100644
--- a/arch/arm/mach-mx3/mach-cpuimx35.c
+++ b/arch/arm/mach-mx3/mach-cpuimx35.c
@@ -156,7 +156,7 @@ __setup("otg_mode=", eukrea_cpuimx35_otg_mode);
156/* 156/*
157 * Board specific initialization. 157 * Board specific initialization.
158 */ 158 */
159static void __init mxc_board_init(void) 159static void __init eukrea_cpuimx35_init(void)
160{ 160{
161 mxc_iomux_v3_setup_multiple_pads(eukrea_cpuimx35_pads, 161 mxc_iomux_v3_setup_multiple_pads(eukrea_cpuimx35_pads,
162 ARRAY_SIZE(eukrea_cpuimx35_pads)); 162 ARRAY_SIZE(eukrea_cpuimx35_pads));
@@ -199,5 +199,5 @@ MACHINE_START(EUKREA_CPUIMX35, "Eukrea CPUIMX35")
199 .init_ext3_fs = imx35_init_early, 199 .init_ext3_fs = imx35_init_early,
200 .init_irq = mx35_init_irq, 200 .init_irq = mx35_init_irq,
201 .timer = &eukrea_cpuimx35_timer, 201 .timer = &eukrea_cpuimx35_timer,
202 .init_machine = mxc_board_init, 202 .init_machine = eukrea_cpuimx35_init,
203MACHINE_END 203MACHINE_END
diff --git a/arch/arm/mach-mx3/mach-kzm_arm11_01.c b/arch/arm/mach-mx3/mach-kzm_arm11_01.c
index 52b8dd7192c6..d3cc7393a6b1 100644
--- a/arch/arm/mach-mx3/mach-kzm_arm11_01.c
+++ b/arch/arm/mach-mx3/mach-kzm_arm11_01.c
@@ -266,13 +266,9 @@ static void __init kzm_timer_init(void)
266} 266}
267 267
268static struct sys_timer kzm_timer = { 268static struct sys_timer kzm_timer = {
269 .init = kzm_timer_init, 269 .init = kzm_timer_init,
270}; 270};
271 271
272/*
273 * The following uses standard kernel macros define in arch.h in order to
274 * initialize __mach_desc_KZM_ARM11_01 data structure.
275 */
276MACHINE_START(KZM_ARM11_01, "Kyoto Microcomputer Co., Ltd. KZM-ARM11-01") 272MACHINE_START(KZM_ARM11_01, "Kyoto Microcomputer Co., Ltd. KZM-ARM11-01")
277 .boot_params = MX3x_PHYS_OFFSET + 0x100, 273 .boot_params = MX3x_PHYS_OFFSET + 0x100,
278 .map_io = kzm_map_io, 274 .map_io = kzm_map_io,
diff --git a/arch/arm/mach-mx3/mach-mx31_3ds.c b/arch/arm/mach-mx3/mach-mx31_3ds.c
index 2d744b27f63c..0d24b3c63c83 100644
--- a/arch/arm/mach-mx3/mach-mx31_3ds.c
+++ b/arch/arm/mach-mx3/mach-mx31_3ds.c
@@ -327,10 +327,7 @@ static const struct imxuart_platform_data uart_pdata __initconst = {
327 .flags = IMXUART_HAVE_RTSCTS, 327 .flags = IMXUART_HAVE_RTSCTS,
328}; 328};
329 329
330/*! 330static void __init mx31_3ds_init(void)
331 * Board specific initialization.
332 */
333static void __init mxc_board_init(void)
334{ 331{
335 mxc_iomux_setup_multiple_pins(mx31_3ds_pins, ARRAY_SIZE(mx31_3ds_pins), 332 mxc_iomux_setup_multiple_pins(mx31_3ds_pins, ARRAY_SIZE(mx31_3ds_pins),
336 "mx31_3ds"); 333 "mx31_3ds");
@@ -385,5 +382,5 @@ MACHINE_START(MX31_3DS, "Freescale MX31PDK (3DS)")
385 .init_early = imx31_init_early, 382 .init_early = imx31_init_early,
386 .init_irq = mx31_init_irq, 383 .init_irq = mx31_init_irq,
387 .timer = &mx31_3ds_timer, 384 .timer = &mx31_3ds_timer,
388 .init_machine = mxc_board_init, 385 .init_machine = mx31_3ds_init,
389MACHINE_END 386MACHINE_END
diff --git a/arch/arm/mach-mx3/mach-mx31ads.c b/arch/arm/mach-mx3/mach-mx31ads.c
index 787bdc4d6cc8..cb80b9638203 100644
--- a/arch/arm/mach-mx3/mach-mx31ads.c
+++ b/arch/arm/mach-mx3/mach-mx31ads.c
@@ -524,10 +524,7 @@ static void __init mx31ads_init_irq(void)
524 mx31ads_init_expio(); 524 mx31ads_init_expio();
525} 525}
526 526
527/*! 527static void __init mx31ads_init(void)
528 * Board specific initialization.
529 */
530static void __init mxc_board_init(void)
531{ 528{
532 mxc_init_extuart(); 529 mxc_init_extuart();
533 mxc_init_imx_uart(); 530 mxc_init_imx_uart();
@@ -555,5 +552,5 @@ MACHINE_START(MX31ADS, "Freescale MX31ADS")
555 .init_early = imx31_init_early, 552 .init_early = imx31_init_early,
556 .init_irq = mx31ads_init_irq, 553 .init_irq = mx31ads_init_irq,
557 .timer = &mx31ads_timer, 554 .timer = &mx31ads_timer,
558 .init_machine = mxc_board_init, 555 .init_machine = mx31ads_init,
559MACHINE_END 556MACHINE_END
diff --git a/arch/arm/mach-mx3/mach-mx31lite.c b/arch/arm/mach-mx3/mach-mx31lite.c
index e146f1a72daa..81021bf8f6b3 100644
--- a/arch/arm/mach-mx3/mach-mx31lite.c
+++ b/arch/arm/mach-mx3/mach-mx31lite.c
@@ -229,7 +229,7 @@ void __init mx31lite_map_io(void)
229static int mx31lite_baseboard; 229static int mx31lite_baseboard;
230core_param(mx31lite_baseboard, mx31lite_baseboard, int, 0444); 230core_param(mx31lite_baseboard, mx31lite_baseboard, int, 0444);
231 231
232static void __init mxc_board_init(void) 232static void __init mx31lite_init(void)
233{ 233{
234 int ret; 234 int ret;
235 235
@@ -288,5 +288,5 @@ MACHINE_START(MX31LITE, "LogicPD i.MX31 SOM")
288 .init_early = imx31_init_early, 288 .init_early = imx31_init_early,
289 .init_irq = mx31_init_irq, 289 .init_irq = mx31_init_irq,
290 .timer = &mx31lite_timer, 290 .timer = &mx31lite_timer,
291 .init_machine = mxc_board_init, 291 .init_machine = mx31lite_init,
292MACHINE_END 292MACHINE_END
diff --git a/arch/arm/mach-mx3/mach-mx31moboard.c b/arch/arm/mach-mx3/mach-mx31moboard.c
index ea880330e839..845d0b6b2539 100644
--- a/arch/arm/mach-mx3/mach-mx31moboard.c
+++ b/arch/arm/mach-mx3/mach-mx31moboard.c
@@ -507,7 +507,7 @@ core_param(mx31moboard_baseboard, mx31moboard_baseboard, int, 0444);
507/* 507/*
508 * Board specific initialization. 508 * Board specific initialization.
509 */ 509 */
510static void __init mxc_board_init(void) 510static void __init mx31moboard_init(void)
511{ 511{
512 mxc_iomux_setup_multiple_pins(moboard_pins, ARRAY_SIZE(moboard_pins), 512 mxc_iomux_setup_multiple_pins(moboard_pins, ARRAY_SIZE(moboard_pins),
513 "moboard"); 513 "moboard");
@@ -573,5 +573,5 @@ MACHINE_START(MX31MOBOARD, "EPFL Mobots mx31moboard")
573 .init_early = imx31_init_early, 573 .init_early = imx31_init_early,
574 .init_irq = mx31_init_irq, 574 .init_irq = mx31_init_irq,
575 .timer = &mx31moboard_timer, 575 .timer = &mx31moboard_timer,
576 .init_machine = mxc_board_init, 576 .init_machine = mx31moboard_init,
577MACHINE_END 577MACHINE_END
diff --git a/arch/arm/mach-mx3/mach-mx35_3ds.c b/arch/arm/mach-mx3/mach-mx35_3ds.c
index dac1896a5b21..be12ac1d1954 100644
--- a/arch/arm/mach-mx3/mach-mx35_3ds.c
+++ b/arch/arm/mach-mx3/mach-mx35_3ds.c
@@ -166,7 +166,7 @@ __setup("otg_mode=", mx35_3ds_otg_mode);
166/* 166/*
167 * Board specific initialization. 167 * Board specific initialization.
168 */ 168 */
169static void __init mxc_board_init(void) 169static void __init mx35_3ds_init(void)
170{ 170{
171 mxc_iomux_v3_setup_multiple_pads(mx35pdk_pads, ARRAY_SIZE(mx35pdk_pads)); 171 mxc_iomux_v3_setup_multiple_pads(mx35pdk_pads, ARRAY_SIZE(mx35pdk_pads));
172 172
@@ -208,5 +208,5 @@ MACHINE_START(MX35_3DS, "Freescale MX35PDK")
208 .init_early = imx35_init_early, 208 .init_early = imx35_init_early,
209 .init_irq = mx35_init_irq, 209 .init_irq = mx35_init_irq,
210 .timer = &mx35pdk_timer, 210 .timer = &mx35pdk_timer,
211 .init_machine = mxc_board_init, 211 .init_machine = mx35_3ds_init,
212MACHINE_END 212MACHINE_END
diff --git a/arch/arm/mach-mx3/mach-pcm037.c b/arch/arm/mach-mx3/mach-pcm037.c
index 55f95d42f71c..783d31b8e8a7 100644
--- a/arch/arm/mach-mx3/mach-pcm037.c
+++ b/arch/arm/mach-mx3/mach-pcm037.c
@@ -578,7 +578,7 @@ __setup("otg_mode=", pcm037_otg_mode);
578/* 578/*
579 * Board specific initialization. 579 * Board specific initialization.
580 */ 580 */
581static void __init mxc_board_init(void) 581static void __init pcm037_init(void)
582{ 582{
583 int ret; 583 int ret;
584 584
@@ -690,5 +690,5 @@ MACHINE_START(PCM037, "Phytec Phycore pcm037")
690 .init_early = imx31_init_early, 690 .init_early = imx31_init_early,
691 .init_irq = mx31_init_irq, 691 .init_irq = mx31_init_irq,
692 .timer = &pcm037_timer, 692 .timer = &pcm037_timer,
693 .init_machine = mxc_board_init, 693 .init_machine = pcm037_init,
694MACHINE_END 694MACHINE_END
diff --git a/arch/arm/mach-mx3/mach-pcm043.c b/arch/arm/mach-mx3/mach-pcm043.c
index 4fa07142a9bb..6c662c73aaa3 100644
--- a/arch/arm/mach-mx3/mach-pcm043.c
+++ b/arch/arm/mach-mx3/mach-pcm043.c
@@ -351,7 +351,7 @@ __setup("otg_mode=", pcm043_otg_mode);
351/* 351/*
352 * Board specific initialization. 352 * Board specific initialization.
353 */ 353 */
354static void __init mxc_board_init(void) 354static void __init pcm043_init(void)
355{ 355{
356 mxc_iomux_v3_setup_multiple_pads(pcm043_pads, ARRAY_SIZE(pcm043_pads)); 356 mxc_iomux_v3_setup_multiple_pads(pcm043_pads, ARRAY_SIZE(pcm043_pads));
357 357
@@ -418,5 +418,5 @@ MACHINE_START(PCM043, "Phytec Phycore pcm043")
418 .init_early = imx35_init_early, 418 .init_early = imx35_init_early,
419 .init_irq = mx35_init_irq, 419 .init_irq = mx35_init_irq,
420 .timer = &pcm043_timer, 420 .timer = &pcm043_timer,
421 .init_machine = mxc_board_init, 421 .init_machine = pcm043_init,
422MACHINE_END 422MACHINE_END
diff --git a/arch/arm/mach-mx3/mach-qong.c b/arch/arm/mach-mx3/mach-qong.c
index 064f2db25f39..002816347e67 100644
--- a/arch/arm/mach-mx3/mach-qong.c
+++ b/arch/arm/mach-mx3/mach-qong.c
@@ -247,7 +247,7 @@ static void __init qong_init_fpga(void)
247/* 247/*
248 * Board specific initialization. 248 * Board specific initialization.
249 */ 249 */
250static void __init mxc_board_init(void) 250static void __init qong_init(void)
251{ 251{
252 mxc_init_imx_uart(); 252 mxc_init_imx_uart();
253 qong_init_nor_mtd(); 253 qong_init_nor_mtd();
@@ -275,5 +275,5 @@ MACHINE_START(QONG, "Dave/DENX QongEVB-LITE")
275 .init_early = imx31_init_early, 275 .init_early = imx31_init_early,
276 .init_irq = mx31_init_irq, 276 .init_irq = mx31_init_irq,
277 .timer = &qong_timer, 277 .timer = &qong_timer,
278 .init_machine = mxc_board_init, 278 .init_machine = qong_init,
279MACHINE_END 279MACHINE_END
diff --git a/arch/arm/mach-mx5/board-mx51_3ds.c b/arch/arm/mach-mx5/board-mx51_3ds.c
index 01684708ef34..63dfbeafbc1e 100644
--- a/arch/arm/mach-mx5/board-mx51_3ds.c
+++ b/arch/arm/mach-mx5/board-mx51_3ds.c
@@ -133,7 +133,7 @@ static struct spi_board_info mx51_3ds_spi_nor_device[] = {
133/* 133/*
134 * Board specific initialization. 134 * Board specific initialization.
135 */ 135 */
136static void __init mxc_board_init(void) 136static void __init mx51_3ds_init(void)
137{ 137{
138 mxc_iomux_v3_setup_multiple_pads(mx51_3ds_pads, 138 mxc_iomux_v3_setup_multiple_pads(mx51_3ds_pads,
139 ARRAY_SIZE(mx51_3ds_pads)); 139 ARRAY_SIZE(mx51_3ds_pads));
@@ -160,8 +160,8 @@ static void __init mx51_3ds_timer_init(void)
160 mx51_clocks_init(32768, 24000000, 22579200, 0); 160 mx51_clocks_init(32768, 24000000, 22579200, 0);
161} 161}
162 162
163static struct sys_timer mxc_timer = { 163static struct sys_timer mx51_3ds_timer = {
164 .init = mx51_3ds_timer_init, 164 .init = mx51_3ds_timer_init,
165}; 165};
166 166
167MACHINE_START(MX51_3DS, "Freescale MX51 3-Stack Board") 167MACHINE_START(MX51_3DS, "Freescale MX51 3-Stack Board")
@@ -170,6 +170,6 @@ MACHINE_START(MX51_3DS, "Freescale MX51 3-Stack Board")
170 .map_io = mx51_map_io, 170 .map_io = mx51_map_io,
171 .init_early = imx51_init_early, 171 .init_early = imx51_init_early,
172 .init_irq = mx51_init_irq, 172 .init_irq = mx51_init_irq,
173 .timer = &mxc_timer, 173 .timer = &mx51_3ds_timer,
174 .init_machine = mxc_board_init, 174 .init_machine = mx51_3ds_init,
175MACHINE_END 175MACHINE_END
diff --git a/arch/arm/mach-mx5/board-mx51_babbage.c b/arch/arm/mach-mx5/board-mx51_babbage.c
index 7874bcd41db5..b2ecd194e76d 100644
--- a/arch/arm/mach-mx5/board-mx51_babbage.c
+++ b/arch/arm/mach-mx5/board-mx51_babbage.c
@@ -341,7 +341,7 @@ static const struct spi_imx_master mx51_babbage_spi_pdata __initconst = {
341/* 341/*
342 * Board specific initialization. 342 * Board specific initialization.
343 */ 343 */
344static void __init mxc_board_init(void) 344static void __init mx51_babbage_init(void)
345{ 345{
346 iomux_v3_cfg_t usbh1stp = MX51_PAD_USBH1_STP__USBH1_STP; 346 iomux_v3_cfg_t usbh1stp = MX51_PAD_USBH1_STP__USBH1_STP;
347 iomux_v3_cfg_t power_key = _MX51_PAD_EIM_A27__GPIO2_21 | 347 iomux_v3_cfg_t power_key = _MX51_PAD_EIM_A27__GPIO2_21 |
@@ -395,8 +395,8 @@ static void __init mx51_babbage_timer_init(void)
395 mx51_clocks_init(32768, 24000000, 22579200, 0); 395 mx51_clocks_init(32768, 24000000, 22579200, 0);
396} 396}
397 397
398static struct sys_timer mxc_timer = { 398static struct sys_timer mx51_babbage_timer = {
399 .init = mx51_babbage_timer_init, 399 .init = mx51_babbage_timer_init,
400}; 400};
401 401
402MACHINE_START(MX51_BABBAGE, "Freescale MX51 Babbage Board") 402MACHINE_START(MX51_BABBAGE, "Freescale MX51 Babbage Board")
@@ -405,6 +405,6 @@ MACHINE_START(MX51_BABBAGE, "Freescale MX51 Babbage Board")
405 .map_io = mx51_map_io, 405 .map_io = mx51_map_io,
406 .init_early = imx51_init_early, 406 .init_early = imx51_init_early,
407 .init_irq = mx51_init_irq, 407 .init_irq = mx51_init_irq,
408 .timer = &mxc_timer, 408 .timer = &mx51_babbage_timer,
409 .init_machine = mxc_board_init, 409 .init_machine = mx51_babbage_init,
410MACHINE_END 410MACHINE_END
diff --git a/arch/arm/mach-mx5/board-mx51_efikamx.c b/arch/arm/mach-mx5/board-mx51_efikamx.c
index b0fa55327c37..c4094fa5794f 100644
--- a/arch/arm/mach-mx5/board-mx51_efikamx.c
+++ b/arch/arm/mach-mx5/board-mx51_efikamx.c
@@ -303,7 +303,7 @@ void mx51_efikamx_reset(void)
303 gpio_direction_output(EFIKAMX_RESET, 0); 303 gpio_direction_output(EFIKAMX_RESET, 0);
304} 304}
305 305
306static void __init mxc_board_init(void) 306static void __init mx51_efikamx_init(void)
307{ 307{
308 mxc_iomux_v3_setup_multiple_pads(mx51efikamx_pads, 308 mxc_iomux_v3_setup_multiple_pads(mx51efikamx_pads,
309 ARRAY_SIZE(mx51efikamx_pads)); 309 ARRAY_SIZE(mx51efikamx_pads));
@@ -341,8 +341,8 @@ static void __init mx51_efikamx_timer_init(void)
341 mx51_clocks_init(32768, 24000000, 22579200, 24576000); 341 mx51_clocks_init(32768, 24000000, 22579200, 24576000);
342} 342}
343 343
344static struct sys_timer mxc_timer = { 344static struct sys_timer mx51_efikamx_timer = {
345 .init = mx51_efikamx_timer_init, 345 .init = mx51_efikamx_timer_init,
346}; 346};
347 347
348MACHINE_START(MX51_EFIKAMX, "Genesi EfikaMX nettop") 348MACHINE_START(MX51_EFIKAMX, "Genesi EfikaMX nettop")
@@ -351,6 +351,6 @@ MACHINE_START(MX51_EFIKAMX, "Genesi EfikaMX nettop")
351 .map_io = mx51_map_io, 351 .map_io = mx51_map_io,
352 .init_early = imx51_init_early, 352 .init_early = imx51_init_early,
353 .init_irq = mx51_init_irq, 353 .init_irq = mx51_init_irq,
354 .timer = &mxc_timer, 354 .timer = &mx51_efikamx_timer,
355 .init_machine = mxc_board_init, 355 .init_machine = mx51_efikamx_init,
356MACHINE_END 356MACHINE_END