aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/platform
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2011-12-23 22:06:33 -0500
committerGreg Ungerer <gerg@uclinux.org>2012-03-04 18:43:10 -0500
commitc05793c7332d0f4179068bc6a6120e67b73a09ef (patch)
tree66ee5d20199610157b766cd0bcb1d918c63ca7a2 /arch/m68k/platform
parent9773be5f5fcbabb688bf05f85d594261a53a5ac0 (diff)
m68knommu: clean up init code in ColdFire 532x startup
We can move all the init calls in the initcall code into the more general arch setup code (which is config_BSP() here). That makes the 532x consistent with other ColdFire CPUs setup code. It means we can get rid of the initcall setup here all together. Also make sure we set the arch mach_reset function pointer to get the local arch reset code called on reset. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k/platform')
-rw-r--r--arch/m68k/platform/532x/config.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/arch/m68k/platform/532x/config.c b/arch/m68k/platform/532x/config.c
index 8c0dd5caae97..56b21fd84b3f 100644
--- a/arch/m68k/platform/532x/config.c
+++ b/arch/m68k/platform/532x/config.c
@@ -83,6 +83,12 @@ void __init config_BSP(char *commandp, int size)
83#endif 83#endif
84 84
85 mach_sched_init = hw_timer_init; 85 mach_sched_init = hw_timer_init;
86 mach_reset = m532x_cpu_reset;
87 m532x_uarts_init();
88 m532x_fec_init();
89#ifdef CONFIG_SPI_COLDFIRE_QSPI
90 m532x_qspi_init();
91#endif
86 92
87#ifdef CONFIG_BDM_DISABLE 93#ifdef CONFIG_BDM_DISABLE
88 /* 94 /*
@@ -95,20 +101,6 @@ void __init config_BSP(char *commandp, int size)
95} 101}
96 102
97/***************************************************************************/ 103/***************************************************************************/
98
99static int __init init_BSP(void)
100{
101 m532x_uarts_init();
102 m532x_fec_init();
103#ifdef CONFIG_SPI_COLDFIRE_QSPI
104 m532x_qspi_init();
105#endif
106 return 0;
107}
108
109arch_initcall(init_BSP);
110
111/***************************************************************************/
112/* Board initialization */ 104/* Board initialization */
113/***************************************************************************/ 105/***************************************************************************/
114/* 106/*