Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147791
b: refs/heads/master
c: c18e52c
h: refs/heads/master
i:
  147789: f12be50
  147787: bd08dbd
  147783: be0098c
  147775: c1ce99c
v: v3
  • Loading branch information
Greg Ungerer committed Jun 11, 2009
1 parent ea12478 commit 7983904
Show file tree
Hide file tree
Showing 2 changed files with 13 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: 293ca0f75415dd8373c716bf9755569daca7ba5d
refs/heads/master: c18e52c7696e39c7cb23cd083bbda5652c338b79
16 changes: 12 additions & 4 deletions trunk/arch/m68knommu/platform/5307/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 @@ -22,8 +21,6 @@

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

void coldfire_reset(void);

extern unsigned int mcf_timervector;
extern unsigned int mcf_profilevector;
extern unsigned int mcf_timerlevel;
Expand Down Expand Up @@ -119,6 +116,17 @@ void mcf_settimericr(unsigned int timer, unsigned int level)

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

void m5307_cpu_reset(void)
{
local_irq_disable();
/* Set watchdog to soft reset, and enabled */
__raw_writeb(0xc0, MCF_MBAR + MCFSIM_SYPCR);
for (;;)
/* wait for watchdog to timeout */;
}

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

void __init config_BSP(char *commandp, int size)
{
mcf_setimr(MCFSIM_IMR_MASKALL);
Expand All @@ -134,7 +142,7 @@ void __init config_BSP(char *commandp, int size)
mcf_timerlevel = 6;
#endif

mach_reset = coldfire_reset;
mach_reset = m5307_cpu_reset;

#ifdef CONFIG_BDM_DISABLE
/*
Expand Down

0 comments on commit 7983904

Please sign in to comment.