Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147797
b: refs/heads/master
c: 25ce4a9
h: refs/heads/master
i:
  147795: 8fe4d98
v: v3
  • Loading branch information
Greg Ungerer committed Jun 11, 2009
1 parent d3825c3 commit e5fb056
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 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: 384feb91319766298c6358f23f54873d44c9d8cb
refs/heads/master: 25ce4a908abebf8c7d2e89908d36050e1de9cbec
9 changes: 9 additions & 0 deletions trunk/arch/m68k/include/asm/m520xsim.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,14 @@
#define MCFPIT_IMR MCFINTC_IMRL
#define MCFPIT_IMR_IBIT (1 << MCFINT_PIT1)

/*
* Reset Controll Unit.
*/
#define MCF_RCR 0xFC0A0000
#define MCF_RSR 0xFC0A0001

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

/****************************************************************************/
#endif /* m520xsim_h */
15 changes: 9 additions & 6 deletions trunk/arch/m68knommu/platform/520x/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,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 @@ -23,10 +22,6 @@

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

void coldfire_reset(void);

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

static struct mcf_platform_uart m520x_uart_platform[] = {
{
.mapbase = MCF_MBAR + MCFUART_BASE1,
Expand Down Expand Up @@ -169,9 +164,17 @@ void mcf_autovector(unsigned int vec)

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

static void m520x_cpu_reset(void)
{
local_irq_disable();
__raw_writeb(MCF_RCR_SWRESET, MCF_RCR);
}

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

void __init config_BSP(char *commandp, int size)
{
mach_reset = coldfire_reset;
mach_reset = m520x_cpu_reset;
m520x_uarts_init();
m520x_fec_init();
}
Expand Down

0 comments on commit e5fb056

Please sign in to comment.