aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2012-02-19 01:34:58 -0500
committerGreg Ungerer <gerg@uclinux.org>2012-03-04 19:42:27 -0500
commit645e5333ec9088da08a1db619561de9c93c70634 (patch)
tree40853706c6568e62159f3460a67169a6e3af88bd
parent0b2a2139056a05dde934e715739c361d8c01e523 (diff)
m68knommu: make 528x CPU reset register addressing consistent
If we make all MCF_RCR (CPU reset register) addressing consistent across all ColdFire CPU family members that use it then we will be able to remove the duplicated copies of the code that use it. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
-rw-r--r--arch/m68k/include/asm/m528xsim.h4
-rw-r--r--arch/m68k/platform/528x/config.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/m68k/include/asm/m528xsim.h b/arch/m68k/include/asm/m528xsim.h
index e4581a4a1035..569476fba18c 100644
--- a/arch/m68k/include/asm/m528xsim.h
+++ b/arch/m68k/include/asm/m528xsim.h
@@ -272,8 +272,8 @@
272/* 272/*
273 * Reset Control Unit (relative to IPSBAR). 273 * Reset Control Unit (relative to IPSBAR).
274 */ 274 */
275#define MCF_RCR 0x110000 275#define MCF_RCR (MCF_IPSBAR + 0x110000)
276#define MCF_RSR 0x110001 276#define MCF_RSR (MCF_IPSBAR + 0x110001)
277 277
278#define MCF_RCR_SWRESET 0x80 /* Software reset bit */ 278#define MCF_RCR_SWRESET 0x80 /* Software reset bit */
279#define MCF_RCR_FRCSTOUT 0x40 /* Force external reset */ 279#define MCF_RCR_FRCSTOUT 0x40 /* Force external reset */
diff --git a/arch/m68k/platform/528x/config.c b/arch/m68k/platform/528x/config.c
index 98decc6beb34..d203b1ba4ebb 100644
--- a/arch/m68k/platform/528x/config.c
+++ b/arch/m68k/platform/528x/config.c
@@ -63,7 +63,7 @@ static void __init m528x_fec_init(void)
63static void m528x_cpu_reset(void) 63static void m528x_cpu_reset(void)
64{ 64{
65 local_irq_disable(); 65 local_irq_disable();
66 __raw_writeb(MCF_RCR_SWRESET, MCF_IPSBAR + MCF_RCR); 66 __raw_writeb(MCF_RCR_SWRESET, MCF_RCR);
67} 67}
68 68
69/***************************************************************************/ 69/***************************************************************************/