diff options
author | Yi Li <yi.li@analog.com> | 2009-08-06 21:20:58 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-09-16 22:10:19 -0400 |
commit | eb7bd9c461bbfbb195cb1e1346453222a4352df4 (patch) | |
tree | 9c92f6ce5160b655213bbcff8175878771594121 /arch/blackfin/mach-bf561/secondary.S | |
parent | 8312440e05ea74feabc648ad8f36c823af4ddd8e (diff) |
Blackfin: cleanup sync handling when enabling/disabling cplbs
The handling of updating the [DI]MEM_CONTROL MMRs does not follow proper
sync procedures as laid out in the Blackfin programming manual. So rather
than audit/fix every call location, create helper functions that do the
right things in order to safely update these MMRs. Then convert all call
sites to use these new helper functions.
While we're fixing the code, drop the workaround for anomaly 05000125 as
that anomaly applies to old versions of silicon that we do not support.
Signed-off-by: Yi Li <yi.li@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-bf561/secondary.S')
-rw-r--r-- | arch/blackfin/mach-bf561/secondary.S | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/arch/blackfin/mach-bf561/secondary.S b/arch/blackfin/mach-bf561/secondary.S index 097550f7b558..f72a6af20c4f 100644 --- a/arch/blackfin/mach-bf561/secondary.S +++ b/arch/blackfin/mach-bf561/secondary.S | |||
@@ -85,16 +85,10 @@ ENTRY(_coreb_trampoline_start) | |||
85 | R0 = ~ENICPLB; | 85 | R0 = ~ENICPLB; |
86 | R0 = R0 & R1; | 86 | R0 = R0 & R1; |
87 | 87 | ||
88 | /* Anomaly 05000125 */ | 88 | /* Disabling of CPLBs should be proceeded by a CSYNC */ |
89 | #ifdef ANOMALY_05000125 | 89 | CSYNC; |
90 | CLI R2; | ||
91 | SSYNC; | ||
92 | #endif | ||
93 | [p0] = R0; | 90 | [p0] = R0; |
94 | SSYNC; | 91 | SSYNC; |
95 | #ifdef ANOMALY_05000125 | ||
96 | STI R2; | ||
97 | #endif | ||
98 | 92 | ||
99 | /* Turn off the dcache */ | 93 | /* Turn off the dcache */ |
100 | p0.l = LO(DMEM_CONTROL); | 94 | p0.l = LO(DMEM_CONTROL); |
@@ -103,16 +97,10 @@ ENTRY(_coreb_trampoline_start) | |||
103 | R0 = ~ENDCPLB; | 97 | R0 = ~ENDCPLB; |
104 | R0 = R0 & R1; | 98 | R0 = R0 & R1; |
105 | 99 | ||
106 | /* Anomaly 05000125 */ | 100 | /* Disabling of CPLBs should be proceeded by a CSYNC */ |
107 | #ifdef ANOMALY_05000125 | 101 | CSYNC; |
108 | CLI R2; | ||
109 | SSYNC; | ||
110 | #endif | ||
111 | [p0] = R0; | 102 | [p0] = R0; |
112 | SSYNC; | 103 | SSYNC; |
113 | #ifdef ANOMALY_05000125 | ||
114 | STI R2; | ||
115 | #endif | ||
116 | 104 | ||
117 | /* in case of double faults, save a few things */ | 105 | /* in case of double faults, save a few things */ |
118 | p0.l = _init_retx_coreb; | 106 | p0.l = _init_retx_coreb; |