diff options
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/as3525/system-as3525.c | 5 |
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) CGU_PERI &= ~0x7f; /* pclk 24 MHz */ #endif - CGU_PERI &= ~(1<<24); /*disable built in boot rom clock*/ + CGU_PERI &= ~CGU_ROM_ENABLE; /*disable built in boot rom clock*/ /* bits 31:30 should be set to 0 in arm926-ejs */ asm volatile( @@ -316,6 +316,9 @@ void system_reboot(void) disable_irq(); + /* re-enable internal ROM */ + CGU_PERI |= CGU_ROM_ENABLE; + /* use watchdog to reset */ CGU_PERI |= (CGU_WDOCNT_CLOCK_ENABLE | CGU_WDOIF_CLOCK_ENABLE); WDT_LOAD = 1; /* set counter to 1 */ |