summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/system-as3525.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/system-as3525.c')
-rw-r--r--firmware/target/arm/as3525/system-as3525.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c
index 31d6fb6ae6..dcea7a2a2e 100644
--- a/firmware/target/arm/as3525/system-as3525.c
+++ b/firmware/target/arm/as3525/system-as3525.c
@@ -224,7 +224,7 @@ void system_init(void)
224 CGU_PERI &= ~0x7f; /* pclk 24 MHz */ 224 CGU_PERI &= ~0x7f; /* pclk 24 MHz */
225#endif 225#endif
226 226
227 CGU_PERI &= ~(1<<24); /*disable built in boot rom clock*/ 227 CGU_PERI &= ~CGU_ROM_ENABLE; /*disable built in boot rom clock*/
228 228
229 /* bits 31:30 should be set to 0 in arm926-ejs */ 229 /* bits 31:30 should be set to 0 in arm926-ejs */
230 asm volatile( 230 asm volatile(
@@ -316,6 +316,9 @@ void system_reboot(void)
316 316
317 disable_irq(); 317 disable_irq();
318 318
319 /* re-enable internal ROM */
320 CGU_PERI |= CGU_ROM_ENABLE;
321
319 /* use watchdog to reset */ 322 /* use watchdog to reset */
320 CGU_PERI |= (CGU_WDOCNT_CLOCK_ENABLE | CGU_WDOIF_CLOCK_ENABLE); 323 CGU_PERI |= (CGU_WDOCNT_CLOCK_ENABLE | CGU_WDOIF_CLOCK_ENABLE);
321 WDT_LOAD = 1; /* set counter to 1 */ 324 WDT_LOAD = 1; /* set counter to 1 */