diff options
Diffstat (limited to 'arch/blackfin/mach-common/cache-c.c')
-rw-r--r-- | arch/blackfin/mach-common/cache-c.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/arch/blackfin/mach-common/cache-c.c b/arch/blackfin/mach-common/cache-c.c index e6ab1f815123..b59ce3cb3807 100644 --- a/arch/blackfin/mach-common/cache-c.c +++ b/arch/blackfin/mach-common/cache-c.c | |||
@@ -16,9 +16,21 @@ | |||
16 | void blackfin_invalidate_entire_dcache(void) | 16 | void blackfin_invalidate_entire_dcache(void) |
17 | { | 17 | { |
18 | u32 dmem = bfin_read_DMEM_CONTROL(); | 18 | u32 dmem = bfin_read_DMEM_CONTROL(); |
19 | SSYNC(); | ||
20 | bfin_write_DMEM_CONTROL(dmem & ~0xc); | 19 | bfin_write_DMEM_CONTROL(dmem & ~0xc); |
21 | SSYNC(); | 20 | SSYNC(); |
22 | bfin_write_DMEM_CONTROL(dmem); | 21 | bfin_write_DMEM_CONTROL(dmem); |
23 | SSYNC(); | 22 | SSYNC(); |
24 | } | 23 | } |
24 | |||
25 | /* Invalidate the Entire Instruction cache by | ||
26 | * clearing IMC bit | ||
27 | */ | ||
28 | void blackfin_invalidate_entire_icache(void) | ||
29 | { | ||
30 | u32 imem = bfin_read_IMEM_CONTROL(); | ||
31 | bfin_write_IMEM_CONTROL(imem & ~0x4); | ||
32 | SSYNC(); | ||
33 | bfin_write_IMEM_CONTROL(imem); | ||
34 | SSYNC(); | ||
35 | } | ||
36 | |||