Skip to content

Commit

Permalink
m68knommu: make 523x CPU reset register addressing consistent
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Ungerer committed Mar 5, 2012
1 parent d894b89 commit 320de7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions arch/m68k/include/asm/m523xsim.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
/*
* Reset Control Unit (relative to IPSBAR).
*/
#define MCF_RCR 0x110000
#define MCF_RSR 0x110001
#define MCF_RCR (MCF_IPSBAR + 0x110000)
#define MCF_RSR (MCF_IPSBAR + 0x110001)

#define MCF_RCR_SWRESET 0x80 /* Software reset bit */
#define MCF_RCR_FRCSTOUT 0x40 /* Force external reset */
Expand Down
2 changes: 1 addition & 1 deletion arch/m68k/platform/523x/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static void __init m523x_fec_init(void)
static void m523x_cpu_reset(void)
{
local_irq_disable();
__raw_writeb(MCF_RCR_SWRESET, MCF_IPSBAR + MCF_RCR);
__raw_writeb(MCF_RCR_SWRESET, MCF_RCR);
}

/***************************************************************************/
Expand Down

0 comments on commit 320de7d

Please sign in to comment.