File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 41
41
#define MCFSIM_DACR1 0x50 /* SDRAM base address 1 */
42
42
#define MCFSIM_DMR1 0x54 /* SDRAM address mask 1 */
43
43
44
+ /*
45
+ * Reset Controll Unit (relative to IPSBAR).
46
+ */
47
+ #define MCF_RCR 0x110000
48
+ #define MCF_RSR 0x110001
49
+
50
+ #define MCF_RCR_SWRESET 0x80 /* Software reset bit */
51
+ #define MCF_RCR_FRCSTOUT 0x40 /* Force external reset */
52
+
44
53
/****************************************************************************/
45
54
#endif /* m523xsim_h */
Original file line number Diff line number Diff line change 15
15
#include <linux/kernel.h>
16
16
#include <linux/param.h>
17
17
#include <linux/init.h>
18
- #include <linux/interrupt.h>
19
18
#include <linux/io.h>
20
19
#include <asm/machdep.h>
21
20
#include <asm/coldfire.h>
24
23
25
24
/***************************************************************************/
26
25
27
- void coldfire_reset (void );
28
-
29
- /***************************************************************************/
30
-
31
26
static struct mcf_platform_uart m523x_uart_platform [] = {
32
27
{
33
28
.mapbase = MCF_MBAR + MCFUART_BASE1 ,
@@ -145,13 +140,20 @@ void mcf_autovector(unsigned int vec)
145
140
{
146
141
/* Everything is auto-vectored on the 523x */
147
142
}
143
+ /***************************************************************************/
144
+
145
+ static void m523x_cpu_reset (void )
146
+ {
147
+ local_irq_disable ();
148
+ __raw_writeb (MCF_RCR_SWRESET , MCF_IPSBAR + MCF_RCR );
149
+ }
148
150
149
151
/***************************************************************************/
150
152
151
153
void __init config_BSP (char * commandp , int size )
152
154
{
153
155
mcf_disableall ();
154
- mach_reset = coldfire_reset ;
156
+ mach_reset = m523x_cpu_reset ;
155
157
m523x_uarts_init ();
156
158
m523x_fec_init ();
157
159
}
You can’t perform that action at this time.
0 commit comments