From 69569d7fca77b6e56d693151e782939787ce4868 Mon Sep 17 00:00:00 2001 From: Greg Ungerer Date: Thu, 30 Apr 2009 23:06:45 +1000 Subject: [PATCH] --- yaml --- r: 147799 b: refs/heads/master c: 4c0b008d49e728735f54419e60446480017bfe1b h: refs/heads/master i: 147797: e5fb056abc3229853fb0dd100535b4ba3c1899ed 147795: 8fe4d9885e5af295686dd61e879320161fc24055 147791: 798390404fd46701b5cfcc873b45961c07112281 v: v3 --- [refs] | 2 +- trunk/arch/m68k/include/asm/m527xsim.h | 9 +++++++++ trunk/arch/m68knommu/platform/527x/config.c | 15 +++++++++------ 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 6d318296ad53..e8e178556575 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 55b33f316d25c1ffb13a65de7f846b950b5ef5a6 +refs/heads/master: 4c0b008d49e728735f54419e60446480017bfe1b diff --git a/trunk/arch/m68k/include/asm/m527xsim.h b/trunk/arch/m68k/include/asm/m527xsim.h index 1f63ab3fb3e6..95f4f8ee8f7c 100644 --- a/trunk/arch/m68k/include/asm/m527xsim.h +++ b/trunk/arch/m68k/include/asm/m527xsim.h @@ -70,5 +70,14 @@ #define UART2_ENABLE_MASK 0x3f00 #endif +/* + * Reset Controll 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 */ + /****************************************************************************/ #endif /* m527xsim_h */ diff --git a/trunk/arch/m68knommu/platform/527x/config.c b/trunk/arch/m68knommu/platform/527x/config.c index 428b15922ef5..f746439cfd3e 100644 --- a/trunk/arch/m68knommu/platform/527x/config.c +++ b/trunk/arch/m68knommu/platform/527x/config.c @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include @@ -24,10 +23,6 @@ /***************************************************************************/ -void coldfire_reset(void); - -/***************************************************************************/ - static struct mcf_platform_uart m527x_uart_platform[] = { { .mapbase = MCF_MBAR + MCFUART_BASE1, @@ -227,10 +222,18 @@ void mcf_autovector(unsigned int vec) /***************************************************************************/ +static void m527x_cpu_reset(void) +{ + local_irq_disable(); + __raw_writeb(MCF_RCR_SWRESET, MCF_IPSBAR + MCF_RCR); +} + +/***************************************************************************/ + void __init config_BSP(char *commandp, int size) { mcf_disableall(); - mach_reset = coldfire_reset; + mach_reset = m527x_cpu_reset; m527x_uarts_init(); m527x_fec_init(); }