diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2008-11-01 23:40:59 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2008-11-01 23:40:59 +0000 |
commit | a85e2cd991ce987d5a83504053800575c7ad7e60 (patch) | |
tree | 6a99e3c4e583cc2e1fe900c84ad3e6a62812c0e6 /firmware/target/arm/as3525/system-as3525.c | |
parent | 307d009cf1bc32d9dfe7b01b26d2f5fc7ae39146 (diff) | |
download | rockbox-a85e2cd991ce987d5a83504053800575c7ad7e60.tar.gz rockbox-a85e2cd991ce987d5a83504053800575c7ad7e60.zip |
AS3525 : enable instruction and data cache
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18969 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/system-as3525.c')
-rw-r--r-- | firmware/target/arm/as3525/system-as3525.c | 10 |
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 | ||