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-bf548/bf548.h | |
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-bf548/bf548.h')
-rw-r--r-- | include/asm-blackfin/mach-bf548/bf548.h | 67 |
1 files changed, 6 insertions, 61 deletions
diff --git a/include/asm-blackfin/mach-bf548/bf548.h b/include/asm-blackfin/mach-bf548/bf548.h index 50306a846628..7e6d349beb08 100644 --- a/include/asm-blackfin/mach-bf548/bf548.h +++ b/include/asm-blackfin/mach-bf548/bf548.h | |||
@@ -52,12 +52,12 @@ | |||
52 | /***************************/ | 52 | /***************************/ |
53 | 53 | ||
54 | 54 | ||
55 | #define BLKFIN_DSUBBANKS 4 | 55 | #define BFIN_DSUBBANKS 4 |
56 | #define BLKFIN_DWAYS 2 | 56 | #define BFIN_DWAYS 2 |
57 | #define BLKFIN_DLINES 64 | 57 | #define BFIN_DLINES 64 |
58 | #define BLKFIN_ISUBBANKS 4 | 58 | #define BFIN_ISUBBANKS 4 |
59 | #define BLKFIN_IWAYS 4 | 59 | #define BFIN_IWAYS 4 |
60 | #define BLKFIN_ILINES 32 | 60 | #define BFIN_ILINES 32 |
61 | 61 | ||
62 | #define WAY0_L 0x1 | 62 | #define WAY0_L 0x1 |
63 | #define WAY1_L 0x2 | 63 | #define WAY1_L 0x2 |
@@ -126,59 +126,4 @@ | |||
126 | #define CPUID 0x0 | 126 | #define CPUID 0x0 |
127 | #endif | 127 | #endif |
128 | 128 | ||
129 | #if (CONFIG_MEM_SIZE % 4) | ||
130 | #error "SDRAM mem size must be multible of 4MB" | ||
131 | #endif | ||
132 | |||
133 | #define SDRAM_IGENERIC (CPLB_L1_CHBL | CPLB_USER_RD | CPLB_VALID | CPLB_PORTPRIO) | ||
134 | #define SDRAM_IKERNEL (SDRAM_IGENERIC | CPLB_LOCK) | ||
135 | #define L1_IMEMORY ( CPLB_USER_RD | CPLB_VALID | CPLB_LOCK) | ||
136 | #define SDRAM_INON_CHBL ( CPLB_USER_RD | CPLB_VALID) | ||
137 | |||
138 | /*Use the menuconfig cache policy here - CONFIG_BLKFIN_WT/CONFIG_BLKFIN_WB*/ | ||
139 | |||
140 | #define ANOMALY_05000158_WORKAROUND 0x200 | ||
141 | #ifdef CONFIG_BLKFIN_WB /*Write Back Policy */ | ||
142 | #define SDRAM_DGENERIC (CPLB_L1_CHBL | CPLB_DIRTY \ | ||
143 | | CPLB_SUPV_WR | CPLB_USER_WR | CPLB_USER_RD | CPLB_VALID | ANOMALY_05000158_WORKAROUND) | ||
144 | #else /*Write Through */ | ||
145 | #define SDRAM_DGENERIC (CPLB_L1_CHBL | CPLB_WT | CPLB_L1_AOW \ | ||
146 | | CPLB_SUPV_WR | CPLB_USER_WR | CPLB_USER_RD | CPLB_VALID | ANOMALY_05000158_WORKAROUND | CPLB_DIRTY ) | ||
147 | #endif | ||
148 | |||
149 | |||
150 | #define L1_DMEMORY (CPLB_SUPV_WR | CPLB_USER_WR | CPLB_USER_RD | CPLB_VALID | ANOMALY_05000158_WORKAROUND | CPLB_LOCK | CPLB_DIRTY ) | ||
151 | #define SDRAM_DNON_CHBL (CPLB_SUPV_WR | CPLB_USER_WR | CPLB_USER_RD | CPLB_VALID | ANOMALY_05000158_WORKAROUND | CPLB_DIRTY ) | ||
152 | #define SDRAM_EBIU (CPLB_SUPV_WR | CPLB_USER_WR | CPLB_USER_RD | CPLB_VALID | ANOMALY_05000158_WORKAROUND | CPLB_DIRTY ) | ||
153 | #define SDRAM_OOPS (CPLB_VALID | ANOMALY_05000158_WORKAROUND | CPLB_LOCK | CPLB_DIRTY ) | ||
154 | |||
155 | #define SIZE_1K 0x00000400 /* 1K */ | ||
156 | #define SIZE_4K 0x00001000 /* 4K */ | ||
157 | #define SIZE_1M 0x00100000 /* 1M */ | ||
158 | #define SIZE_4M 0x00400000 /* 4M */ | ||
159 | |||
160 | #define MAX_CPLBS (16 * 2) | ||
161 | |||
162 | /* | ||
163 | * Number of required data CPLB switchtable entries | ||
164 | * MEMSIZE / 4 (we mostly install 4M page size CPLBs | ||
165 | * approx 16 for smaller 1MB page size CPLBs for allignment purposes | ||
166 | * 1 for L1 Data Memory | ||
167 | * 1 for CONFIG_DEBUG_HUNT_FOR_ZERO | ||
168 | * 1 for ASYNC Memory | ||
169 | */ | ||
170 | |||
171 | |||
172 | #define MAX_SWITCH_D_CPLBS (((CONFIG_MEM_SIZE / 4) + 16 + 1 + 1 + 1) * 2) | ||
173 | |||
174 | /* | ||
175 | * Number of required instruction CPLB switchtable entries | ||
176 | * MEMSIZE / 4 (we mostly install 4M page size CPLBs | ||
177 | * approx 12 for smaller 1MB page size CPLBs for allignment purposes | ||
178 | * 1 for L1 Instruction Memory | ||
179 | * 1 for CONFIG_DEBUG_HUNT_FOR_ZERO | ||
180 | */ | ||
181 | |||
182 | #define MAX_SWITCH_I_CPLBS (((CONFIG_MEM_SIZE / 4) + 12 + 1 + 1) * 2) | ||
183 | |||
184 | #endif /* __MACH_BF48_H__ */ | 129 | #endif /* __MACH_BF48_H__ */ |