diff options
Diffstat (limited to 'arch/m68knommu/platform')
-rw-r--r-- | arch/m68knommu/platform/532x/config.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/m68knommu/platform/532x/config.c b/arch/m68knommu/platform/532x/config.c index 591f2f801134..cdb761971f7a 100644 --- a/arch/m68knommu/platform/532x/config.c +++ b/arch/m68knommu/platform/532x/config.c | |||
@@ -31,8 +31,6 @@ | |||
31 | 31 | ||
32 | /***************************************************************************/ | 32 | /***************************************************************************/ |
33 | 33 | ||
34 | void coldfire_reset(void); | ||
35 | |||
36 | extern unsigned int mcf_timervector; | 34 | extern unsigned int mcf_timervector; |
37 | extern unsigned int mcf_profilevector; | 35 | extern unsigned int mcf_profilevector; |
38 | extern unsigned int mcf_timerlevel; | 36 | extern unsigned int mcf_timerlevel; |
@@ -164,6 +162,14 @@ void mcf_settimericr(unsigned int timer, unsigned int level) | |||
164 | 162 | ||
165 | /***************************************************************************/ | 163 | /***************************************************************************/ |
166 | 164 | ||
165 | static void m532x_cpu_reset(void) | ||
166 | { | ||
167 | local_irq_disable(); | ||
168 | __raw_writeb(MCF_RCR_SWRESET, MCF_RCR); | ||
169 | } | ||
170 | |||
171 | /***************************************************************************/ | ||
172 | |||
167 | void __init config_BSP(char *commandp, int size) | 173 | void __init config_BSP(char *commandp, int size) |
168 | { | 174 | { |
169 | mcf_setimr(MCFSIM_IMR_MASKALL); | 175 | mcf_setimr(MCFSIM_IMR_MASKALL); |
@@ -181,7 +187,7 @@ void __init config_BSP(char *commandp, int size) | |||
181 | 187 | ||
182 | mcf_timervector = 64+32; | 188 | mcf_timervector = 64+32; |
183 | mcf_profilevector = 64+33; | 189 | mcf_profilevector = 64+33; |
184 | mach_reset = coldfire_reset; | 190 | mach_reset = m532x_cpu_reset; |
185 | 191 | ||
186 | #ifdef CONFIG_BDM_DISABLE | 192 | #ifdef CONFIG_BDM_DISABLE |
187 | /* | 193 | /* |