File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 125
125
#define ACR_CM_OFF_IMP (3<<5)
126
126
#define ACR_WPROTECT (1<<2)
127
127
128
+ /*********************************************************************
129
+ *
130
+ * Reset Controller Module
131
+ *
132
+ *********************************************************************/
133
+
134
+ #define MCF_RCR 0xFC0A0000
135
+ #define MCF_RSR 0xFC0A0001
136
+
137
+ #define MCF_RCR_SWRESET 0x80 /* Software reset bit */
138
+ #define MCF_RCR_FRCSTOUT 0x40 /* Force external reset */
139
+
128
140
/*********************************************************************
129
141
*
130
142
* Inter-IC (I2C) Module
Original file line number Diff line number Diff line change 31
31
32
32
/***************************************************************************/
33
33
34
- void coldfire_reset (void );
35
-
36
34
extern unsigned int mcf_timervector ;
37
35
extern unsigned int mcf_profilevector ;
38
36
extern unsigned int mcf_timerlevel ;
@@ -164,6 +162,14 @@ void mcf_settimericr(unsigned int timer, unsigned int level)
164
162
165
163
/***************************************************************************/
166
164
165
+ static void m532x_cpu_reset (void )
166
+ {
167
+ local_irq_disable ();
168
+ __raw_writeb (MCF_RCR_SWRESET , MCF_RCR );
169
+ }
170
+
171
+ /***************************************************************************/
172
+
167
173
void __init config_BSP (char * commandp , int size )
168
174
{
169
175
mcf_setimr (MCFSIM_IMR_MASKALL );
@@ -181,7 +187,7 @@ void __init config_BSP(char *commandp, int size)
181
187
182
188
mcf_timervector = 64 + 32 ;
183
189
mcf_profilevector = 64 + 33 ;
184
- mach_reset = coldfire_reset ;
190
+ mach_reset = m532x_cpu_reset ;
185
191
186
192
#ifdef CONFIG_BDM_DISABLE
187
193
/*
You can’t perform that action at this time.
0 commit comments