Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147800
b: refs/heads/master
c: dd65b1d
h: refs/heads/master
v: v3
  • Loading branch information
Greg Ungerer committed Jun 11, 2009
1 parent 69569d7 commit 80be2ed
Show file tree
Hide file tree
Showing 3 changed files with 18 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: 4c0b008d49e728735f54419e60446480017bfe1b
refs/heads/master: dd65b1de553ddfd85e8fea9d3aa9db7479ccf2aa
8 changes: 8 additions & 0 deletions trunk/arch/m68k/include/asm/m528xsim.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@
#define MCF5282_INTC0_ICR17 (volatile u8 *) (MCF_IPSBAR + 0x0C51)


/*
* Reset Control Unit (relative to IPSBAR).
*/
#define MCF_RCR 0x110000
#define MCF_RSR 0x110001

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

/*********************************************************************
*
Expand Down
13 changes: 9 additions & 4 deletions trunk/arch/m68knommu/platform/528x/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@

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

void coldfire_reset(void);

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

static struct mcf_platform_uart m528x_uart_platform[] = {
{
.mapbase = MCF_MBAR + MCFUART_BASE1,
Expand Down Expand Up @@ -171,6 +167,14 @@ void mcf_autovector(unsigned int vec)

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

static void m528x_cpu_reset(void)
{
local_irq_disable();
__raw_writeb(MCF_RCR_SWRESET, MCF_IPSBAR + MCF_RCR);
}

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

#ifdef CONFIG_WILDFIRE
void wildfire_halt(void)
{
Expand Down Expand Up @@ -214,6 +218,7 @@ void __init config_BSP(char *commandp, int size)

static int __init init_BSP(void)
{
mach_reset = m528x_cpu_reset;
m528x_uarts_init();
m528x_fec_init();
platform_add_devices(m528x_devices, ARRAY_SIZE(m528x_devices));
Expand Down

0 comments on commit 80be2ed

Please sign in to comment.