summaryrefslogtreecommitdiff
path: root/arch/m68k/platform/5307/config.c
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2012-02-19 10:16:58 +0400
committerGreg Ungerer <gerg@uclinux.org>2012-03-05 04:41:48 +0400
commitd894b89bf74322845f776bde4d72b70b58926886 (patch)
tree1ea0c9dc4a70ebc46fe3eda896b39143856b98d9 /arch/m68k/platform/5307/config.c
parent440f6ffc061a84e81386a093c07af8a429c18702 (diff)
downloadlinux-d894b89bf74322845f776bde4d72b70b58926886.tar.xz
m68knommu: factor some common ColdFire cpu reset code
A number of the early ColdFire cores use the same code to reset the CPU. Currently that is duplicated in each of the sub-arch files. Pull out this common code and use a single copy of it for all CPU types that use it. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k/platform/5307/config.c')
-rw-r--r--arch/m68k/platform/5307/config.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/m68k/platform/5307/config.c b/arch/m68k/platform/5307/config.c
index 5f4bf6cb017f..a568d2870d15 100644
--- a/arch/m68k/platform/5307/config.c
+++ b/arch/m68k/platform/5307/config.c
@@ -28,17 +28,6 @@ unsigned char ledbank = 0xff;
/***************************************************************************/
-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)
{
#if defined(CONFIG_NETtel) || \
@@ -48,7 +37,6 @@ void __init config_BSP(char *commandp, int size)
commandp[size-1] = 0;
#endif
- mach_reset = m5307_cpu_reset;
mach_sched_init = hw_timer_init;
/* Only support the external interrupts on their primary level */