Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147796
b: refs/heads/master
c: 384feb9
h: refs/heads/master
v: v3
  • Loading branch information
Greg Ungerer committed Jun 11, 2009
1 parent 8fe4d98 commit d3825c3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6f5aa7ce38dfb9c04eecac1222fc4b2521f02b83
refs/heads/master: 384feb91319766298c6358f23f54873d44c9d8cb
12 changes: 12 additions & 0 deletions trunk/arch/m68k/include/asm/m532xsim.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,18 @@
#define ACR_CM_OFF_IMP (3<<5)
#define ACR_WPROTECT (1<<2)

/*********************************************************************
*
* Reset Controller Module
*
*********************************************************************/

#define MCF_RCR 0xFC0A0000
#define MCF_RSR 0xFC0A0001

#define MCF_RCR_SWRESET 0x80 /* Software reset bit */
#define MCF_RCR_FRCSTOUT 0x40 /* Force external reset */

/*********************************************************************
*
* Inter-IC (I2C) Module
Expand Down
12 changes: 9 additions & 3 deletions trunk/arch/m68knommu/platform/532x/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@

/***************************************************************************/

void coldfire_reset(void);

extern unsigned int mcf_timervector;
extern unsigned int mcf_profilevector;
extern unsigned int mcf_timerlevel;
Expand Down Expand Up @@ -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);
Expand All @@ -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
/*
Expand Down

0 comments on commit d3825c3

Please sign in to comment.