diff options
Diffstat (limited to 'arch/blackfin/mach-common/cacheinit.S')
-rw-r--r-- | arch/blackfin/mach-common/cacheinit.S | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/blackfin/mach-common/cacheinit.S b/arch/blackfin/mach-common/cacheinit.S index 5be6b975ae4a..22fada0c1cb3 100644 --- a/arch/blackfin/mach-common/cacheinit.S +++ b/arch/blackfin/mach-common/cacheinit.S | |||
@@ -38,13 +38,13 @@ | |||
38 | 38 | ||
39 | .text | 39 | .text |
40 | 40 | ||
41 | #ifdef ANOMALY_05000125 | 41 | #if ANOMALY_05000125 |
42 | #if defined(CONFIG_BLKFIN_CACHE) | 42 | #if defined(CONFIG_BFIN_ICACHE) |
43 | ENTRY(_bfin_write_IMEM_CONTROL) | 43 | ENTRY(_bfin_write_IMEM_CONTROL) |
44 | 44 | ||
45 | /* Enable Instruction Cache */ | 45 | /* Enable Instruction Cache */ |
46 | P0.l = (IMEM_CONTROL & 0xFFFF); | 46 | P0.l = LO(IMEM_CONTROL); |
47 | P0.h = (IMEM_CONTROL >> 16); | 47 | P0.h = HI(IMEM_CONTROL); |
48 | 48 | ||
49 | /* Anomaly 05000125 */ | 49 | /* Anomaly 05000125 */ |
50 | CLI R1; | 50 | CLI R1; |
@@ -58,10 +58,10 @@ ENTRY(_bfin_write_IMEM_CONTROL) | |||
58 | ENDPROC(_bfin_write_IMEM_CONTROL) | 58 | ENDPROC(_bfin_write_IMEM_CONTROL) |
59 | #endif | 59 | #endif |
60 | 60 | ||
61 | #if defined(CONFIG_BLKFIN_DCACHE) | 61 | #if defined(CONFIG_BFIN_DCACHE) |
62 | ENTRY(_bfin_write_DMEM_CONTROL) | 62 | ENTRY(_bfin_write_DMEM_CONTROL) |
63 | P0.l = (DMEM_CONTROL & 0xFFFF); | 63 | P0.l = LO(DMEM_CONTROL); |
64 | P0.h = (DMEM_CONTROL >> 16); | 64 | P0.h = HI(DMEM_CONTROL); |
65 | 65 | ||
66 | CLI R1; | 66 | CLI R1; |
67 | SSYNC; /* SSYNC required before writing to DMEM_CONTROL. */ | 67 | SSYNC; /* SSYNC required before writing to DMEM_CONTROL. */ |