File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 59
59
#define MCFPIT_IMR MCFINTC_IMRL
60
60
#define MCFPIT_IMR_IBIT (1 << MCFINT_PIT1)
61
61
62
+ /*
63
+ * Reset Controll Unit.
64
+ */
65
+ #define MCF_RCR 0xFC0A0000
66
+ #define MCF_RSR 0xFC0A0001
67
+
68
+ #define MCF_RCR_SWRESET 0x80 /* Software reset bit */
69
+ #define MCF_RCR_FRCSTOUT 0x40 /* Force external reset */
70
+
62
71
/****************************************************************************/
63
72
#endif /* m520xsim_h */
Original file line number Diff line number Diff line change 14
14
#include <linux/kernel.h>
15
15
#include <linux/param.h>
16
16
#include <linux/init.h>
17
- #include <linux/interrupt.h>
18
17
#include <linux/io.h>
19
18
#include <asm/machdep.h>
20
19
#include <asm/coldfire.h>
23
22
24
23
/***************************************************************************/
25
24
26
- void coldfire_reset (void );
27
-
28
- /***************************************************************************/
29
-
30
25
static struct mcf_platform_uart m520x_uart_platform [] = {
31
26
{
32
27
.mapbase = MCF_MBAR + MCFUART_BASE1 ,
@@ -169,9 +164,17 @@ void mcf_autovector(unsigned int vec)
169
164
170
165
/***************************************************************************/
171
166
167
+ static void m520x_cpu_reset (void )
168
+ {
169
+ local_irq_disable ();
170
+ __raw_writeb (MCF_RCR_SWRESET , MCF_RCR );
171
+ }
172
+
173
+ /***************************************************************************/
174
+
172
175
void __init config_BSP (char * commandp , int size )
173
176
{
174
- mach_reset = coldfire_reset ;
177
+ mach_reset = m520x_cpu_reset ;
175
178
m520x_uarts_init ();
176
179
m520x_fec_init ();
177
180
}
You can’t perform that action at this time.
0 commit comments