diff options
author | Greg Ungerer <gerg@uclinux.org> | 2009-04-30 22:03:43 +1000 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2009-06-11 13:09:10 +1000 |
commit | 384feb91319766298c6358f23f54873d44c9d8cb (patch) | |
tree | c5d87c43cd16ae0646f10956aeff7c7f9540b2a7 /arch/m68knommu | |
parent | 6f5aa7ce38dfb9c04eecac1222fc4b2521f02b83 (diff) | |
download | blackbird-op-linux-384feb91319766298c6358f23f54873d44c9d8cb.tar.gz blackbird-op-linux-384feb91319766298c6358f23f54873d44c9d8cb.zip |
m68knommu: add CPU reset code for the 532x ColdFire
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68knommu')
-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 @@ /***************************************************************************/ -void coldfire_reset(void); - extern unsigned int mcf_timervector; extern unsigned int mcf_profilevector; extern unsigned int mcf_timerlevel; @@ -164,6 +162,14 @@ void mcf_settimericr(unsigned int timer, unsigned int level) /***************************************************************************/ +static void m532x_cpu_reset(void) +{ + local_irq_disable(); + __raw_writeb(MCF_RCR_SWRESET, MCF_RCR); +} + +/***************************************************************************/ + void __init config_BSP(char *commandp, int size) { mcf_setimr(MCFSIM_IMR_MASKALL); @@ -181,7 +187,7 @@ void __init config_BSP(char *commandp, int size) mcf_timervector = 64+32; mcf_profilevector = 64+33; - mach_reset = coldfire_reset; + mach_reset = m532x_cpu_reset; #ifdef CONFIG_BDM_DISABLE /* |