summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/system-as3525.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c
index ff0f892406..45f36bda8c 100644
--- a/firmware/target/arm/as3525/system-as3525.c
+++ b/firmware/target/arm/as3525/system-as3525.c
@@ -201,6 +201,16 @@ void system_init(void)
201 CGU_PERI |= CGU_GPIO_CLOCK_ENABLE; 201 CGU_PERI |= CGU_GPIO_CLOCK_ENABLE;
202#endif 202#endif
203 203
204 asm volatile(
205 "mov r0, #0 \n"
206 "mcr p15, 0, r0, c7, c7 \n" /* invalidate icache & dcache */
207 "mrc p15, 0, r0, c1, c0 \n" /* control register */
208 "orr r0, r0, #0x1000 \n" /* enable icache */
209 "orr r0, r0, #4 \n" /* enable dcache */
210 "mcr p15, 0, r0, c1, c0 \n"
211 : : : "r0" );
212
213
204 sdram_init(); 214 sdram_init();
205} 215}
206 216