Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147801
b: refs/heads/master
c: 05728ae
h: refs/heads/master
i:
  147799: 69569d7
v: v3
  • Loading branch information
Greg Ungerer committed Jun 11, 2009
1 parent 80be2ed commit e05e2a5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 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: dd65b1de553ddfd85e8fea9d3aa9db7479ccf2aa
refs/heads/master: 05728aec8b05ec3fa859add8b22ba46432611e9e
18 changes: 14 additions & 4 deletions trunk/arch/m68knommu/platform/5272/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <linux/kernel.h>
#include <linux/param.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <asm/machdep.h>
#include <asm/coldfire.h>
Expand All @@ -21,8 +20,6 @@

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

void coldfire_reset(void);

extern unsigned int mcf_timervector;
extern unsigned int mcf_profilevector;
extern unsigned int mcf_timerlevel;
Expand Down Expand Up @@ -170,6 +167,19 @@ void mcf_settimericr(int timer, int level)

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

static void m5272_cpu_reset(void)
{
local_irq_disable();
/* Set watchdog to reset, and enabled */
__raw_writew(0, MCF_MBAR + MCFSIM_WIRR);
__raw_writew(1, MCF_MBAR + MCFSIM_WRRR);
__raw_writew(0, MCF_MBAR + MCFSIM_WCR);
for (;;)
/* wait for watchdog to timeout */;
}

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

void __init config_BSP(char *commandp, int size)
{
#if defined (CONFIG_MOD5272)
Expand All @@ -194,7 +204,7 @@ void __init config_BSP(char *commandp, int size)

mcf_timervector = 69;
mcf_profilevector = 70;
mach_reset = coldfire_reset;
mach_reset = m5272_cpu_reset;
}

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

0 comments on commit e05e2a5

Please sign in to comment.