File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
arch/m68knommu/platform/5407 Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 12
12
#include <linux/kernel.h>
13
13
#include <linux/param.h>
14
14
#include <linux/init.h>
15
- #include <linux/interrupt.h>
16
15
#include <linux/io.h>
17
16
#include <asm/machdep.h>
18
17
#include <asm/coldfire.h>
21
20
22
21
/***************************************************************************/
23
22
24
- void coldfire_reset (void );
25
-
26
23
extern unsigned int mcf_timervector ;
27
24
extern unsigned int mcf_profilevector ;
28
25
extern unsigned int mcf_timerlevel ;
@@ -110,6 +107,17 @@ void mcf_settimericr(unsigned int timer, unsigned int level)
110
107
111
108
/***************************************************************************/
112
109
110
+ void m5407_cpu_reset (void )
111
+ {
112
+ local_irq_disable ();
113
+ /* set watchdog to soft reset, and enabled */
114
+ __raw_writeb (0xc0 , MCF_MBAR + MCFSIM_SYPCR );
115
+ for (;;)
116
+ /* wait for watchdog to timeout */ ;
117
+ }
118
+
119
+ /***************************************************************************/
120
+
113
121
void __init config_BSP (char * commandp , int size )
114
122
{
115
123
mcf_setimr (MCFSIM_IMR_MASKALL );
@@ -121,7 +129,7 @@ void __init config_BSP(char *commandp, int size)
121
129
mcf_timerlevel = 6 ;
122
130
#endif
123
131
124
- mach_reset = coldfire_reset ;
132
+ mach_reset = m5407_cpu_reset ;
125
133
}
126
134
127
135
/***************************************************************************/
You can’t perform that action at this time.
0 commit comments