diff options
Diffstat (limited to 'include/asm-blackfin/mach-bf533/bf533.h')
-rw-r--r-- | include/asm-blackfin/mach-bf533/bf533.h | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/include/asm-blackfin/mach-bf533/bf533.h b/include/asm-blackfin/mach-bf533/bf533.h index cb0785768b35..12a416931991 100644 --- a/include/asm-blackfin/mach-bf533/bf533.h +++ b/include/asm-blackfin/mach-bf533/bf533.h | |||
@@ -158,58 +158,4 @@ | |||
158 | #define CPUID 0x0 | 158 | #define CPUID 0x0 |
159 | #endif | 159 | #endif |
160 | 160 | ||
161 | #if (CONFIG_MEM_SIZE % 4) | ||
162 | #error "SDRAM mem size must be multible of 4MB" | ||
163 | #endif | ||
164 | |||
165 | #define SDRAM_IGENERIC (CPLB_L1_CHBL | CPLB_USER_RD | CPLB_VALID | CPLB_PORTPRIO) | ||
166 | #define SDRAM_IKERNEL (SDRAM_IGENERIC | CPLB_LOCK) | ||
167 | #define L1_IMEMORY ( CPLB_USER_RD | CPLB_VALID | CPLB_LOCK) | ||
168 | #define SDRAM_INON_CHBL ( CPLB_USER_RD | CPLB_VALID) | ||
169 | |||
170 | /*Use the menuconfig cache policy here - CONFIG_BFIN_WT/CONFIG_BFIN_WB*/ | ||
171 | |||
172 | #define ANOMALY_05000158_WORKAROUND 0x200 | ||
173 | #ifdef CONFIG_BFIN_WB /*Write Back Policy */ | ||
174 | #define SDRAM_DGENERIC (CPLB_L1_CHBL | CPLB_DIRTY \ | ||
175 | | CPLB_SUPV_WR | CPLB_USER_WR | CPLB_USER_RD | CPLB_VALID | ANOMALY_05000158_WORKAROUND) | ||
176 | #else /*Write Through */ | ||
177 | #define SDRAM_DGENERIC (CPLB_L1_CHBL | CPLB_WT | CPLB_L1_AOW | CPLB_DIRTY \ | ||
178 | | CPLB_SUPV_WR | CPLB_USER_WR | CPLB_USER_RD | CPLB_VALID | ANOMALY_05000158_WORKAROUND) | ||
179 | #endif | ||
180 | |||
181 | #define L1_DMEMORY (CPLB_SUPV_WR | CPLB_USER_WR | CPLB_USER_RD | CPLB_VALID | ANOMALY_05000158_WORKAROUND | CPLB_LOCK | CPLB_DIRTY) | ||
182 | #define SDRAM_DNON_CHBL (CPLB_SUPV_WR | CPLB_USER_WR | CPLB_USER_RD | CPLB_VALID | ANOMALY_05000158_WORKAROUND | CPLB_DIRTY) | ||
183 | #define SDRAM_EBIU (CPLB_SUPV_WR | CPLB_USER_WR | CPLB_USER_RD | CPLB_VALID | ANOMALY_05000158_WORKAROUND | CPLB_DIRTY) | ||
184 | #define SDRAM_OOPS (CPLB_VALID | ANOMALY_05000158_WORKAROUND | CPLB_LOCK | CPLB_DIRTY) | ||
185 | |||
186 | #define SIZE_1K 0x00000400 /* 1K */ | ||
187 | #define SIZE_4K 0x00001000 /* 4K */ | ||
188 | #define SIZE_1M 0x00100000 /* 1M */ | ||
189 | #define SIZE_4M 0x00400000 /* 4M */ | ||
190 | |||
191 | #define MAX_CPLBS (16 * 2) | ||
192 | |||
193 | /* | ||
194 | * Number of required data CPLB switchtable entries | ||
195 | * MEMSIZE / 4 (we mostly install 4M page size CPLBs | ||
196 | * approx 16 for smaller 1MB page size CPLBs for allignment purposes | ||
197 | * 1 for L1 Data Memory | ||
198 | * 1 for CONFIG_DEBUG_HUNT_FOR_ZERO | ||
199 | * 1 for ASYNC Memory | ||
200 | */ | ||
201 | |||
202 | |||
203 | #define MAX_SWITCH_D_CPLBS (((CONFIG_MEM_SIZE / 4) + 16 + 1 + 1 + 1) * 2) | ||
204 | |||
205 | /* | ||
206 | * Number of required instruction CPLB switchtable entries | ||
207 | * MEMSIZE / 4 (we mostly install 4M page size CPLBs | ||
208 | * approx 12 for smaller 1MB page size CPLBs for allignment purposes | ||
209 | * 1 for L1 Instruction Memory | ||
210 | * 1 for CONFIG_DEBUG_HUNT_FOR_ZERO | ||
211 | */ | ||
212 | |||
213 | #define MAX_SWITCH_I_CPLBS (((CONFIG_MEM_SIZE / 4) + 12 + 1 + 1) * 2) | ||
214 | |||
215 | #endif /* __MACH_BF533_H__ */ | 161 | #endif /* __MACH_BF533_H__ */ |