提交 25ce4a90 编写于 作者: G Greg Ungerer

m68knommu: move CPU reset code for the 520x ColdFire into its platform code

Signed-off-by: NGreg Ungerer <gerg@uclinux.org>
上级 384feb91
...@@ -59,5 +59,14 @@ ...@@ -59,5 +59,14 @@
#define MCFPIT_IMR MCFINTC_IMRL #define MCFPIT_IMR MCFINTC_IMRL
#define MCFPIT_IMR_IBIT (1 << MCFINT_PIT1) #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 */ #endif /* m520xsim_h */
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/param.h> #include <linux/param.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/io.h> #include <linux/io.h>
#include <asm/machdep.h> #include <asm/machdep.h>
#include <asm/coldfire.h> #include <asm/coldfire.h>
...@@ -23,10 +22,6 @@ ...@@ -23,10 +22,6 @@
/***************************************************************************/ /***************************************************************************/
void coldfire_reset(void);
/***************************************************************************/
static struct mcf_platform_uart m520x_uart_platform[] = { static struct mcf_platform_uart m520x_uart_platform[] = {
{ {
.mapbase = MCF_MBAR + MCFUART_BASE1, .mapbase = MCF_MBAR + MCFUART_BASE1,
...@@ -169,9 +164,17 @@ void mcf_autovector(unsigned int vec) ...@@ -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) void __init config_BSP(char *commandp, int size)
{ {
mach_reset = coldfire_reset; mach_reset = m520x_cpu_reset;
m520x_uarts_init(); m520x_uarts_init();
m520x_fec_init(); m520x_fec_init();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册