diff options
author | Robin Getz <robin.getz@analog.com> | 2007-10-10 11:55:26 -0400 |
---|---|---|
committer | Bryan Wu <bryan.wu@analog.com> | 2007-10-10 11:55:26 -0400 |
commit | 3bebca2d20796dd3dc62c5d3e74148087c7ce5bd (patch) | |
tree | fdb5eb8eb774fa5e8df41ebbf0e0d2c82b9ff627 /include/asm-blackfin/mach-bf561 | |
parent | a298049180d2c56fc8ac1796b24973bf4f019cc7 (diff) |
Blackfin arch: to do some consolidation of common code and common name spaces
now all BLKFIN should be BFIN, should be no functional changes.
Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'include/asm-blackfin/mach-bf561')
-rw-r--r-- | include/asm-blackfin/mach-bf561/bf561.h | 91 | ||||
-rw-r--r-- | include/asm-blackfin/mach-bf561/mem_map.h | 24 |
2 files changed, 18 insertions, 97 deletions
diff --git a/include/asm-blackfin/mach-bf561/bf561.h b/include/asm-blackfin/mach-bf561/bf561.h index 53b650f3134..17e1d5dcef0 100644 --- a/include/asm-blackfin/mach-bf561/bf561.h +++ b/include/asm-blackfin/mach-bf561/bf561.h | |||
@@ -73,13 +73,13 @@ | |||
73 | */ | 73 | */ |
74 | 74 | ||
75 | 75 | ||
76 | #define BLKFIN_ISUBBANKS 4 | 76 | #define BFIN_ISUBBANKS 4 |
77 | #define BLKFIN_IWAYS 4 | 77 | #define BFIN_IWAYS 4 |
78 | #define BLKFIN_ILINES 32 | 78 | #define BFIN_ILINES 32 |
79 | 79 | ||
80 | #define BLKFIN_DSUBBANKS 4 | 80 | #define BFIN_DSUBBANKS 4 |
81 | #define BLKFIN_DWAYS 2 | 81 | #define BFIN_DWAYS 2 |
82 | #define BLKFIN_DLINES 64 | 82 | #define BFIN_DLINES 64 |
83 | 83 | ||
84 | #define WAY0_L 0x1 | 84 | #define WAY0_L 0x1 |
85 | #define WAY1_L 0x2 | 85 | #define WAY1_L 0x2 |
@@ -239,83 +239,4 @@ | |||
239 | #define CPUID 0x0 | 239 | #define CPUID 0x0 |
240 | #endif | 240 | #endif |
241 | 241 | ||
242 | #if (CONFIG_MEM_SIZE % 4) | ||
243 | #error "SDRAM memory size must be a multiple of 4MB!" | ||
244 | #endif | ||
245 | #define SDRAM_IGENERIC (CPLB_L1_CHBL | CPLB_USER_RD | CPLB_VALID | CPLB_PORTPRIO) | ||
246 | #define SDRAM_IKERNEL (SDRAM_IGENERIC | CPLB_LOCK) | ||
247 | #define L1_IMEMORY ( CPLB_USER_RD | CPLB_VALID | CPLB_LOCK) | ||
248 | #define SDRAM_INON_CHBL ( CPLB_USER_RD | CPLB_VALID) | ||
249 | |||
250 | /*Use the menuconfig cache policy here - CONFIG_BLKFIN_WT/CONFIG_BLKFIN_WB*/ | ||
251 | |||
252 | #define ANOMALY_05000158_WORKAROUND 0x200 | ||
253 | #ifdef CONFIG_BLKFIN_WB /*Write Back Policy */ | ||
254 | #define SDRAM_DGENERIC (CPLB_L1_CHBL | CPLB_DIRTY \ | ||
255 | | CPLB_SUPV_WR | CPLB_USER_WR | CPLB_USER_RD | CPLB_VALID | ANOMALY_05000158_WORKAROUND) | ||
256 | #else /*Write Through */ | ||
257 | #define SDRAM_DGENERIC (CPLB_L1_CHBL | CPLB_WT | CPLB_L1_AOW | CPLB_DIRTY \ | ||
258 | | CPLB_SUPV_WR | CPLB_USER_WR | CPLB_USER_RD | CPLB_VALID | ANOMALY_05000158_WORKAROUND) | ||
259 | #endif | ||
260 | |||
261 | |||
262 | #define L1_DMEMORY (CPLB_SUPV_WR | CPLB_USER_WR | CPLB_USER_RD | CPLB_VALID | ANOMALY_05000158_WORKAROUND | CPLB_LOCK | CPLB_DIRTY) | ||
263 | #define SDRAM_DNON_CHBL (CPLB_SUPV_WR | CPLB_USER_WR | CPLB_USER_RD | CPLB_VALID | ANOMALY_05000158_WORKAROUND | CPLB_DIRTY) | ||
264 | #define SDRAM_EBIU (CPLB_SUPV_WR | CPLB_USER_WR | CPLB_USER_RD | CPLB_VALID | ANOMALY_05000158_WORKAROUND | CPLB_DIRTY) | ||
265 | #define SDRAM_OOPS (CPLB_VALID | ANOMALY_05000158_WORKAROUND | CPLB_LOCK | CPLB_DIRTY) | ||
266 | |||
267 | #define L2_MEMORY (CPLB_SUPV_WR | CPLB_USER_WR | CPLB_USER_RD | CPLB_VALID | ANOMALY_05000158_WORKAROUND | CPLB_DIRTY) | ||
268 | |||
269 | #define SIZE_1K 0x00000400 /* 1K */ | ||
270 | #define SIZE_4K 0x00001000 /* 4K */ | ||
271 | #define SIZE_1M 0x00100000 /* 1M */ | ||
272 | #define SIZE_4M 0x00400000 /* 4M */ | ||
273 | |||
274 | #define MAX_CPLBS (16 * 2) | ||
275 | |||
276 | /* | ||
277 | * Number of required data CPLB switchtable entries | ||
278 | * MEMSIZE / 4 (we mostly install 4M page size CPLBs | ||
279 | * approx 16 for smaller 1MB page size CPLBs for allignment purposes | ||
280 | * 1 for L1 Data Memory | ||
281 | * 1 for L2 Data Memory | ||
282 | * 1 for CONFIG_DEBUG_HUNT_FOR_ZERO | ||
283 | * 64 for ASYNC Memory | ||
284 | */ | ||
285 | |||
286 | |||
287 | #define MAX_SWITCH_D_CPLBS (((CONFIG_MEM_SIZE / 4) + 16 + 1 + 1 + 1 + 64) * 2) | ||
288 | |||
289 | /* | ||
290 | * Number of required instruction CPLB switchtable entries | ||
291 | * MEMSIZE / 4 (we mostly install 4M page size CPLBs | ||
292 | * approx 12 for smaller 1MB page size CPLBs for allignment purposes | ||
293 | * 1 for L1 Instruction Memory | ||
294 | * 1 for L2 Instruction Memory | ||
295 | * 1 for CONFIG_DEBUG_HUNT_FOR_ZERO | ||
296 | */ | ||
297 | |||
298 | #define MAX_SWITCH_I_CPLBS (((CONFIG_MEM_SIZE / 4) + 12 + 1 + 1 + 1) * 2) | ||
299 | |||
300 | #if 0 /* comment by mhfan */ | ||
301 | /* Event Vector Table Address */ | ||
302 | #define EVT_EMULATION_ADDR 0xffe02000 | ||
303 | #define EVT_RESET_ADDR 0xffe02004 | ||
304 | #define EVT_NMI_ADDR 0xffe02008 | ||
305 | #define EVT_EXCEPTION_ADDR 0xffe0200c | ||
306 | #define EVT_GLOBAL_INT_ENB_ADDR 0xffe02010 | ||
307 | #define EVT_HARDWARE_ERROR_ADDR 0xffe02014 | ||
308 | #define EVT_TIMER_ADDR 0xffe02018 | ||
309 | #define EVT_IVG7_ADDR 0xffe0201c | ||
310 | #define EVT_IVG8_ADDR 0xffe02020 | ||
311 | #define EVT_IVG9_ADDR 0xffe02024 | ||
312 | #define EVT_IVG10_ADDR 0xffe02028 | ||
313 | #define EVT_IVG11_ADDR 0xffe0202c | ||
314 | #define EVT_IVG12_ADDR 0xffe02030 | ||
315 | #define EVT_IVG13_ADDR 0xffe02034 | ||
316 | #define EVT_IVG14_ADDR 0xffe02038 | ||
317 | #define EVT_IVG15_ADDR 0xffe0203c | ||
318 | #define EVT_OVERRIDE_ADDR 0xffe02100 | ||
319 | #endif /* comment by mhfan */ | ||
320 | |||
321 | #endif /* __MACH_BF561_H__ */ | 242 | #endif /* __MACH_BF561_H__ */ |
diff --git a/include/asm-blackfin/mach-bf561/mem_map.h b/include/asm-blackfin/mach-bf561/mem_map.h index ebac9a8d838..f7ac09cf2c3 100644 --- a/include/asm-blackfin/mach-bf561/mem_map.h +++ b/include/asm-blackfin/mach-bf561/mem_map.h | |||
@@ -21,10 +21,10 @@ | |||
21 | 21 | ||
22 | /* Level 1 Memory */ | 22 | /* Level 1 Memory */ |
23 | 23 | ||
24 | #ifdef CONFIG_BLKFIN_CACHE | 24 | #ifdef CONFIG_BFIN_ICACHE |
25 | #define BLKFIN_ICACHESIZE (16*1024) | 25 | #define BFIN_ICACHESIZE (16*1024) |
26 | #else | 26 | #else |
27 | #define BLKFIN_ICACHESIZE (0*1024) | 27 | #define BFIN_ICACHESIZE (0*1024) |
28 | #endif | 28 | #endif |
29 | 29 | ||
30 | /* Memory Map for ADSP-BF561 processors */ | 30 | /* Memory Map for ADSP-BF561 processors */ |
@@ -36,29 +36,29 @@ | |||
36 | 36 | ||
37 | #define L1_CODE_LENGTH 0x4000 | 37 | #define L1_CODE_LENGTH 0x4000 |
38 | 38 | ||
39 | #ifdef CONFIG_BLKFIN_DCACHE | 39 | #ifdef CONFIG_BFIN_DCACHE |
40 | 40 | ||
41 | #ifdef CONFIG_BLKFIN_DCACHE_BANKA | 41 | #ifdef CONFIG_BFIN_DCACHE_BANKA |
42 | #define DMEM_CNTR (ACACHE_BSRAM | ENDCPLB | PORT_PREF0) | 42 | #define DMEM_CNTR (ACACHE_BSRAM | ENDCPLB | PORT_PREF0) |
43 | #define L1_DATA_A_LENGTH (0x8000 - 0x4000) | 43 | #define L1_DATA_A_LENGTH (0x8000 - 0x4000) |
44 | #define L1_DATA_B_LENGTH 0x8000 | 44 | #define L1_DATA_B_LENGTH 0x8000 |
45 | #define BLKFIN_DCACHESIZE (16*1024) | 45 | #define BFIN_DCACHESIZE (16*1024) |
46 | #define BLKFIN_DSUPBANKS 1 | 46 | #define BFIN_DSUPBANKS 1 |
47 | #else | 47 | #else |
48 | #define DMEM_CNTR (ACACHE_BCACHE | ENDCPLB | PORT_PREF0) | 48 | #define DMEM_CNTR (ACACHE_BCACHE | ENDCPLB | PORT_PREF0) |
49 | #define L1_DATA_A_LENGTH (0x8000 - 0x4000) | 49 | #define L1_DATA_A_LENGTH (0x8000 - 0x4000) |
50 | #define L1_DATA_B_LENGTH (0x8000 - 0x4000) | 50 | #define L1_DATA_B_LENGTH (0x8000 - 0x4000) |
51 | #define BLKFIN_DCACHESIZE (32*1024) | 51 | #define BFIN_DCACHESIZE (32*1024) |
52 | #define BLKFIN_DSUPBANKS 2 | 52 | #define BFIN_DSUPBANKS 2 |
53 | #endif | 53 | #endif |
54 | 54 | ||
55 | #else | 55 | #else |
56 | #define DMEM_CNTR (ASRAM_BSRAM | ENDCPLB | PORT_PREF0) | 56 | #define DMEM_CNTR (ASRAM_BSRAM | ENDCPLB | PORT_PREF0) |
57 | #define L1_DATA_A_LENGTH 0x8000 | 57 | #define L1_DATA_A_LENGTH 0x8000 |
58 | #define L1_DATA_B_LENGTH 0x8000 | 58 | #define L1_DATA_B_LENGTH 0x8000 |
59 | #define BLKFIN_DCACHESIZE (0*1024) | 59 | #define BFIN_DCACHESIZE (0*1024) |
60 | #define BLKFIN_DSUPBANKS 0 | 60 | #define BFIN_DSUPBANKS 0 |
61 | #endif /*CONFIG_BLKFIN_DCACHE*/ | 61 | #endif /*CONFIG_BFIN_DCACHE*/ |
62 | #endif | 62 | #endif |
63 | 63 | ||
64 | /* Level 2 Memory */ | 64 | /* Level 2 Memory */ |