File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
arch/m68knommu/platform/5249 Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 11
11
#include <linux/kernel.h>
12
12
#include <linux/param.h>
13
13
#include <linux/init.h>
14
- #include <linux/interrupt.h>
15
14
#include <linux/io.h>
16
15
#include <asm/machdep.h>
17
16
#include <asm/coldfire.h>
20
19
21
20
/***************************************************************************/
22
21
23
- void coldfire_reset (void );
24
-
25
- /***************************************************************************/
26
-
27
22
static struct mcf_platform_uart m5249_uart_platform [] = {
28
23
{
29
24
.mapbase = MCF_MBAR + MCFUART_BASE1 ,
@@ -106,10 +101,21 @@ void mcf_settimericr(unsigned int timer, unsigned int level)
106
101
107
102
/***************************************************************************/
108
103
104
+ void m5249_cpu_reset (void )
105
+ {
106
+ local_irq_disable ();
107
+ /* Set watchdog to soft reset, and enabled */
108
+ __raw_writeb (0xc0 , MCF_MBAR + MCFSIM_SYPCR );
109
+ for (;;)
110
+ /* wait for watchdog to timeout */ ;
111
+ }
112
+
113
+ /***************************************************************************/
114
+
109
115
void __init config_BSP (char * commandp , int size )
110
116
{
111
117
mcf_setimr (MCFSIM_IMR_MASKALL );
112
- mach_reset = coldfire_reset ;
118
+ mach_reset = m5249_cpu_reset ;
113
119
}
114
120
115
121
/***************************************************************************/
You can’t perform that action at this time.
0 commit comments