aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-blackfin/mach-bf561/bf561.h
diff options
context:
space:
mode:
authorRobin Getz <robin.getz@analog.com>2007-10-10 11:55:26 -0400
committerBryan Wu <bryan.wu@analog.com>2007-10-10 11:55:26 -0400
commit3bebca2d20796dd3dc62c5d3e74148087c7ce5bd (patch)
treefdb5eb8eb774fa5e8df41ebbf0e0d2c82b9ff627 /include/asm-blackfin/mach-bf561/bf561.h
parenta298049180d2c56fc8ac1796b24973bf4f019cc7 (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/bf561.h')
-rw-r--r--include/asm-blackfin/mach-bf561/bf561.h91
1 files changed, 6 insertions, 85 deletions
diff --git a/include/asm-blackfin/mach-bf561/bf561.h b/include/asm-blackfin/mach-bf561/bf561.h
index 53b650f31342..17e1d5dcef02 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__ */