[BLUETOOTH]: Fix bugs in previous conn add/del workqueue changes.
[linux-2.6/linux-2.6-openrd.git] / include / asm-blackfin / mach-bf561 / defBF561.h
blobc3c0eb13c819e43cd843bfdedb6bdbf039b57208
2 /*
3 * File: include/asm-blackfin/mach-bf561/defBF561.h
4 * Based on:
5 * Author:
7 * Created:
8 * Description:
9 * SYSTEM MMR REGISTER AND MEMORY MAP FOR ADSP-BF561
10 * Rev:
12 * Modified:
14 * Bugs: Enter bugs at http://blackfin.uclinux.org/
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 2, or (at your option)
19 * any later version.
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
26 * You should have received a copy of the GNU General Public License
27 * along with this program; see the file COPYING.
28 * If not, write to the Free Software Foundation,
29 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32 #ifndef _DEF_BF561_H
33 #define _DEF_BF561_H
35 #if !defined(__ADSPBF561__)
36 #warning defBF561.h should only be included for BF561 chip.
37 #endif
39 /* include all Core registers and bit definitions */
40 #include <asm/mach-common/def_LPBlackfin.h>
42 /*********************************************************************************** */
43 /* System MMR Register Map */
44 /*********************************************************************************** */
46 /* Clock and System Control (0xFFC00000 - 0xFFC000FF) */
48 #define PLL_CTL 0xFFC00000 /* PLL Control register (16-bit) */
49 #define PLL_DIV 0xFFC00004 /* PLL Divide Register (16-bit) */
50 #define VR_CTL 0xFFC00008 /* Voltage Regulator Control Register (16-bit) */
51 #define PLL_STAT 0xFFC0000C /* PLL Status register (16-bit) */
52 #define PLL_LOCKCNT 0xFFC00010 /* PLL Lock Count register (16-bit) */
53 #define CHIPID 0xFFC00014 /* Chip ID Register */
55 /* For MMR's that are reserved on Core B, set up defines to better integrate with other ports */
56 #define SWRST SICA_SWRST
57 #define SYSCR SICA_SYSCR
58 #define DOUBLE_FAULT (DOUBLE_FAULT_B|DOUBLE_FAULT_A)
59 #define RESET_DOUBLE (SWRST_DBL_FAULT_B|SWRST_DBL_FAULT_A)
60 #define RESET_WDOG (SWRST_WDT_B|SWRST_WDT_A)
61 #define RESET_SOFTWARE (SWRST_OCCURRED)
63 /* System Reset and Interrupt Controller registers for core A (0xFFC0 0100-0xFFC0 01FF) */
64 #define SICA_SWRST 0xFFC00100 /* Software Reset register */
65 #define SICA_SYSCR 0xFFC00104 /* System Reset Configuration register */
66 #define SICA_RVECT 0xFFC00108 /* SIC Reset Vector Address Register */
67 #define SICA_IMASK 0xFFC0010C /* SIC Interrupt Mask register 0 - hack to fix old tests */
68 #define SICA_IMASK0 0xFFC0010C /* SIC Interrupt Mask register 0 */
69 #define SICA_IMASK1 0xFFC00110 /* SIC Interrupt Mask register 1 */
70 #define SICA_IAR0 0xFFC00124 /* SIC Interrupt Assignment Register 0 */
71 #define SICA_IAR1 0xFFC00128 /* SIC Interrupt Assignment Register 1 */
72 #define SICA_IAR2 0xFFC0012C /* SIC Interrupt Assignment Register 2 */
73 #define SICA_IAR3 0xFFC00130 /* SIC Interrupt Assignment Register 3 */
74 #define SICA_IAR4 0xFFC00134 /* SIC Interrupt Assignment Register 4 */
75 #define SICA_IAR5 0xFFC00138 /* SIC Interrupt Assignment Register 5 */
76 #define SICA_IAR6 0xFFC0013C /* SIC Interrupt Assignment Register 6 */
77 #define SICA_IAR7 0xFFC00140 /* SIC Interrupt Assignment Register 7 */
78 #define SICA_ISR0 0xFFC00114 /* SIC Interrupt Status register 0 */
79 #define SICA_ISR1 0xFFC00118 /* SIC Interrupt Status register 1 */
80 #define SICA_IWR0 0xFFC0011C /* SIC Interrupt Wakeup-Enable register 0 */
81 #define SICA_IWR1 0xFFC00120 /* SIC Interrupt Wakeup-Enable register 1 */
83 /* System Reset and Interrupt Controller registers for Core B (0xFFC0 1100-0xFFC0 11FF) */
84 #define SICB_SWRST 0xFFC01100 /* reserved */
85 #define SICB_SYSCR 0xFFC01104 /* reserved */
86 #define SICB_RVECT 0xFFC01108 /* SIC Reset Vector Address Register */
87 #define SICB_IMASK0 0xFFC0110C /* SIC Interrupt Mask register 0 */
88 #define SICB_IMASK1 0xFFC01110 /* SIC Interrupt Mask register 1 */
89 #define SICB_IAR0 0xFFC01124 /* SIC Interrupt Assignment Register 0 */
90 #define SICB_IAR1 0xFFC01128 /* SIC Interrupt Assignment Register 1 */
91 #define SICB_IAR2 0xFFC0112C /* SIC Interrupt Assignment Register 2 */
92 #define SICB_IAR3 0xFFC01130 /* SIC Interrupt Assignment Register 3 */
93 #define SICB_IAR4 0xFFC01134 /* SIC Interrupt Assignment Register 4 */
94 #define SICB_IAR5 0xFFC01138 /* SIC Interrupt Assignment Register 5 */
95 #define SICB_IAR6 0xFFC0113C /* SIC Interrupt Assignment Register 6 */
96 #define SICB_IAR7 0xFFC01140 /* SIC Interrupt Assignment Register 7 */
97 #define SICB_ISR0 0xFFC01114 /* SIC Interrupt Status register 0 */
98 #define SICB_ISR1 0xFFC01118 /* SIC Interrupt Status register 1 */
99 #define SICB_IWR0 0xFFC0111C /* SIC Interrupt Wakeup-Enable register 0 */
100 #define SICB_IWR1 0xFFC01120 /* SIC Interrupt Wakeup-Enable register 1 */
102 /* Watchdog Timer registers for Core A (0xFFC0 0200-0xFFC0 02FF) */
103 #define WDOGA_CTL 0xFFC00200 /* Watchdog Control register */
104 #define WDOGA_CNT 0xFFC00204 /* Watchdog Count register */
105 #define WDOGA_STAT 0xFFC00208 /* Watchdog Status register */
107 /* Watchdog Timer registers for Core B (0xFFC0 1200-0xFFC0 12FF) */
108 #define WDOGB_CTL 0xFFC01200 /* Watchdog Control register */
109 #define WDOGB_CNT 0xFFC01204 /* Watchdog Count register */
110 #define WDOGB_STAT 0xFFC01208 /* Watchdog Status register */
112 /* UART Controller (0xFFC00400 - 0xFFC004FF) */
113 #define UART_THR 0xFFC00400 /* Transmit Holding register */
114 #define UART_RBR 0xFFC00400 /* Receive Buffer register */
115 #define UART_DLL 0xFFC00400 /* Divisor Latch (Low-Byte) */
116 #define UART_IER 0xFFC00404 /* Interrupt Enable Register */
117 #define UART_DLH 0xFFC00404 /* Divisor Latch (High-Byte) */
118 #define UART_IIR 0xFFC00408 /* Interrupt Identification Register */
119 #define UART_LCR 0xFFC0040C /* Line Control Register */
120 #define UART_MCR 0xFFC00410 /* Modem Control Register */
121 #define UART_LSR 0xFFC00414 /* Line Status Register */
122 #define UART_MSR 0xFFC00418 /* Modem Status Register */
123 #define UART_SCR 0xFFC0041C /* SCR Scratch Register */
124 #define UART_GCTL 0xFFC00424 /* Global Control Register */
126 /* SPI Controller (0xFFC00500 - 0xFFC005FF) */
127 #define SPI0_REGBASE 0xFFC00500
128 #define SPI_CTL 0xFFC00500 /* SPI Control Register */
129 #define SPI_FLG 0xFFC00504 /* SPI Flag register */
130 #define SPI_STAT 0xFFC00508 /* SPI Status register */
131 #define SPI_TDBR 0xFFC0050C /* SPI Transmit Data Buffer Register */
132 #define SPI_RDBR 0xFFC00510 /* SPI Receive Data Buffer Register */
133 #define SPI_BAUD 0xFFC00514 /* SPI Baud rate Register */
134 #define SPI_SHADOW 0xFFC00518 /* SPI_RDBR Shadow Register */
136 /* Timer 0-7 registers (0xFFC0 0600-0xFFC0 06FF) */
137 #define TIMER0_CONFIG 0xFFC00600 /* Timer0 Configuration register */
138 #define TIMER0_COUNTER 0xFFC00604 /* Timer0 Counter register */
139 #define TIMER0_PERIOD 0xFFC00608 /* Timer0 Period register */
140 #define TIMER0_WIDTH 0xFFC0060C /* Timer0 Width register */
142 #define TIMER1_CONFIG 0xFFC00610 /* Timer1 Configuration register */
143 #define TIMER1_COUNTER 0xFFC00614 /* Timer1 Counter register */
144 #define TIMER1_PERIOD 0xFFC00618 /* Timer1 Period register */
145 #define TIMER1_WIDTH 0xFFC0061C /* Timer1 Width register */
147 #define TIMER2_CONFIG 0xFFC00620 /* Timer2 Configuration register */
148 #define TIMER2_COUNTER 0xFFC00624 /* Timer2 Counter register */
149 #define TIMER2_PERIOD 0xFFC00628 /* Timer2 Period register */
150 #define TIMER2_WIDTH 0xFFC0062C /* Timer2 Width register */
152 #define TIMER3_CONFIG 0xFFC00630 /* Timer3 Configuration register */
153 #define TIMER3_COUNTER 0xFFC00634 /* Timer3 Counter register */
154 #define TIMER3_PERIOD 0xFFC00638 /* Timer3 Period register */
155 #define TIMER3_WIDTH 0xFFC0063C /* Timer3 Width register */
157 #define TIMER4_CONFIG 0xFFC00640 /* Timer4 Configuration register */
158 #define TIMER4_COUNTER 0xFFC00644 /* Timer4 Counter register */
159 #define TIMER4_PERIOD 0xFFC00648 /* Timer4 Period register */
160 #define TIMER4_WIDTH 0xFFC0064C /* Timer4 Width register */
162 #define TIMER5_CONFIG 0xFFC00650 /* Timer5 Configuration register */
163 #define TIMER5_COUNTER 0xFFC00654 /* Timer5 Counter register */
164 #define TIMER5_PERIOD 0xFFC00658 /* Timer5 Period register */
165 #define TIMER5_WIDTH 0xFFC0065C /* Timer5 Width register */
167 #define TIMER6_CONFIG 0xFFC00660 /* Timer6 Configuration register */
168 #define TIMER6_COUNTER 0xFFC00664 /* Timer6 Counter register */
169 #define TIMER6_PERIOD 0xFFC00668 /* Timer6 Period register */
170 #define TIMER6_WIDTH 0xFFC0066C /* Timer6 Width register */
172 #define TIMER7_CONFIG 0xFFC00670 /* Timer7 Configuration register */
173 #define TIMER7_COUNTER 0xFFC00674 /* Timer7 Counter register */
174 #define TIMER7_PERIOD 0xFFC00678 /* Timer7 Period register */
175 #define TIMER7_WIDTH 0xFFC0067C /* Timer7 Width register */
177 #define TMRS8_ENABLE 0xFFC00680 /* Timer Enable Register */
178 #define TMRS8_DISABLE 0xFFC00684 /* Timer Disable register */
179 #define TMRS8_STATUS 0xFFC00688 /* Timer Status register */
181 /* Timer registers 8-11 (0xFFC0 1600-0xFFC0 16FF) */
182 #define TIMER8_CONFIG 0xFFC01600 /* Timer8 Configuration register */
183 #define TIMER8_COUNTER 0xFFC01604 /* Timer8 Counter register */
184 #define TIMER8_PERIOD 0xFFC01608 /* Timer8 Period register */
185 #define TIMER8_WIDTH 0xFFC0160C /* Timer8 Width register */
187 #define TIMER9_CONFIG 0xFFC01610 /* Timer9 Configuration register */
188 #define TIMER9_COUNTER 0xFFC01614 /* Timer9 Counter register */
189 #define TIMER9_PERIOD 0xFFC01618 /* Timer9 Period register */
190 #define TIMER9_WIDTH 0xFFC0161C /* Timer9 Width register */
192 #define TIMER10_CONFIG 0xFFC01620 /* Timer10 Configuration register */
193 #define TIMER10_COUNTER 0xFFC01624 /* Timer10 Counter register */
194 #define TIMER10_PERIOD 0xFFC01628 /* Timer10 Period register */
195 #define TIMER10_WIDTH 0xFFC0162C /* Timer10 Width register */
197 #define TIMER11_CONFIG 0xFFC01630 /* Timer11 Configuration register */
198 #define TIMER11_COUNTER 0xFFC01634 /* Timer11 Counter register */
199 #define TIMER11_PERIOD 0xFFC01638 /* Timer11 Period register */
200 #define TIMER11_WIDTH 0xFFC0163C /* Timer11 Width register */
202 #define TMRS4_ENABLE 0xFFC01640 /* Timer Enable Register */
203 #define TMRS4_DISABLE 0xFFC01644 /* Timer Disable register */
204 #define TMRS4_STATUS 0xFFC01648 /* Timer Status register */
206 /* Programmable Flag 0 registers (0xFFC0 0700-0xFFC0 07FF) */
207 #define FIO0_FLAG_D 0xFFC00700 /* Flag Data register */
208 #define FIO0_FLAG_C 0xFFC00704 /* Flag Clear register */
209 #define FIO0_FLAG_S 0xFFC00708 /* Flag Set register */
210 #define FIO0_FLAG_T 0xFFC0070C /* Flag Toggle register */
211 #define FIO0_MASKA_D 0xFFC00710 /* Flag Mask Interrupt A Data register */
212 #define FIO0_MASKA_C 0xFFC00714 /* Flag Mask Interrupt A Clear register */
213 #define FIO0_MASKA_S 0xFFC00718 /* Flag Mask Interrupt A Set register */
214 #define FIO0_MASKA_T 0xFFC0071C /* Flag Mask Interrupt A Toggle register */
215 #define FIO0_MASKB_D 0xFFC00720 /* Flag Mask Interrupt B Data register */
216 #define FIO0_MASKB_C 0xFFC00724 /* Flag Mask Interrupt B Clear register */
217 #define FIO0_MASKB_S 0xFFC00728 /* Flag Mask Interrupt B Set register */
218 #define FIO0_MASKB_T 0xFFC0072C /* Flag Mask Interrupt B Toggle register */
219 #define FIO0_DIR 0xFFC00730 /* Flag Direction register */
220 #define FIO0_POLAR 0xFFC00734 /* Flag Polarity register */
221 #define FIO0_EDGE 0xFFC00738 /* Flag Interrupt Sensitivity register */
222 #define FIO0_BOTH 0xFFC0073C /* Flag Set on Both Edges register */
223 #define FIO0_INEN 0xFFC00740 /* Flag Input Enable register */
225 /* Programmable Flag 1 registers (0xFFC0 1500-0xFFC0 15FF) */
226 #define FIO1_FLAG_D 0xFFC01500 /* Flag Data register (mask used to directly */
227 #define FIO1_FLAG_C 0xFFC01504 /* Flag Clear register */
228 #define FIO1_FLAG_S 0xFFC01508 /* Flag Set register */
229 #define FIO1_FLAG_T 0xFFC0150C /* Flag Toggle register (mask used to */
230 #define FIO1_MASKA_D 0xFFC01510 /* Flag Mask Interrupt A Data register */
231 #define FIO1_MASKA_C 0xFFC01514 /* Flag Mask Interrupt A Clear register */
232 #define FIO1_MASKA_S 0xFFC01518 /* Flag Mask Interrupt A Set register */
233 #define FIO1_MASKA_T 0xFFC0151C /* Flag Mask Interrupt A Toggle register */
234 #define FIO1_MASKB_D 0xFFC01520 /* Flag Mask Interrupt B Data register */
235 #define FIO1_MASKB_C 0xFFC01524 /* Flag Mask Interrupt B Clear register */
236 #define FIO1_MASKB_S 0xFFC01528 /* Flag Mask Interrupt B Set register */
237 #define FIO1_MASKB_T 0xFFC0152C /* Flag Mask Interrupt B Toggle register */
238 #define FIO1_DIR 0xFFC01530 /* Flag Direction register */
239 #define FIO1_POLAR 0xFFC01534 /* Flag Polarity register */
240 #define FIO1_EDGE 0xFFC01538 /* Flag Interrupt Sensitivity register */
241 #define FIO1_BOTH 0xFFC0153C /* Flag Set on Both Edges register */
242 #define FIO1_INEN 0xFFC01540 /* Flag Input Enable register */
244 /* Programmable Flag registers (0xFFC0 1700-0xFFC0 17FF) */
245 #define FIO2_FLAG_D 0xFFC01700 /* Flag Data register (mask used to directly */
246 #define FIO2_FLAG_C 0xFFC01704 /* Flag Clear register */
247 #define FIO2_FLAG_S 0xFFC01708 /* Flag Set register */
248 #define FIO2_FLAG_T 0xFFC0170C /* Flag Toggle register (mask used to */
249 #define FIO2_MASKA_D 0xFFC01710 /* Flag Mask Interrupt A Data register */
250 #define FIO2_MASKA_C 0xFFC01714 /* Flag Mask Interrupt A Clear register */
251 #define FIO2_MASKA_S 0xFFC01718 /* Flag Mask Interrupt A Set register */
252 #define FIO2_MASKA_T 0xFFC0171C /* Flag Mask Interrupt A Toggle register */
253 #define FIO2_MASKB_D 0xFFC01720 /* Flag Mask Interrupt B Data register */
254 #define FIO2_MASKB_C 0xFFC01724 /* Flag Mask Interrupt B Clear register */
255 #define FIO2_MASKB_S 0xFFC01728 /* Flag Mask Interrupt B Set register */
256 #define FIO2_MASKB_T 0xFFC0172C /* Flag Mask Interrupt B Toggle register */
257 #define FIO2_DIR 0xFFC01730 /* Flag Direction register */
258 #define FIO2_POLAR 0xFFC01734 /* Flag Polarity register */
259 #define FIO2_EDGE 0xFFC01738 /* Flag Interrupt Sensitivity register */
260 #define FIO2_BOTH 0xFFC0173C /* Flag Set on Both Edges register */
261 #define FIO2_INEN 0xFFC01740 /* Flag Input Enable register */
263 /* SPORT0 Controller (0xFFC00800 - 0xFFC008FF) */
264 #define SPORT0_TCR1 0xFFC00800 /* SPORT0 Transmit Configuration 1 Register */
265 #define SPORT0_TCR2 0xFFC00804 /* SPORT0 Transmit Configuration 2 Register */
266 #define SPORT0_TCLKDIV 0xFFC00808 /* SPORT0 Transmit Clock Divider */
267 #define SPORT0_TFSDIV 0xFFC0080C /* SPORT0 Transmit Frame Sync Divider */
268 #define SPORT0_TX 0xFFC00810 /* SPORT0 TX Data Register */
269 #define SPORT0_RX 0xFFC00818 /* SPORT0 RX Data Register */
270 #define SPORT0_RCR1 0xFFC00820 /* SPORT0 Transmit Configuration 1 Register */
271 #define SPORT0_RCR2 0xFFC00824 /* SPORT0 Transmit Configuration 2 Register */
272 #define SPORT0_RCLKDIV 0xFFC00828 /* SPORT0 Receive Clock Divider */
273 #define SPORT0_RFSDIV 0xFFC0082C /* SPORT0 Receive Frame Sync Divider */
274 #define SPORT0_STAT 0xFFC00830 /* SPORT0 Status Register */
275 #define SPORT0_CHNL 0xFFC00834 /* SPORT0 Current Channel Register */
276 #define SPORT0_MCMC1 0xFFC00838 /* SPORT0 Multi-Channel Configuration Register 1 */
277 #define SPORT0_MCMC2 0xFFC0083C /* SPORT0 Multi-Channel Configuration Register 2 */
278 #define SPORT0_MTCS0 0xFFC00840 /* SPORT0 Multi-Channel Transmit Select Register 0 */
279 #define SPORT0_MTCS1 0xFFC00844 /* SPORT0 Multi-Channel Transmit Select Register 1 */
280 #define SPORT0_MTCS2 0xFFC00848 /* SPORT0 Multi-Channel Transmit Select Register 2 */
281 #define SPORT0_MTCS3 0xFFC0084C /* SPORT0 Multi-Channel Transmit Select Register 3 */
282 #define SPORT0_MRCS0 0xFFC00850 /* SPORT0 Multi-Channel Receive Select Register 0 */
283 #define SPORT0_MRCS1 0xFFC00854 /* SPORT0 Multi-Channel Receive Select Register 1 */
284 #define SPORT0_MRCS2 0xFFC00858 /* SPORT0 Multi-Channel Receive Select Register 2 */
285 #define SPORT0_MRCS3 0xFFC0085C /* SPORT0 Multi-Channel Receive Select Register 3 */
287 /* SPORT1 Controller (0xFFC00900 - 0xFFC009FF) */
288 #define SPORT1_TCR1 0xFFC00900 /* SPORT1 Transmit Configuration 1 Register */
289 #define SPORT1_TCR2 0xFFC00904 /* SPORT1 Transmit Configuration 2 Register */
290 #define SPORT1_TCLKDIV 0xFFC00908 /* SPORT1 Transmit Clock Divider */
291 #define SPORT1_TFSDIV 0xFFC0090C /* SPORT1 Transmit Frame Sync Divider */
292 #define SPORT1_TX 0xFFC00910 /* SPORT1 TX Data Register */
293 #define SPORT1_RX 0xFFC00918 /* SPORT1 RX Data Register */
294 #define SPORT1_RCR1 0xFFC00920 /* SPORT1 Transmit Configuration 1 Register */
295 #define SPORT1_RCR2 0xFFC00924 /* SPORT1 Transmit Configuration 2 Register */
296 #define SPORT1_RCLKDIV 0xFFC00928 /* SPORT1 Receive Clock Divider */
297 #define SPORT1_RFSDIV 0xFFC0092C /* SPORT1 Receive Frame Sync Divider */
298 #define SPORT1_STAT 0xFFC00930 /* SPORT1 Status Register */
299 #define SPORT1_CHNL 0xFFC00934 /* SPORT1 Current Channel Register */
300 #define SPORT1_MCMC1 0xFFC00938 /* SPORT1 Multi-Channel Configuration Register 1 */
301 #define SPORT1_MCMC2 0xFFC0093C /* SPORT1 Multi-Channel Configuration Register 2 */
302 #define SPORT1_MTCS0 0xFFC00940 /* SPORT1 Multi-Channel Transmit Select Register 0 */
303 #define SPORT1_MTCS1 0xFFC00944 /* SPORT1 Multi-Channel Transmit Select Register 1 */
304 #define SPORT1_MTCS2 0xFFC00948 /* SPORT1 Multi-Channel Transmit Select Register 2 */
305 #define SPORT1_MTCS3 0xFFC0094C /* SPORT1 Multi-Channel Transmit Select Register 3 */
306 #define SPORT1_MRCS0 0xFFC00950 /* SPORT1 Multi-Channel Receive Select Register 0 */
307 #define SPORT1_MRCS1 0xFFC00954 /* SPORT1 Multi-Channel Receive Select Register 1 */
308 #define SPORT1_MRCS2 0xFFC00958 /* SPORT1 Multi-Channel Receive Select Register 2 */
309 #define SPORT1_MRCS3 0xFFC0095C /* SPORT1 Multi-Channel Receive Select Register 3 */
311 /* Asynchronous Memory Controller - External Bus Interface Unit */
312 #define EBIU_AMGCTL 0xFFC00A00 /* Asynchronous Memory Global Control Register */
313 #define EBIU_AMBCTL0 0xFFC00A04 /* Asynchronous Memory Bank Control Register 0 */
314 #define EBIU_AMBCTL1 0xFFC00A08 /* Asynchronous Memory Bank Control Register 1 */
316 /* SDRAM Controller External Bus Interface Unit (0xFFC00A00 - 0xFFC00AFF) */
317 #define EBIU_SDGCTL 0xFFC00A10 /* SDRAM Global Control Register */
318 #define EBIU_SDBCTL 0xFFC00A14 /* SDRAM Bank Control Register */
319 #define EBIU_SDRRC 0xFFC00A18 /* SDRAM Refresh Rate Control Register */
320 #define EBIU_SDSTAT 0xFFC00A1C /* SDRAM Status Register */
322 /* Parallel Peripheral Interface (PPI) 0 registers (0xFFC0 1000-0xFFC0 10FF) */
323 #define PPI0_CONTROL 0xFFC01000 /* PPI0 Control register */
324 #define PPI0_STATUS 0xFFC01004 /* PPI0 Status register */
325 #define PPI0_COUNT 0xFFC01008 /* PPI0 Transfer Count register */
326 #define PPI0_DELAY 0xFFC0100C /* PPI0 Delay Count register */
327 #define PPI0_FRAME 0xFFC01010 /* PPI0 Frame Length register */
329 /*Parallel Peripheral Interface (PPI) 1 registers (0xFFC0 1300-0xFFC0 13FF) */
330 #define PPI1_CONTROL 0xFFC01300 /* PPI1 Control register */
331 #define PPI1_STATUS 0xFFC01304 /* PPI1 Status register */
332 #define PPI1_COUNT 0xFFC01308 /* PPI1 Transfer Count register */
333 #define PPI1_DELAY 0xFFC0130C /* PPI1 Delay Count register */
334 #define PPI1_FRAME 0xFFC01310 /* PPI1 Frame Length register */
336 /*DMA traffic control registers */
337 #define DMA1_TC_PER 0xFFC01B0C /* Traffic control periods */
338 #define DMA1_TC_CNT 0xFFC01B10 /* Traffic control current counts */
339 #define DMA2_TC_PER 0xFFC00B0C /* Traffic control periods */
340 #define DMA2_TC_CNT 0xFFC00B10 /* Traffic control current counts */
342 /* DMA1 Controller registers (0xFFC0 1C00-0xFFC0 1FFF) */
343 #define DMA1_0_CONFIG 0xFFC01C08 /* DMA1 Channel 0 Configuration register */
344 #define DMA1_0_NEXT_DESC_PTR 0xFFC01C00 /* DMA1 Channel 0 Next Descripter Ptr Reg */
345 #define DMA1_0_START_ADDR 0xFFC01C04 /* DMA1 Channel 0 Start Address */
346 #define DMA1_0_X_COUNT 0xFFC01C10 /* DMA1 Channel 0 Inner Loop Count */
347 #define DMA1_0_Y_COUNT 0xFFC01C18 /* DMA1 Channel 0 Outer Loop Count */
348 #define DMA1_0_X_MODIFY 0xFFC01C14 /* DMA1 Channel 0 Inner Loop Addr Increment */
349 #define DMA1_0_Y_MODIFY 0xFFC01C1C /* DMA1 Channel 0 Outer Loop Addr Increment */
350 #define DMA1_0_CURR_DESC_PTR 0xFFC01C20 /* DMA1 Channel 0 Current Descriptor Pointer */
351 #define DMA1_0_CURR_ADDR 0xFFC01C24 /* DMA1 Channel 0 Current Address Pointer */
352 #define DMA1_0_CURR_X_COUNT 0xFFC01C30 /* DMA1 Channel 0 Current Inner Loop Count */
353 #define DMA1_0_CURR_Y_COUNT 0xFFC01C38 /* DMA1 Channel 0 Current Outer Loop Count */
354 #define DMA1_0_IRQ_STATUS 0xFFC01C28 /* DMA1 Channel 0 Interrupt/Status Register */
355 #define DMA1_0_PERIPHERAL_MAP 0xFFC01C2C /* DMA1 Channel 0 Peripheral Map Register */
357 #define DMA1_1_CONFIG 0xFFC01C48 /* DMA1 Channel 1 Configuration register */
358 #define DMA1_1_NEXT_DESC_PTR 0xFFC01C40 /* DMA1 Channel 1 Next Descripter Ptr Reg */
359 #define DMA1_1_START_ADDR 0xFFC01C44 /* DMA1 Channel 1 Start Address */
360 #define DMA1_1_X_COUNT 0xFFC01C50 /* DMA1 Channel 1 Inner Loop Count */
361 #define DMA1_1_Y_COUNT 0xFFC01C58 /* DMA1 Channel 1 Outer Loop Count */
362 #define DMA1_1_X_MODIFY 0xFFC01C54 /* DMA1 Channel 1 Inner Loop Addr Increment */
363 #define DMA1_1_Y_MODIFY 0xFFC01C5C /* DMA1 Channel 1 Outer Loop Addr Increment */
364 #define DMA1_1_CURR_DESC_PTR 0xFFC01C60 /* DMA1 Channel 1 Current Descriptor Pointer */
365 #define DMA1_1_CURR_ADDR 0xFFC01C64 /* DMA1 Channel 1 Current Address Pointer */
366 #define DMA1_1_CURR_X_COUNT 0xFFC01C70 /* DMA1 Channel 1 Current Inner Loop Count */
367 #define DMA1_1_CURR_Y_COUNT 0xFFC01C78 /* DMA1 Channel 1 Current Outer Loop Count */
368 #define DMA1_1_IRQ_STATUS 0xFFC01C68 /* DMA1 Channel 1 Interrupt/Status Register */
369 #define DMA1_1_PERIPHERAL_MAP 0xFFC01C6C /* DMA1 Channel 1 Peripheral Map Register */
371 #define DMA1_2_CONFIG 0xFFC01C88 /* DMA1 Channel 2 Configuration register */
372 #define DMA1_2_NEXT_DESC_PTR 0xFFC01C80 /* DMA1 Channel 2 Next Descripter Ptr Reg */
373 #define DMA1_2_START_ADDR 0xFFC01C84 /* DMA1 Channel 2 Start Address */
374 #define DMA1_2_X_COUNT 0xFFC01C90 /* DMA1 Channel 2 Inner Loop Count */
375 #define DMA1_2_Y_COUNT 0xFFC01C98 /* DMA1 Channel 2 Outer Loop Count */
376 #define DMA1_2_X_MODIFY 0xFFC01C94 /* DMA1 Channel 2 Inner Loop Addr Increment */
377 #define DMA1_2_Y_MODIFY 0xFFC01C9C /* DMA1 Channel 2 Outer Loop Addr Increment */
378 #define DMA1_2_CURR_DESC_PTR 0xFFC01CA0 /* DMA1 Channel 2 Current Descriptor Pointer */
379 #define DMA1_2_CURR_ADDR 0xFFC01CA4 /* DMA1 Channel 2 Current Address Pointer */
380 #define DMA1_2_CURR_X_COUNT 0xFFC01CB0 /* DMA1 Channel 2 Current Inner Loop Count */
381 #define DMA1_2_CURR_Y_COUNT 0xFFC01CB8 /* DMA1 Channel 2 Current Outer Loop Count */
382 #define DMA1_2_IRQ_STATUS 0xFFC01CA8 /* DMA1 Channel 2 Interrupt/Status Register */
383 #define DMA1_2_PERIPHERAL_MAP 0xFFC01CAC /* DMA1 Channel 2 Peripheral Map Register */
385 #define DMA1_3_CONFIG 0xFFC01CC8 /* DMA1 Channel 3 Configuration register */
386 #define DMA1_3_NEXT_DESC_PTR 0xFFC01CC0 /* DMA1 Channel 3 Next Descripter Ptr Reg */
387 #define DMA1_3_START_ADDR 0xFFC01CC4 /* DMA1 Channel 3 Start Address */
388 #define DMA1_3_X_COUNT 0xFFC01CD0 /* DMA1 Channel 3 Inner Loop Count */
389 #define DMA1_3_Y_COUNT 0xFFC01CD8 /* DMA1 Channel 3 Outer Loop Count */
390 #define DMA1_3_X_MODIFY 0xFFC01CD4 /* DMA1 Channel 3 Inner Loop Addr Increment */
391 #define DMA1_3_Y_MODIFY 0xFFC01CDC /* DMA1 Channel 3 Outer Loop Addr Increment */
392 #define DMA1_3_CURR_DESC_PTR 0xFFC01CE0 /* DMA1 Channel 3 Current Descriptor Pointer */
393 #define DMA1_3_CURR_ADDR 0xFFC01CE4 /* DMA1 Channel 3 Current Address Pointer */
394 #define DMA1_3_CURR_X_COUNT 0xFFC01CF0 /* DMA1 Channel 3 Current Inner Loop Count */
395 #define DMA1_3_CURR_Y_COUNT 0xFFC01CF8 /* DMA1 Channel 3 Current Outer Loop Count */
396 #define DMA1_3_IRQ_STATUS 0xFFC01CE8 /* DMA1 Channel 3 Interrupt/Status Register */
397 #define DMA1_3_PERIPHERAL_MAP 0xFFC01CEC /* DMA1 Channel 3 Peripheral Map Register */
399 #define DMA1_4_CONFIG 0xFFC01D08 /* DMA1 Channel 4 Configuration register */
400 #define DMA1_4_NEXT_DESC_PTR 0xFFC01D00 /* DMA1 Channel 4 Next Descripter Ptr Reg */
401 #define DMA1_4_START_ADDR 0xFFC01D04 /* DMA1 Channel 4 Start Address */
402 #define DMA1_4_X_COUNT 0xFFC01D10 /* DMA1 Channel 4 Inner Loop Count */
403 #define DMA1_4_Y_COUNT 0xFFC01D18 /* DMA1 Channel 4 Outer Loop Count */
404 #define DMA1_4_X_MODIFY 0xFFC01D14 /* DMA1 Channel 4 Inner Loop Addr Increment */
405 #define DMA1_4_Y_MODIFY 0xFFC01D1C /* DMA1 Channel 4 Outer Loop Addr Increment */
406 #define DMA1_4_CURR_DESC_PTR 0xFFC01D20 /* DMA1 Channel 4 Current Descriptor Pointer */
407 #define DMA1_4_CURR_ADDR 0xFFC01D24 /* DMA1 Channel 4 Current Address Pointer */
408 #define DMA1_4_CURR_X_COUNT 0xFFC01D30 /* DMA1 Channel 4 Current Inner Loop Count */
409 #define DMA1_4_CURR_Y_COUNT 0xFFC01D38 /* DMA1 Channel 4 Current Outer Loop Count */
410 #define DMA1_4_IRQ_STATUS 0xFFC01D28 /* DMA1 Channel 4 Interrupt/Status Register */
411 #define DMA1_4_PERIPHERAL_MAP 0xFFC01D2C /* DMA1 Channel 4 Peripheral Map Register */
413 #define DMA1_5_CONFIG 0xFFC01D48 /* DMA1 Channel 5 Configuration register */
414 #define DMA1_5_NEXT_DESC_PTR 0xFFC01D40 /* DMA1 Channel 5 Next Descripter Ptr Reg */
415 #define DMA1_5_START_ADDR 0xFFC01D44 /* DMA1 Channel 5 Start Address */
416 #define DMA1_5_X_COUNT 0xFFC01D50 /* DMA1 Channel 5 Inner Loop Count */
417 #define DMA1_5_Y_COUNT 0xFFC01D58 /* DMA1 Channel 5 Outer Loop Count */
418 #define DMA1_5_X_MODIFY 0xFFC01D54 /* DMA1 Channel 5 Inner Loop Addr Increment */
419 #define DMA1_5_Y_MODIFY 0xFFC01D5C /* DMA1 Channel 5 Outer Loop Addr Increment */
420 #define DMA1_5_CURR_DESC_PTR 0xFFC01D60 /* DMA1 Channel 5 Current Descriptor Pointer */
421 #define DMA1_5_CURR_ADDR 0xFFC01D64 /* DMA1 Channel 5 Current Address Pointer */
422 #define DMA1_5_CURR_X_COUNT 0xFFC01D70 /* DMA1 Channel 5 Current Inner Loop Count */
423 #define DMA1_5_CURR_Y_COUNT 0xFFC01D78 /* DMA1 Channel 5 Current Outer Loop Count */
424 #define DMA1_5_IRQ_STATUS 0xFFC01D68 /* DMA1 Channel 5 Interrupt/Status Register */
425 #define DMA1_5_PERIPHERAL_MAP 0xFFC01D6C /* DMA1 Channel 5 Peripheral Map Register */
427 #define DMA1_6_CONFIG 0xFFC01D88 /* DMA1 Channel 6 Configuration register */
428 #define DMA1_6_NEXT_DESC_PTR 0xFFC01D80 /* DMA1 Channel 6 Next Descripter Ptr Reg */
429 #define DMA1_6_START_ADDR 0xFFC01D84 /* DMA1 Channel 6 Start Address */
430 #define DMA1_6_X_COUNT 0xFFC01D90 /* DMA1 Channel 6 Inner Loop Count */
431 #define DMA1_6_Y_COUNT 0xFFC01D98 /* DMA1 Channel 6 Outer Loop Count */
432 #define DMA1_6_X_MODIFY 0xFFC01D94 /* DMA1 Channel 6 Inner Loop Addr Increment */
433 #define DMA1_6_Y_MODIFY 0xFFC01D9C /* DMA1 Channel 6 Outer Loop Addr Increment */
434 #define DMA1_6_CURR_DESC_PTR 0xFFC01DA0 /* DMA1 Channel 6 Current Descriptor Pointer */
435 #define DMA1_6_CURR_ADDR 0xFFC01DA4 /* DMA1 Channel 6 Current Address Pointer */
436 #define DMA1_6_CURR_X_COUNT 0xFFC01DB0 /* DMA1 Channel 6 Current Inner Loop Count */
437 #define DMA1_6_CURR_Y_COUNT 0xFFC01DB8 /* DMA1 Channel 6 Current Outer Loop Count */
438 #define DMA1_6_IRQ_STATUS 0xFFC01DA8 /* DMA1 Channel 6 Interrupt/Status Register */
439 #define DMA1_6_PERIPHERAL_MAP 0xFFC01DAC /* DMA1 Channel 6 Peripheral Map Register */
441 #define DMA1_7_CONFIG 0xFFC01DC8 /* DMA1 Channel 7 Configuration register */
442 #define DMA1_7_NEXT_DESC_PTR 0xFFC01DC0 /* DMA1 Channel 7 Next Descripter Ptr Reg */
443 #define DMA1_7_START_ADDR 0xFFC01DC4 /* DMA1 Channel 7 Start Address */
444 #define DMA1_7_X_COUNT 0xFFC01DD0 /* DMA1 Channel 7 Inner Loop Count */
445 #define DMA1_7_Y_COUNT 0xFFC01DD8 /* DMA1 Channel 7 Outer Loop Count */
446 #define DMA1_7_X_MODIFY 0xFFC01DD4 /* DMA1 Channel 7 Inner Loop Addr Increment */
447 #define DMA1_7_Y_MODIFY 0xFFC01DDC /* DMA1 Channel 7 Outer Loop Addr Increment */
448 #define DMA1_7_CURR_DESC_PTR 0xFFC01DE0 /* DMA1 Channel 7 Current Descriptor Pointer */
449 #define DMA1_7_CURR_ADDR 0xFFC01DE4 /* DMA1 Channel 7 Current Address Pointer */
450 #define DMA1_7_CURR_X_COUNT 0xFFC01DF0 /* DMA1 Channel 7 Current Inner Loop Count */
451 #define DMA1_7_CURR_Y_COUNT 0xFFC01DF8 /* DMA1 Channel 7 Current Outer Loop Count */
452 #define DMA1_7_IRQ_STATUS 0xFFC01DE8 /* DMA1 Channel 7 Interrupt/Status Register */
453 #define DMA1_7_PERIPHERAL_MAP 0xFFC01DEC /* DMA1 Channel 7 Peripheral Map Register */
455 #define DMA1_8_CONFIG 0xFFC01E08 /* DMA1 Channel 8 Configuration register */
456 #define DMA1_8_NEXT_DESC_PTR 0xFFC01E00 /* DMA1 Channel 8 Next Descripter Ptr Reg */
457 #define DMA1_8_START_ADDR 0xFFC01E04 /* DMA1 Channel 8 Start Address */
458 #define DMA1_8_X_COUNT 0xFFC01E10 /* DMA1 Channel 8 Inner Loop Count */
459 #define DMA1_8_Y_COUNT 0xFFC01E18 /* DMA1 Channel 8 Outer Loop Count */
460 #define DMA1_8_X_MODIFY 0xFFC01E14 /* DMA1 Channel 8 Inner Loop Addr Increment */
461 #define DMA1_8_Y_MODIFY 0xFFC01E1C /* DMA1 Channel 8 Outer Loop Addr Increment */
462 #define DMA1_8_CURR_DESC_PTR 0xFFC01E20 /* DMA1 Channel 8 Current Descriptor Pointer */
463 #define DMA1_8_CURR_ADDR 0xFFC01E24 /* DMA1 Channel 8 Current Address Pointer */
464 #define DMA1_8_CURR_X_COUNT 0xFFC01E30 /* DMA1 Channel 8 Current Inner Loop Count */
465 #define DMA1_8_CURR_Y_COUNT 0xFFC01E38 /* DMA1 Channel 8 Current Outer Loop Count */
466 #define DMA1_8_IRQ_STATUS 0xFFC01E28 /* DMA1 Channel 8 Interrupt/Status Register */
467 #define DMA1_8_PERIPHERAL_MAP 0xFFC01E2C /* DMA1 Channel 8 Peripheral Map Register */
469 #define DMA1_9_CONFIG 0xFFC01E48 /* DMA1 Channel 9 Configuration register */
470 #define DMA1_9_NEXT_DESC_PTR 0xFFC01E40 /* DMA1 Channel 9 Next Descripter Ptr Reg */
471 #define DMA1_9_START_ADDR 0xFFC01E44 /* DMA1 Channel 9 Start Address */
472 #define DMA1_9_X_COUNT 0xFFC01E50 /* DMA1 Channel 9 Inner Loop Count */
473 #define DMA1_9_Y_COUNT 0xFFC01E58 /* DMA1 Channel 9 Outer Loop Count */
474 #define DMA1_9_X_MODIFY 0xFFC01E54 /* DMA1 Channel 9 Inner Loop Addr Increment */
475 #define DMA1_9_Y_MODIFY 0xFFC01E5C /* DMA1 Channel 9 Outer Loop Addr Increment */
476 #define DMA1_9_CURR_DESC_PTR 0xFFC01E60 /* DMA1 Channel 9 Current Descriptor Pointer */
477 #define DMA1_9_CURR_ADDR 0xFFC01E64 /* DMA1 Channel 9 Current Address Pointer */
478 #define DMA1_9_CURR_X_COUNT 0xFFC01E70 /* DMA1 Channel 9 Current Inner Loop Count */
479 #define DMA1_9_CURR_Y_COUNT 0xFFC01E78 /* DMA1 Channel 9 Current Outer Loop Count */
480 #define DMA1_9_IRQ_STATUS 0xFFC01E68 /* DMA1 Channel 9 Interrupt/Status Register */
481 #define DMA1_9_PERIPHERAL_MAP 0xFFC01E6C /* DMA1 Channel 9 Peripheral Map Register */
483 #define DMA1_10_CONFIG 0xFFC01E88 /* DMA1 Channel 10 Configuration register */
484 #define DMA1_10_NEXT_DESC_PTR 0xFFC01E80 /* DMA1 Channel 10 Next Descripter Ptr Reg */
485 #define DMA1_10_START_ADDR 0xFFC01E84 /* DMA1 Channel 10 Start Address */
486 #define DMA1_10_X_COUNT 0xFFC01E90 /* DMA1 Channel 10 Inner Loop Count */
487 #define DMA1_10_Y_COUNT 0xFFC01E98 /* DMA1 Channel 10 Outer Loop Count */
488 #define DMA1_10_X_MODIFY 0xFFC01E94 /* DMA1 Channel 10 Inner Loop Addr Increment */
489 #define DMA1_10_Y_MODIFY 0xFFC01E9C /* DMA1 Channel 10 Outer Loop Addr Increment */
490 #define DMA1_10_CURR_DESC_PTR 0xFFC01EA0 /* DMA1 Channel 10 Current Descriptor Pointer */
491 #define DMA1_10_CURR_ADDR 0xFFC01EA4 /* DMA1 Channel 10 Current Address Pointer */
492 #define DMA1_10_CURR_X_COUNT 0xFFC01EB0 /* DMA1 Channel 10 Current Inner Loop Count */
493 #define DMA1_10_CURR_Y_COUNT 0xFFC01EB8 /* DMA1 Channel 10 Current Outer Loop Count */
494 #define DMA1_10_IRQ_STATUS 0xFFC01EA8 /* DMA1 Channel 10 Interrupt/Status Register */
495 #define DMA1_10_PERIPHERAL_MAP 0xFFC01EAC /* DMA1 Channel 10 Peripheral Map Register */
497 #define DMA1_11_CONFIG 0xFFC01EC8 /* DMA1 Channel 11 Configuration register */
498 #define DMA1_11_NEXT_DESC_PTR 0xFFC01EC0 /* DMA1 Channel 11 Next Descripter Ptr Reg */
499 #define DMA1_11_START_ADDR 0xFFC01EC4 /* DMA1 Channel 11 Start Address */
500 #define DMA1_11_X_COUNT 0xFFC01ED0 /* DMA1 Channel 11 Inner Loop Count */
501 #define DMA1_11_Y_COUNT 0xFFC01ED8 /* DMA1 Channel 11 Outer Loop Count */
502 #define DMA1_11_X_MODIFY 0xFFC01ED4 /* DMA1 Channel 11 Inner Loop Addr Increment */
503 #define DMA1_11_Y_MODIFY 0xFFC01EDC /* DMA1 Channel 11 Outer Loop Addr Increment */
504 #define DMA1_11_CURR_DESC_PTR 0xFFC01EE0 /* DMA1 Channel 11 Current Descriptor Pointer */
505 #define DMA1_11_CURR_ADDR 0xFFC01EE4 /* DMA1 Channel 11 Current Address Pointer */
506 #define DMA1_11_CURR_X_COUNT 0xFFC01EF0 /* DMA1 Channel 11 Current Inner Loop Count */
507 #define DMA1_11_CURR_Y_COUNT 0xFFC01EF8 /* DMA1 Channel 11 Current Outer Loop Count */
508 #define DMA1_11_IRQ_STATUS 0xFFC01EE8 /* DMA1 Channel 11 Interrupt/Status Register */
509 #define DMA1_11_PERIPHERAL_MAP 0xFFC01EEC /* DMA1 Channel 11 Peripheral Map Register */
511 /* Memory DMA1 Controller registers (0xFFC0 1E80-0xFFC0 1FFF) */
512 #define MDMA1_D0_CONFIG 0xFFC01F08 /*MemDMA1 Stream 0 Destination Configuration */
513 #define MDMA1_D0_NEXT_DESC_PTR 0xFFC01F00 /*MemDMA1 Stream 0 Destination Next Descriptor Ptr Reg */
514 #define MDMA1_D0_START_ADDR 0xFFC01F04 /*MemDMA1 Stream 0 Destination Start Address */
515 #define MDMA1_D0_X_COUNT 0xFFC01F10 /*MemDMA1 Stream 0 Destination Inner-Loop Count */
516 #define MDMA1_D0_Y_COUNT 0xFFC01F18 /*MemDMA1 Stream 0 Destination Outer-Loop Count */
517 #define MDMA1_D0_X_MODIFY 0xFFC01F14 /*MemDMA1 Stream 0 Dest Inner-Loop Address-Increment */
518 #define MDMA1_D0_Y_MODIFY 0xFFC01F1C /*MemDMA1 Stream 0 Dest Outer-Loop Address-Increment */
519 #define MDMA1_D0_CURR_DESC_PTR 0xFFC01F20 /*MemDMA1 Stream 0 Dest Current Descriptor Ptr reg */
520 #define MDMA1_D0_CURR_ADDR 0xFFC01F24 /*MemDMA1 Stream 0 Destination Current Address */
521 #define MDMA1_D0_CURR_X_COUNT 0xFFC01F30 /*MemDMA1 Stream 0 Dest Current Inner-Loop Count */
522 #define MDMA1_D0_CURR_Y_COUNT 0xFFC01F38 /*MemDMA1 Stream 0 Dest Current Outer-Loop Count */
523 #define MDMA1_D0_IRQ_STATUS 0xFFC01F28 /*MemDMA1 Stream 0 Destination Interrupt/Status */
524 #define MDMA1_D0_PERIPHERAL_MAP 0xFFC01F2C /*MemDMA1 Stream 0 Destination Peripheral Map */
526 #define MDMA1_S0_CONFIG 0xFFC01F48 /*MemDMA1 Stream 0 Source Configuration */
527 #define MDMA1_S0_NEXT_DESC_PTR 0xFFC01F40 /*MemDMA1 Stream 0 Source Next Descriptor Ptr Reg */
528 #define MDMA1_S0_START_ADDR 0xFFC01F44 /*MemDMA1 Stream 0 Source Start Address */
529 #define MDMA1_S0_X_COUNT 0xFFC01F50 /*MemDMA1 Stream 0 Source Inner-Loop Count */
530 #define MDMA1_S0_Y_COUNT 0xFFC01F58 /*MemDMA1 Stream 0 Source Outer-Loop Count */
531 #define MDMA1_S0_X_MODIFY 0xFFC01F54 /*MemDMA1 Stream 0 Source Inner-Loop Address-Increment */
532 #define MDMA1_S0_Y_MODIFY 0xFFC01F5C /*MemDMA1 Stream 0 Source Outer-Loop Address-Increment */
533 #define MDMA1_S0_CURR_DESC_PTR 0xFFC01F60 /*MemDMA1 Stream 0 Source Current Descriptor Ptr reg */
534 #define MDMA1_S0_CURR_ADDR 0xFFC01F64 /*MemDMA1 Stream 0 Source Current Address */
535 #define MDMA1_S0_CURR_X_COUNT 0xFFC01F70 /*MemDMA1 Stream 0 Source Current Inner-Loop Count */
536 #define MDMA1_S0_CURR_Y_COUNT 0xFFC01F78 /*MemDMA1 Stream 0 Source Current Outer-Loop Count */
537 #define MDMA1_S0_IRQ_STATUS 0xFFC01F68 /*MemDMA1 Stream 0 Source Interrupt/Status */
538 #define MDMA1_S0_PERIPHERAL_MAP 0xFFC01F6C /*MemDMA1 Stream 0 Source Peripheral Map */
540 #define MDMA1_D1_CONFIG 0xFFC01F88 /*MemDMA1 Stream 1 Destination Configuration */
541 #define MDMA1_D1_NEXT_DESC_PTR 0xFFC01F80 /*MemDMA1 Stream 1 Destination Next Descriptor Ptr Reg */
542 #define MDMA1_D1_START_ADDR 0xFFC01F84 /*MemDMA1 Stream 1 Destination Start Address */
543 #define MDMA1_D1_X_COUNT 0xFFC01F90 /*MemDMA1 Stream 1 Destination Inner-Loop Count */
544 #define MDMA1_D1_Y_COUNT 0xFFC01F98 /*MemDMA1 Stream 1 Destination Outer-Loop Count */
545 #define MDMA1_D1_X_MODIFY 0xFFC01F94 /*MemDMA1 Stream 1 Dest Inner-Loop Address-Increment */
546 #define MDMA1_D1_Y_MODIFY 0xFFC01F9C /*MemDMA1 Stream 1 Dest Outer-Loop Address-Increment */
547 #define MDMA1_D1_CURR_DESC_PTR 0xFFC01FA0 /*MemDMA1 Stream 1 Dest Current Descriptor Ptr reg */
548 #define MDMA1_D1_CURR_ADDR 0xFFC01FA4 /*MemDMA1 Stream 1 Dest Current Address */
549 #define MDMA1_D1_CURR_X_COUNT 0xFFC01FB0 /*MemDMA1 Stream 1 Dest Current Inner-Loop Count */
550 #define MDMA1_D1_CURR_Y_COUNT 0xFFC01FB8 /*MemDMA1 Stream 1 Dest Current Outer-Loop Count */
551 #define MDMA1_D1_IRQ_STATUS 0xFFC01FA8 /*MemDMA1 Stream 1 Dest Interrupt/Status */
552 #define MDMA1_D1_PERIPHERAL_MAP 0xFFC01FAC /*MemDMA1 Stream 1 Dest Peripheral Map */
554 #define MDMA1_S1_CONFIG 0xFFC01FC8 /*MemDMA1 Stream 1 Source Configuration */
555 #define MDMA1_S1_NEXT_DESC_PTR 0xFFC01FC0 /*MemDMA1 Stream 1 Source Next Descriptor Ptr Reg */
556 #define MDMA1_S1_START_ADDR 0xFFC01FC4 /*MemDMA1 Stream 1 Source Start Address */
557 #define MDMA1_S1_X_COUNT 0xFFC01FD0 /*MemDMA1 Stream 1 Source Inner-Loop Count */
558 #define MDMA1_S1_Y_COUNT 0xFFC01FD8 /*MemDMA1 Stream 1 Source Outer-Loop Count */
559 #define MDMA1_S1_X_MODIFY 0xFFC01FD4 /*MemDMA1 Stream 1 Source Inner-Loop Address-Increment */
560 #define MDMA1_S1_Y_MODIFY 0xFFC01FDC /*MemDMA1 Stream 1 Source Outer-Loop Address-Increment */
561 #define MDMA1_S1_CURR_DESC_PTR 0xFFC01FE0 /*MemDMA1 Stream 1 Source Current Descriptor Ptr reg */
562 #define MDMA1_S1_CURR_ADDR 0xFFC01FE4 /*MemDMA1 Stream 1 Source Current Address */
563 #define MDMA1_S1_CURR_X_COUNT 0xFFC01FF0 /*MemDMA1 Stream 1 Source Current Inner-Loop Count */
564 #define MDMA1_S1_CURR_Y_COUNT 0xFFC01FF8 /*MemDMA1 Stream 1 Source Current Outer-Loop Count */
565 #define MDMA1_S1_IRQ_STATUS 0xFFC01FE8 /*MemDMA1 Stream 1 Source Interrupt/Status */
566 #define MDMA1_S1_PERIPHERAL_MAP 0xFFC01FEC /*MemDMA1 Stream 1 Source Peripheral Map */
568 /* DMA2 Controller registers (0xFFC0 0C00-0xFFC0 0DFF) */
569 #define DMA2_0_CONFIG 0xFFC00C08 /* DMA2 Channel 0 Configuration register */
570 #define DMA2_0_NEXT_DESC_PTR 0xFFC00C00 /* DMA2 Channel 0 Next Descripter Ptr Reg */
571 #define DMA2_0_START_ADDR 0xFFC00C04 /* DMA2 Channel 0 Start Address */
572 #define DMA2_0_X_COUNT 0xFFC00C10 /* DMA2 Channel 0 Inner Loop Count */
573 #define DMA2_0_Y_COUNT 0xFFC00C18 /* DMA2 Channel 0 Outer Loop Count */
574 #define DMA2_0_X_MODIFY 0xFFC00C14 /* DMA2 Channel 0 Inner Loop Addr Increment */
575 #define DMA2_0_Y_MODIFY 0xFFC00C1C /* DMA2 Channel 0 Outer Loop Addr Increment */
576 #define DMA2_0_CURR_DESC_PTR 0xFFC00C20 /* DMA2 Channel 0 Current Descriptor Pointer */
577 #define DMA2_0_CURR_ADDR 0xFFC00C24 /* DMA2 Channel 0 Current Address Pointer */
578 #define DMA2_0_CURR_X_COUNT 0xFFC00C30 /* DMA2 Channel 0 Current Inner Loop Count */
579 #define DMA2_0_CURR_Y_COUNT 0xFFC00C38 /* DMA2 Channel 0 Current Outer Loop Count */
580 #define DMA2_0_IRQ_STATUS 0xFFC00C28 /* DMA2 Channel 0 Interrupt/Status Register */
581 #define DMA2_0_PERIPHERAL_MAP 0xFFC00C2C /* DMA2 Channel 0 Peripheral Map Register */
583 #define DMA2_1_CONFIG 0xFFC00C48 /* DMA2 Channel 1 Configuration register */
584 #define DMA2_1_NEXT_DESC_PTR 0xFFC00C40 /* DMA2 Channel 1 Next Descripter Ptr Reg */
585 #define DMA2_1_START_ADDR 0xFFC00C44 /* DMA2 Channel 1 Start Address */
586 #define DMA2_1_X_COUNT 0xFFC00C50 /* DMA2 Channel 1 Inner Loop Count */
587 #define DMA2_1_Y_COUNT 0xFFC00C58 /* DMA2 Channel 1 Outer Loop Count */
588 #define DMA2_1_X_MODIFY 0xFFC00C54 /* DMA2 Channel 1 Inner Loop Addr Increment */
589 #define DMA2_1_Y_MODIFY 0xFFC00C5C /* DMA2 Channel 1 Outer Loop Addr Increment */
590 #define DMA2_1_CURR_DESC_PTR 0xFFC00C60 /* DMA2 Channel 1 Current Descriptor Pointer */
591 #define DMA2_1_CURR_ADDR 0xFFC00C64 /* DMA2 Channel 1 Current Address Pointer */
592 #define DMA2_1_CURR_X_COUNT 0xFFC00C70 /* DMA2 Channel 1 Current Inner Loop Count */
593 #define DMA2_1_CURR_Y_COUNT 0xFFC00C78 /* DMA2 Channel 1 Current Outer Loop Count */
594 #define DMA2_1_IRQ_STATUS 0xFFC00C68 /* DMA2 Channel 1 Interrupt/Status Register */
595 #define DMA2_1_PERIPHERAL_MAP 0xFFC00C6C /* DMA2 Channel 1 Peripheral Map Register */
597 #define DMA2_2_CONFIG 0xFFC00C88 /* DMA2 Channel 2 Configuration register */
598 #define DMA2_2_NEXT_DESC_PTR 0xFFC00C80 /* DMA2 Channel 2 Next Descripter Ptr Reg */
599 #define DMA2_2_START_ADDR 0xFFC00C84 /* DMA2 Channel 2 Start Address */
600 #define DMA2_2_X_COUNT 0xFFC00C90 /* DMA2 Channel 2 Inner Loop Count */
601 #define DMA2_2_Y_COUNT 0xFFC00C98 /* DMA2 Channel 2 Outer Loop Count */
602 #define DMA2_2_X_MODIFY 0xFFC00C94 /* DMA2 Channel 2 Inner Loop Addr Increment */
603 #define DMA2_2_Y_MODIFY 0xFFC00C9C /* DMA2 Channel 2 Outer Loop Addr Increment */
604 #define DMA2_2_CURR_DESC_PTR 0xFFC00CA0 /* DMA2 Channel 2 Current Descriptor Pointer */
605 #define DMA2_2_CURR_ADDR 0xFFC00CA4 /* DMA2 Channel 2 Current Address Pointer */
606 #define DMA2_2_CURR_X_COUNT 0xFFC00CB0 /* DMA2 Channel 2 Current Inner Loop Count */
607 #define DMA2_2_CURR_Y_COUNT 0xFFC00CB8 /* DMA2 Channel 2 Current Outer Loop Count */
608 #define DMA2_2_IRQ_STATUS 0xFFC00CA8 /* DMA2 Channel 2 Interrupt/Status Register */
609 #define DMA2_2_PERIPHERAL_MAP 0xFFC00CAC /* DMA2 Channel 2 Peripheral Map Register */
611 #define DMA2_3_CONFIG 0xFFC00CC8 /* DMA2 Channel 3 Configuration register */
612 #define DMA2_3_NEXT_DESC_PTR 0xFFC00CC0 /* DMA2 Channel 3 Next Descripter Ptr Reg */
613 #define DMA2_3_START_ADDR 0xFFC00CC4 /* DMA2 Channel 3 Start Address */
614 #define DMA2_3_X_COUNT 0xFFC00CD0 /* DMA2 Channel 3 Inner Loop Count */
615 #define DMA2_3_Y_COUNT 0xFFC00CD8 /* DMA2 Channel 3 Outer Loop Count */
616 #define DMA2_3_X_MODIFY 0xFFC00CD4 /* DMA2 Channel 3 Inner Loop Addr Increment */
617 #define DMA2_3_Y_MODIFY 0xFFC00CDC /* DMA2 Channel 3 Outer Loop Addr Increment */
618 #define DMA2_3_CURR_DESC_PTR 0xFFC00CE0 /* DMA2 Channel 3 Current Descriptor Pointer */
619 #define DMA2_3_CURR_ADDR 0xFFC00CE4 /* DMA2 Channel 3 Current Address Pointer */
620 #define DMA2_3_CURR_X_COUNT 0xFFC00CF0 /* DMA2 Channel 3 Current Inner Loop Count */
621 #define DMA2_3_CURR_Y_COUNT 0xFFC00CF8 /* DMA2 Channel 3 Current Outer Loop Count */
622 #define DMA2_3_IRQ_STATUS 0xFFC00CE8 /* DMA2 Channel 3 Interrupt/Status Register */
623 #define DMA2_3_PERIPHERAL_MAP 0xFFC00CEC /* DMA2 Channel 3 Peripheral Map Register */
625 #define DMA2_4_CONFIG 0xFFC00D08 /* DMA2 Channel 4 Configuration register */
626 #define DMA2_4_NEXT_DESC_PTR 0xFFC00D00 /* DMA2 Channel 4 Next Descripter Ptr Reg */
627 #define DMA2_4_START_ADDR 0xFFC00D04 /* DMA2 Channel 4 Start Address */
628 #define DMA2_4_X_COUNT 0xFFC00D10 /* DMA2 Channel 4 Inner Loop Count */
629 #define DMA2_4_Y_COUNT 0xFFC00D18 /* DMA2 Channel 4 Outer Loop Count */
630 #define DMA2_4_X_MODIFY 0xFFC00D14 /* DMA2 Channel 4 Inner Loop Addr Increment */
631 #define DMA2_4_Y_MODIFY 0xFFC00D1C /* DMA2 Channel 4 Outer Loop Addr Increment */
632 #define DMA2_4_CURR_DESC_PTR 0xFFC00D20 /* DMA2 Channel 4 Current Descriptor Pointer */
633 #define DMA2_4_CURR_ADDR 0xFFC00D24 /* DMA2 Channel 4 Current Address Pointer */
634 #define DMA2_4_CURR_X_COUNT 0xFFC00D30 /* DMA2 Channel 4 Current Inner Loop Count */
635 #define DMA2_4_CURR_Y_COUNT 0xFFC00D38 /* DMA2 Channel 4 Current Outer Loop Count */
636 #define DMA2_4_IRQ_STATUS 0xFFC00D28 /* DMA2 Channel 4 Interrupt/Status Register */
637 #define DMA2_4_PERIPHERAL_MAP 0xFFC00D2C /* DMA2 Channel 4 Peripheral Map Register */
639 #define DMA2_5_CONFIG 0xFFC00D48 /* DMA2 Channel 5 Configuration register */
640 #define DMA2_5_NEXT_DESC_PTR 0xFFC00D40 /* DMA2 Channel 5 Next Descripter Ptr Reg */
641 #define DMA2_5_START_ADDR 0xFFC00D44 /* DMA2 Channel 5 Start Address */
642 #define DMA2_5_X_COUNT 0xFFC00D50 /* DMA2 Channel 5 Inner Loop Count */
643 #define DMA2_5_Y_COUNT 0xFFC00D58 /* DMA2 Channel 5 Outer Loop Count */
644 #define DMA2_5_X_MODIFY 0xFFC00D54 /* DMA2 Channel 5 Inner Loop Addr Increment */
645 #define DMA2_5_Y_MODIFY 0xFFC00D5C /* DMA2 Channel 5 Outer Loop Addr Increment */
646 #define DMA2_5_CURR_DESC_PTR 0xFFC00D60 /* DMA2 Channel 5 Current Descriptor Pointer */
647 #define DMA2_5_CURR_ADDR 0xFFC00D64 /* DMA2 Channel 5 Current Address Pointer */
648 #define DMA2_5_CURR_X_COUNT 0xFFC00D70 /* DMA2 Channel 5 Current Inner Loop Count */
649 #define DMA2_5_CURR_Y_COUNT 0xFFC00D78 /* DMA2 Channel 5 Current Outer Loop Count */
650 #define DMA2_5_IRQ_STATUS 0xFFC00D68 /* DMA2 Channel 5 Interrupt/Status Register */
651 #define DMA2_5_PERIPHERAL_MAP 0xFFC00D6C /* DMA2 Channel 5 Peripheral Map Register */
653 #define DMA2_6_CONFIG 0xFFC00D88 /* DMA2 Channel 6 Configuration register */
654 #define DMA2_6_NEXT_DESC_PTR 0xFFC00D80 /* DMA2 Channel 6 Next Descripter Ptr Reg */
655 #define DMA2_6_START_ADDR 0xFFC00D84 /* DMA2 Channel 6 Start Address */
656 #define DMA2_6_X_COUNT 0xFFC00D90 /* DMA2 Channel 6 Inner Loop Count */
657 #define DMA2_6_Y_COUNT 0xFFC00D98 /* DMA2 Channel 6 Outer Loop Count */
658 #define DMA2_6_X_MODIFY 0xFFC00D94 /* DMA2 Channel 6 Inner Loop Addr Increment */
659 #define DMA2_6_Y_MODIFY 0xFFC00D9C /* DMA2 Channel 6 Outer Loop Addr Increment */
660 #define DMA2_6_CURR_DESC_PTR 0xFFC00DA0 /* DMA2 Channel 6 Current Descriptor Pointer */
661 #define DMA2_6_CURR_ADDR 0xFFC00DA4 /* DMA2 Channel 6 Current Address Pointer */
662 #define DMA2_6_CURR_X_COUNT 0xFFC00DB0 /* DMA2 Channel 6 Current Inner Loop Count */
663 #define DMA2_6_CURR_Y_COUNT 0xFFC00DB8 /* DMA2 Channel 6 Current Outer Loop Count */
664 #define DMA2_6_IRQ_STATUS 0xFFC00DA8 /* DMA2 Channel 6 Interrupt/Status Register */
665 #define DMA2_6_PERIPHERAL_MAP 0xFFC00DAC /* DMA2 Channel 6 Peripheral Map Register */
667 #define DMA2_7_CONFIG 0xFFC00DC8 /* DMA2 Channel 7 Configuration register */
668 #define DMA2_7_NEXT_DESC_PTR 0xFFC00DC0 /* DMA2 Channel 7 Next Descripter Ptr Reg */
669 #define DMA2_7_START_ADDR 0xFFC00DC4 /* DMA2 Channel 7 Start Address */
670 #define DMA2_7_X_COUNT 0xFFC00DD0 /* DMA2 Channel 7 Inner Loop Count */
671 #define DMA2_7_Y_COUNT 0xFFC00DD8 /* DMA2 Channel 7 Outer Loop Count */
672 #define DMA2_7_X_MODIFY 0xFFC00DD4 /* DMA2 Channel 7 Inner Loop Addr Increment */
673 #define DMA2_7_Y_MODIFY 0xFFC00DDC /* DMA2 Channel 7 Outer Loop Addr Increment */
674 #define DMA2_7_CURR_DESC_PTR 0xFFC00DE0 /* DMA2 Channel 7 Current Descriptor Pointer */
675 #define DMA2_7_CURR_ADDR 0xFFC00DE4 /* DMA2 Channel 7 Current Address Pointer */
676 #define DMA2_7_CURR_X_COUNT 0xFFC00DF0 /* DMA2 Channel 7 Current Inner Loop Count */
677 #define DMA2_7_CURR_Y_COUNT 0xFFC00DF8 /* DMA2 Channel 7 Current Outer Loop Count */
678 #define DMA2_7_IRQ_STATUS 0xFFC00DE8 /* DMA2 Channel 7 Interrupt/Status Register */
679 #define DMA2_7_PERIPHERAL_MAP 0xFFC00DEC /* DMA2 Channel 7 Peripheral Map Register */
681 #define DMA2_8_CONFIG 0xFFC00E08 /* DMA2 Channel 8 Configuration register */
682 #define DMA2_8_NEXT_DESC_PTR 0xFFC00E00 /* DMA2 Channel 8 Next Descripter Ptr Reg */
683 #define DMA2_8_START_ADDR 0xFFC00E04 /* DMA2 Channel 8 Start Address */
684 #define DMA2_8_X_COUNT 0xFFC00E10 /* DMA2 Channel 8 Inner Loop Count */
685 #define DMA2_8_Y_COUNT 0xFFC00E18 /* DMA2 Channel 8 Outer Loop Count */
686 #define DMA2_8_X_MODIFY 0xFFC00E14 /* DMA2 Channel 8 Inner Loop Addr Increment */
687 #define DMA2_8_Y_MODIFY 0xFFC00E1C /* DMA2 Channel 8 Outer Loop Addr Increment */
688 #define DMA2_8_CURR_DESC_PTR 0xFFC00E20 /* DMA2 Channel 8 Current Descriptor Pointer */
689 #define DMA2_8_CURR_ADDR 0xFFC00E24 /* DMA2 Channel 8 Current Address Pointer */
690 #define DMA2_8_CURR_X_COUNT 0xFFC00E30 /* DMA2 Channel 8 Current Inner Loop Count */
691 #define DMA2_8_CURR_Y_COUNT 0xFFC00E38 /* DMA2 Channel 8 Current Outer Loop Count */
692 #define DMA2_8_IRQ_STATUS 0xFFC00E28 /* DMA2 Channel 8 Interrupt/Status Register */
693 #define DMA2_8_PERIPHERAL_MAP 0xFFC00E2C /* DMA2 Channel 8 Peripheral Map Register */
695 #define DMA2_9_CONFIG 0xFFC00E48 /* DMA2 Channel 9 Configuration register */
696 #define DMA2_9_NEXT_DESC_PTR 0xFFC00E40 /* DMA2 Channel 9 Next Descripter Ptr Reg */
697 #define DMA2_9_START_ADDR 0xFFC00E44 /* DMA2 Channel 9 Start Address */
698 #define DMA2_9_X_COUNT 0xFFC00E50 /* DMA2 Channel 9 Inner Loop Count */
699 #define DMA2_9_Y_COUNT 0xFFC00E58 /* DMA2 Channel 9 Outer Loop Count */
700 #define DMA2_9_X_MODIFY 0xFFC00E54 /* DMA2 Channel 9 Inner Loop Addr Increment */
701 #define DMA2_9_Y_MODIFY 0xFFC00E5C /* DMA2 Channel 9 Outer Loop Addr Increment */
702 #define DMA2_9_CURR_DESC_PTR 0xFFC00E60 /* DMA2 Channel 9 Current Descriptor Pointer */
703 #define DMA2_9_CURR_ADDR 0xFFC00E64 /* DMA2 Channel 9 Current Address Pointer */
704 #define DMA2_9_CURR_X_COUNT 0xFFC00E70 /* DMA2 Channel 9 Current Inner Loop Count */
705 #define DMA2_9_CURR_Y_COUNT 0xFFC00E78 /* DMA2 Channel 9 Current Outer Loop Count */
706 #define DMA2_9_IRQ_STATUS 0xFFC00E68 /* DMA2 Channel 9 Interrupt/Status Register */
707 #define DMA2_9_PERIPHERAL_MAP 0xFFC00E6C /* DMA2 Channel 9 Peripheral Map Register */
709 #define DMA2_10_CONFIG 0xFFC00E88 /* DMA2 Channel 10 Configuration register */
710 #define DMA2_10_NEXT_DESC_PTR 0xFFC00E80 /* DMA2 Channel 10 Next Descripter Ptr Reg */
711 #define DMA2_10_START_ADDR 0xFFC00E84 /* DMA2 Channel 10 Start Address */
712 #define DMA2_10_X_COUNT 0xFFC00E90 /* DMA2 Channel 10 Inner Loop Count */
713 #define DMA2_10_Y_COUNT 0xFFC00E98 /* DMA2 Channel 10 Outer Loop Count */
714 #define DMA2_10_X_MODIFY 0xFFC00E94 /* DMA2 Channel 10 Inner Loop Addr Increment */
715 #define DMA2_10_Y_MODIFY 0xFFC00E9C /* DMA2 Channel 10 Outer Loop Addr Increment */
716 #define DMA2_10_CURR_DESC_PTR 0xFFC00EA0 /* DMA2 Channel 10 Current Descriptor Pointer */
717 #define DMA2_10_CURR_ADDR 0xFFC00EA4 /* DMA2 Channel 10 Current Address Pointer */
718 #define DMA2_10_CURR_X_COUNT 0xFFC00EB0 /* DMA2 Channel 10 Current Inner Loop Count */
719 #define DMA2_10_CURR_Y_COUNT 0xFFC00EB8 /* DMA2 Channel 10 Current Outer Loop Count */
720 #define DMA2_10_IRQ_STATUS 0xFFC00EA8 /* DMA2 Channel 10 Interrupt/Status Register */
721 #define DMA2_10_PERIPHERAL_MAP 0xFFC00EAC /* DMA2 Channel 10 Peripheral Map Register */
723 #define DMA2_11_CONFIG 0xFFC00EC8 /* DMA2 Channel 11 Configuration register */
724 #define DMA2_11_NEXT_DESC_PTR 0xFFC00EC0 /* DMA2 Channel 11 Next Descripter Ptr Reg */
725 #define DMA2_11_START_ADDR 0xFFC00EC4 /* DMA2 Channel 11 Start Address */
726 #define DMA2_11_X_COUNT 0xFFC00ED0 /* DMA2 Channel 11 Inner Loop Count */
727 #define DMA2_11_Y_COUNT 0xFFC00ED8 /* DMA2 Channel 11 Outer Loop Count */
728 #define DMA2_11_X_MODIFY 0xFFC00ED4 /* DMA2 Channel 11 Inner Loop Addr Increment */
729 #define DMA2_11_Y_MODIFY 0xFFC00EDC /* DMA2 Channel 11 Outer Loop Addr Increment */
730 #define DMA2_11_CURR_DESC_PTR 0xFFC00EE0 /* DMA2 Channel 11 Current Descriptor Pointer */
731 #define DMA2_11_CURR_ADDR 0xFFC00EE4 /* DMA2 Channel 11 Current Address Pointer */
732 #define DMA2_11_CURR_X_COUNT 0xFFC00EF0 /* DMA2 Channel 11 Current Inner Loop Count */
733 #define DMA2_11_CURR_Y_COUNT 0xFFC00EF8 /* DMA2 Channel 11 Current Outer Loop Count */
734 #define DMA2_11_IRQ_STATUS 0xFFC00EE8 /* DMA2 Channel 11 Interrupt/Status Register */
735 #define DMA2_11_PERIPHERAL_MAP 0xFFC00EEC /* DMA2 Channel 11 Peripheral Map Register */
737 /* Memory DMA2 Controller registers (0xFFC0 0E80-0xFFC0 0FFF) */
738 #define MDMA2_D0_CONFIG 0xFFC00F08 /*MemDMA2 Stream 0 Destination Configuration register */
739 #define MDMA2_D0_NEXT_DESC_PTR 0xFFC00F00 /*MemDMA2 Stream 0 Destination Next Descriptor Ptr Reg */
740 #define MDMA2_D0_START_ADDR 0xFFC00F04 /*MemDMA2 Stream 0 Destination Start Address */
741 #define MDMA2_D0_X_COUNT 0xFFC00F10 /*MemDMA2 Stream 0 Dest Inner-Loop Count register */
742 #define MDMA2_D0_Y_COUNT 0xFFC00F18 /*MemDMA2 Stream 0 Dest Outer-Loop Count register */
743 #define MDMA2_D0_X_MODIFY 0xFFC00F14 /*MemDMA2 Stream 0 Dest Inner-Loop Address-Increment */
744 #define MDMA2_D0_Y_MODIFY 0xFFC00F1C /*MemDMA2 Stream 0 Dest Outer-Loop Address-Increment */
745 #define MDMA2_D0_CURR_DESC_PTR 0xFFC00F20 /*MemDMA2 Stream 0 Dest Current Descriptor Ptr reg */
746 #define MDMA2_D0_CURR_ADDR 0xFFC00F24 /*MemDMA2 Stream 0 Destination Current Address */
747 #define MDMA2_D0_CURR_X_COUNT 0xFFC00F30 /*MemDMA2 Stream 0 Dest Current Inner-Loop Count reg */
748 #define MDMA2_D0_CURR_Y_COUNT 0xFFC00F38 /*MemDMA2 Stream 0 Dest Current Outer-Loop Count reg */
749 #define MDMA2_D0_IRQ_STATUS 0xFFC00F28 /*MemDMA2 Stream 0 Dest Interrupt/Status Register */
750 #define MDMA2_D0_PERIPHERAL_MAP 0xFFC00F2C /*MemDMA2 Stream 0 Destination Peripheral Map register */
752 #define MDMA2_S0_CONFIG 0xFFC00F48 /*MemDMA2 Stream 0 Source Configuration register */
753 #define MDMA2_S0_NEXT_DESC_PTR 0xFFC00F40 /*MemDMA2 Stream 0 Source Next Descriptor Ptr Reg */
754 #define MDMA2_S0_START_ADDR 0xFFC00F44 /*MemDMA2 Stream 0 Source Start Address */
755 #define MDMA2_S0_X_COUNT 0xFFC00F50 /*MemDMA2 Stream 0 Source Inner-Loop Count register */
756 #define MDMA2_S0_Y_COUNT 0xFFC00F58 /*MemDMA2 Stream 0 Source Outer-Loop Count register */
757 #define MDMA2_S0_X_MODIFY 0xFFC00F54 /*MemDMA2 Stream 0 Src Inner-Loop Addr-Increment reg */
758 #define MDMA2_S0_Y_MODIFY 0xFFC00F5C /*MemDMA2 Stream 0 Src Outer-Loop Addr-Increment reg */
759 #define MDMA2_S0_CURR_DESC_PTR 0xFFC00F60 /*MemDMA2 Stream 0 Source Current Descriptor Ptr reg */
760 #define MDMA2_S0_CURR_ADDR 0xFFC00F64 /*MemDMA2 Stream 0 Source Current Address */
761 #define MDMA2_S0_CURR_X_COUNT 0xFFC00F70 /*MemDMA2 Stream 0 Src Current Inner-Loop Count reg */
762 #define MDMA2_S0_CURR_Y_COUNT 0xFFC00F78 /*MemDMA2 Stream 0 Src Current Outer-Loop Count reg */
763 #define MDMA2_S0_IRQ_STATUS 0xFFC00F68 /*MemDMA2 Stream 0 Source Interrupt/Status Register */
764 #define MDMA2_S0_PERIPHERAL_MAP 0xFFC00F6C /*MemDMA2 Stream 0 Source Peripheral Map register */
766 #define MDMA2_D1_CONFIG 0xFFC00F88 /*MemDMA2 Stream 1 Destination Configuration register */
767 #define MDMA2_D1_NEXT_DESC_PTR 0xFFC00F80 /*MemDMA2 Stream 1 Destination Next Descriptor Ptr Reg */
768 #define MDMA2_D1_START_ADDR 0xFFC00F84 /*MemDMA2 Stream 1 Destination Start Address */
769 #define MDMA2_D1_X_COUNT 0xFFC00F90 /*MemDMA2 Stream 1 Dest Inner-Loop Count register */
770 #define MDMA2_D1_Y_COUNT 0xFFC00F98 /*MemDMA2 Stream 1 Dest Outer-Loop Count register */
771 #define MDMA2_D1_X_MODIFY 0xFFC00F94 /*MemDMA2 Stream 1 Dest Inner-Loop Address-Increment */
772 #define MDMA2_D1_Y_MODIFY 0xFFC00F9C /*MemDMA2 Stream 1 Dest Outer-Loop Address-Increment */
773 #define MDMA2_D1_CURR_DESC_PTR 0xFFC00FA0 /*MemDMA2 Stream 1 Destination Current Descriptor Ptr */
774 #define MDMA2_D1_CURR_ADDR 0xFFC00FA4 /*MemDMA2 Stream 1 Destination Current Address reg */
775 #define MDMA2_D1_CURR_X_COUNT 0xFFC00FB0 /*MemDMA2 Stream 1 Dest Current Inner-Loop Count reg */
776 #define MDMA2_D1_CURR_Y_COUNT 0xFFC00FB8 /*MemDMA2 Stream 1 Dest Current Outer-Loop Count reg */
777 #define MDMA2_D1_IRQ_STATUS 0xFFC00FA8 /*MemDMA2 Stream 1 Destination Interrupt/Status Reg */
778 #define MDMA2_D1_PERIPHERAL_MAP 0xFFC00FAC /*MemDMA2 Stream 1 Destination Peripheral Map register */
780 #define MDMA2_S1_CONFIG 0xFFC00FC8 /*MemDMA2 Stream 1 Source Configuration register */
781 #define MDMA2_S1_NEXT_DESC_PTR 0xFFC00FC0 /*MemDMA2 Stream 1 Source Next Descriptor Ptr Reg */
782 #define MDMA2_S1_START_ADDR 0xFFC00FC4 /*MemDMA2 Stream 1 Source Start Address */
783 #define MDMA2_S1_X_COUNT 0xFFC00FD0 /*MemDMA2 Stream 1 Source Inner-Loop Count register */
784 #define MDMA2_S1_Y_COUNT 0xFFC00FD8 /*MemDMA2 Stream 1 Source Outer-Loop Count register */
785 #define MDMA2_S1_X_MODIFY 0xFFC00FD4 /*MemDMA2 Stream 1 Src Inner-Loop Address-Increment */
786 #define MDMA2_S1_Y_MODIFY 0xFFC00FDC /*MemDMA2 Stream 1 Source Outer-Loop Address-Increment */
787 #define MDMA2_S1_CURR_DESC_PTR 0xFFC00FE0 /*MemDMA2 Stream 1 Source Current Descriptor Ptr reg */
788 #define MDMA2_S1_CURR_ADDR 0xFFC00FE4 /*MemDMA2 Stream 1 Source Current Address */
789 #define MDMA2_S1_CURR_X_COUNT 0xFFC00FF0 /*MemDMA2 Stream 1 Source Current Inner-Loop Count */
790 #define MDMA2_S1_CURR_Y_COUNT 0xFFC00FF8 /*MemDMA2 Stream 1 Source Current Outer-Loop Count */
791 #define MDMA2_S1_IRQ_STATUS 0xFFC00FE8 /*MemDMA2 Stream 1 Source Interrupt/Status Register */
792 #define MDMA2_S1_PERIPHERAL_MAP 0xFFC00FEC /*MemDMA2 Stream 1 Source Peripheral Map register */
794 /* Internal Memory DMA Registers (0xFFC0_1800 - 0xFFC0_19FF) */
795 #define IMDMA_D0_CONFIG 0xFFC01808 /*IMDMA Stream 0 Destination Configuration */
796 #define IMDMA_D0_NEXT_DESC_PTR 0xFFC01800 /*IMDMA Stream 0 Destination Next Descriptor Ptr Reg */
797 #define IMDMA_D0_START_ADDR 0xFFC01804 /*IMDMA Stream 0 Destination Start Address */
798 #define IMDMA_D0_X_COUNT 0xFFC01810 /*IMDMA Stream 0 Destination Inner-Loop Count */
799 #define IMDMA_D0_Y_COUNT 0xFFC01818 /*IMDMA Stream 0 Destination Outer-Loop Count */
800 #define IMDMA_D0_X_MODIFY 0xFFC01814 /*IMDMA Stream 0 Dest Inner-Loop Address-Increment */
801 #define IMDMA_D0_Y_MODIFY 0xFFC0181C /*IMDMA Stream 0 Dest Outer-Loop Address-Increment */
802 #define IMDMA_D0_CURR_DESC_PTR 0xFFC01820 /*IMDMA Stream 0 Destination Current Descriptor Ptr */
803 #define IMDMA_D0_CURR_ADDR 0xFFC01824 /*IMDMA Stream 0 Destination Current Address */
804 #define IMDMA_D0_CURR_X_COUNT 0xFFC01830 /*IMDMA Stream 0 Destination Current Inner-Loop Count */
805 #define IMDMA_D0_CURR_Y_COUNT 0xFFC01838 /*IMDMA Stream 0 Destination Current Outer-Loop Count */
806 #define IMDMA_D0_IRQ_STATUS 0xFFC01828 /*IMDMA Stream 0 Destination Interrupt/Status */
808 #define IMDMA_S0_CONFIG 0xFFC01848 /*IMDMA Stream 0 Source Configuration */
809 #define IMDMA_S0_NEXT_DESC_PTR 0xFFC01840 /*IMDMA Stream 0 Source Next Descriptor Ptr Reg */
810 #define IMDMA_S0_START_ADDR 0xFFC01844 /*IMDMA Stream 0 Source Start Address */
811 #define IMDMA_S0_X_COUNT 0xFFC01850 /*IMDMA Stream 0 Source Inner-Loop Count */
812 #define IMDMA_S0_Y_COUNT 0xFFC01858 /*IMDMA Stream 0 Source Outer-Loop Count */
813 #define IMDMA_S0_X_MODIFY 0xFFC01854 /*IMDMA Stream 0 Source Inner-Loop Address-Increment */
814 #define IMDMA_S0_Y_MODIFY 0xFFC0185C /*IMDMA Stream 0 Source Outer-Loop Address-Increment */
815 #define IMDMA_S0_CURR_DESC_PTR 0xFFC01860 /*IMDMA Stream 0 Source Current Descriptor Ptr reg */
816 #define IMDMA_S0_CURR_ADDR 0xFFC01864 /*IMDMA Stream 0 Source Current Address */
817 #define IMDMA_S0_CURR_X_COUNT 0xFFC01870 /*IMDMA Stream 0 Source Current Inner-Loop Count */
818 #define IMDMA_S0_CURR_Y_COUNT 0xFFC01878 /*IMDMA Stream 0 Source Current Outer-Loop Count */
819 #define IMDMA_S0_IRQ_STATUS 0xFFC01868 /*IMDMA Stream 0 Source Interrupt/Status */
821 #define IMDMA_D1_CONFIG 0xFFC01888 /*IMDMA Stream 1 Destination Configuration */
822 #define IMDMA_D1_NEXT_DESC_PTR 0xFFC01880 /*IMDMA Stream 1 Destination Next Descriptor Ptr Reg */
823 #define IMDMA_D1_START_ADDR 0xFFC01884 /*IMDMA Stream 1 Destination Start Address */
824 #define IMDMA_D1_X_COUNT 0xFFC01890 /*IMDMA Stream 1 Destination Inner-Loop Count */
825 #define IMDMA_D1_Y_COUNT 0xFFC01898 /*IMDMA Stream 1 Destination Outer-Loop Count */
826 #define IMDMA_D1_X_MODIFY 0xFFC01894 /*IMDMA Stream 1 Dest Inner-Loop Address-Increment */
827 #define IMDMA_D1_Y_MODIFY 0xFFC0189C /*IMDMA Stream 1 Dest Outer-Loop Address-Increment */
828 #define IMDMA_D1_CURR_DESC_PTR 0xFFC018A0 /*IMDMA Stream 1 Destination Current Descriptor Ptr */
829 #define IMDMA_D1_CURR_ADDR 0xFFC018A4 /*IMDMA Stream 1 Destination Current Address */
830 #define IMDMA_D1_CURR_X_COUNT 0xFFC018B0 /*IMDMA Stream 1 Destination Current Inner-Loop Count */
831 #define IMDMA_D1_CURR_Y_COUNT 0xFFC018B8 /*IMDMA Stream 1 Destination Current Outer-Loop Count */
832 #define IMDMA_D1_IRQ_STATUS 0xFFC018A8 /*IMDMA Stream 1 Destination Interrupt/Status */
834 #define IMDMA_S1_CONFIG 0xFFC018C8 /*IMDMA Stream 1 Source Configuration */
835 #define IMDMA_S1_NEXT_DESC_PTR 0xFFC018C0 /*IMDMA Stream 1 Source Next Descriptor Ptr Reg */
836 #define IMDMA_S1_START_ADDR 0xFFC018C4 /*IMDMA Stream 1 Source Start Address */
837 #define IMDMA_S1_X_COUNT 0xFFC018D0 /*IMDMA Stream 1 Source Inner-Loop Count */
838 #define IMDMA_S1_Y_COUNT 0xFFC018D8 /*IMDMA Stream 1 Source Outer-Loop Count */
839 #define IMDMA_S1_X_MODIFY 0xFFC018D4 /*IMDMA Stream 1 Source Inner-Loop Address-Increment */
840 #define IMDMA_S1_Y_MODIFY 0xFFC018DC /*IMDMA Stream 1 Source Outer-Loop Address-Increment */
841 #define IMDMA_S1_CURR_DESC_PTR 0xFFC018E0 /*IMDMA Stream 1 Source Current Descriptor Ptr reg */
842 #define IMDMA_S1_CURR_ADDR 0xFFC018E4 /*IMDMA Stream 1 Source Current Address */
843 #define IMDMA_S1_CURR_X_COUNT 0xFFC018F0 /*IMDMA Stream 1 Source Current Inner-Loop Count */
844 #define IMDMA_S1_CURR_Y_COUNT 0xFFC018F8 /*IMDMA Stream 1 Source Current Outer-Loop Count */
845 #define IMDMA_S1_IRQ_STATUS 0xFFC018E8 /*IMDMA Stream 1 Source Interrupt/Status */
847 /*********************************************************************************** */
848 /* System MMR Register Bits */
849 /******************************************************************************* */
851 /* ********************* PLL AND RESET MASKS ************************ */
853 /* PLL_CTL Masks */
854 #define PLL_CLKIN 0x00000000 /* Pass CLKIN to PLL */
855 #define PLL_CLKIN_DIV2 0x00000001 /* Pass CLKIN/2 to PLL */
856 #define PLL_OFF 0x00000002 /* Shut off PLL clocks */
857 #define STOPCK_OFF 0x00000008 /* Core clock off */
858 #define PDWN 0x00000020 /* Put the PLL in a Deep Sleep state */
859 #define BYPASS 0x00000100 /* Bypass the PLL */
861 /* CHIPID Masks */
862 #define CHIPID_VERSION 0xF0000000
863 #define CHIPID_FAMILY 0x0FFFF000
864 #define CHIPID_MANUFACTURE 0x00000FFE
866 /* PLL_DIV Masks */
867 #define SCLK_DIV(x) (x) /* SCLK = VCO / x */
869 #define CCLK_DIV1 0x00000000 /* CCLK = VCO / 1 */
870 #define CCLK_DIV2 0x00000010 /* CCLK = VCO / 2 */
871 #define CCLK_DIV4 0x00000020 /* CCLK = VCO / 4 */
872 #define CCLK_DIV8 0x00000030 /* CCLK = VCO / 8 */
874 /* PLL_STAT Masks */
875 #define ACTIVE_PLLENABLED 0x0001 /* Processor In Active Mode With PLL Enabled */
876 #define FULL_ON 0x0002 /* Processor In Full On Mode */
877 #define ACTIVE_PLLDISABLED 0x0004 /* Processor In Active Mode With PLL Disabled */
878 #define PLL_LOCKED 0x0020 /* PLL_LOCKCNT Has Been Reached */
880 /* SWRST Mask */
881 #define SYSTEM_RESET 0x0007 /* Initiates a system software reset */
882 #define DOUBLE_FAULT_A 0x0008 /* Core A Double Fault Causes Reset */
883 #define DOUBLE_FAULT_B 0x0010 /* Core B Double Fault Causes Reset */
884 #define SWRST_DBL_FAULT_A 0x0800 /* SWRST Core A Double Fault */
885 #define SWRST_DBL_FAULT_B 0x1000 /* SWRST Core B Double Fault */
886 #define SWRST_WDT_B 0x2000 /* SWRST Watchdog B */
887 #define SWRST_WDT_A 0x4000 /* SWRST Watchdog A */
888 #define SWRST_OCCURRED 0x8000 /* SWRST Status */
890 /* ************* SYSTEM INTERRUPT CONTROLLER MASKS ***************** */
892 /* SICu_IARv Masks */
893 /* u = A or B */
894 /* v = 0 to 7 */
895 /* w = 0 or 1 */
897 /* Per_number = 0 to 63 */
898 /* IVG_number = 7 to 15 */
899 #define Peripheral_IVG(Per_number, IVG_number) \
900 ((IVG_number) - 7) << (((Per_number) % 8) * 4) /* Peripheral #Per_number assigned IVG #IVG_number */
901 /* Usage: r0.l = lo(Peripheral_IVG(62, 10)); */
902 /* r0.h = hi(Peripheral_IVG(62, 10)); */
904 /* SICx_IMASKw Masks */
905 /* masks are 32 bit wide, so two writes reguired for "64 bit" wide registers */
906 #define SIC_UNMASK_ALL 0x00000000 /* Unmask all peripheral interrupts */
907 #define SIC_MASK_ALL 0xFFFFFFFF /* Mask all peripheral interrupts */
908 #define SIC_MASK(x) (1 << (x)) /* Mask Peripheral #x interrupt */
909 #define SIC_UNMASK(x) (0xFFFFFFFF ^ (1 << (x))) /* Unmask Peripheral #x interrupt */
911 /* SIC_IWR Masks */
912 #define IWR_DISABLE_ALL 0x00000000 /* Wakeup Disable all peripherals */
913 #define IWR_ENABLE_ALL 0xFFFFFFFF /* Wakeup Enable all peripherals */
914 /* x = pos 0 to 31, for 32-63 use value-32 */
915 #define IWR_ENABLE(x) (1 << (x)) /* Wakeup Enable Peripheral #x */
916 #define IWR_DISABLE(x) (0xFFFFFFFF ^ (1 << (x))) /* Wakeup Disable Peripheral #x */
918 /* ***************************** UART CONTROLLER MASKS ********************** */
920 /* UART_LCR Register */
922 #define DLAB 0x80
923 #define SB 0x40
924 #define STP 0x20
925 #define EPS 0x10
926 #define PEN 0x08
927 #define STB 0x04
928 #define WLS(x) ((x-5) & 0x03)
930 #define DLAB_P 0x07
931 #define SB_P 0x06
932 #define STP_P 0x05
933 #define EPS_P 0x04
934 #define PEN_P 0x03
935 #define STB_P 0x02
936 #define WLS_P1 0x01
937 #define WLS_P0 0x00
939 /* UART_MCR Register */
940 #define LOOP_ENA 0x10
941 #define LOOP_ENA_P 0x04
943 /* UART_LSR Register */
944 #define TEMT 0x40
945 #define THRE 0x20
946 #define BI 0x10
947 #define FE 0x08
948 #define PE 0x04
949 #define OE 0x02
950 #define DR 0x01
952 #define TEMP_P 0x06
953 #define THRE_P 0x05
954 #define BI_P 0x04
955 #define FE_P 0x03
956 #define PE_P 0x02
957 #define OE_P 0x01
958 #define DR_P 0x00
960 /* UART_IER Register */
961 #define ELSI 0x04
962 #define ETBEI 0x02
963 #define ERBFI 0x01
965 #define ELSI_P 0x02
966 #define ETBEI_P 0x01
967 #define ERBFI_P 0x00
969 /* UART_IIR Register */
970 #define STATUS(x) ((x << 1) & 0x06)
971 #define NINT 0x01
972 #define STATUS_P1 0x02
973 #define STATUS_P0 0x01
974 #define NINT_P 0x00
975 #define IIR_TX_READY 0x02 /* UART_THR empty */
976 #define IIR_RX_READY 0x04 /* Receive data ready */
977 #define IIR_LINE_CHANGE 0x06 /* Receive line status */
978 #define IIR_STATUS 0x06
980 /* UART_GCTL Register */
981 #define FFE 0x20
982 #define FPE 0x10
983 #define RPOLC 0x08
984 #define TPOLC 0x04
985 #define IREN 0x02
986 #define UCEN 0x01
988 #define FFE_P 0x05
989 #define FPE_P 0x04
990 #define RPOLC_P 0x03
991 #define TPOLC_P 0x02
992 #define IREN_P 0x01
993 #define UCEN_P 0x00
995 /* ********** SERIAL PORT MASKS ********************** */
997 /* SPORTx_TCR1 Masks */
998 #define TSPEN 0x0001 /* TX enable */
999 #define ITCLK 0x0002 /* Internal TX Clock Select */
1000 #define TDTYPE 0x000C /* TX Data Formatting Select */
1001 #define TLSBIT 0x0010 /* TX Bit Order */
1002 #define ITFS 0x0200 /* Internal TX Frame Sync Select */
1003 #define TFSR 0x0400 /* TX Frame Sync Required Select */
1004 #define DITFS 0x0800 /* Data Independent TX Frame Sync Select */
1005 #define LTFS 0x1000 /* Low TX Frame Sync Select */
1006 #define LATFS 0x2000 /* Late TX Frame Sync Select */
1007 #define TCKFE 0x4000 /* TX Clock Falling Edge Select */
1009 /* SPORTx_TCR2 Masks */
1010 #define SLEN 0x001F /*TX Word Length */
1011 #define TXSE 0x0100 /*TX Secondary Enable */
1012 #define TSFSE 0x0200 /*TX Stereo Frame Sync Enable */
1013 #define TRFST 0x0400 /*TX Right-First Data Order */
1015 /* SPORTx_RCR1 Masks */
1016 #define RSPEN 0x0001 /* RX enable */
1017 #define IRCLK 0x0002 /* Internal RX Clock Select */
1018 #define RDTYPE 0x000C /* RX Data Formatting Select */
1019 #define RULAW 0x0008 /* u-Law enable */
1020 #define RALAW 0x000C /* A-Law enable */
1021 #define RLSBIT 0x0010 /* RX Bit Order */
1022 #define IRFS 0x0200 /* Internal RX Frame Sync Select */
1023 #define RFSR 0x0400 /* RX Frame Sync Required Select */
1024 #define LRFS 0x1000 /* Low RX Frame Sync Select */
1025 #define LARFS 0x2000 /* Late RX Frame Sync Select */
1026 #define RCKFE 0x4000 /* RX Clock Falling Edge Select */
1028 /* SPORTx_RCR2 Masks */
1029 #define SLEN 0x001F /*RX Word Length */
1030 #define RXSE 0x0100 /*RX Secondary Enable */
1031 #define RSFSE 0x0200 /*RX Stereo Frame Sync Enable */
1032 #define RRFST 0x0400 /*Right-First Data Order */
1034 /*SPORTx_STAT Masks */
1035 #define RXNE 0x0001 /*RX FIFO Not Empty Status */
1036 #define RUVF 0x0002 /*RX Underflow Status */
1037 #define ROVF 0x0004 /*RX Overflow Status */
1038 #define TXF 0x0008 /*TX FIFO Full Status */
1039 #define TUVF 0x0010 /*TX Underflow Status */
1040 #define TOVF 0x0020 /*TX Overflow Status */
1041 #define TXHRE 0x0040 /*TX Hold Register Empty */
1043 /*SPORTx_MCMC1 Masks */
1044 #define SP_WSIZE 0x0000F000 /*Multichannel Window Size Field */
1045 #define SP_WOFF 0x000003FF /*Multichannel Window Offset Field */
1047 /*SPORTx_MCMC2 Masks */
1048 #define MCCRM 0x00000003 /*Multichannel Clock Recovery Mode */
1049 #define MCDTXPE 0x00000004 /*Multichannel DMA Transmit Packing */
1050 #define MCDRXPE 0x00000008 /*Multichannel DMA Receive Packing */
1051 #define MCMEN 0x00000010 /*Multichannel Frame Mode Enable */
1052 #define FSDR 0x00000080 /*Multichannel Frame Sync to Data Relationship */
1053 #define MFD 0x0000F000 /*Multichannel Frame Delay */
1055 /* ********* PARALLEL PERIPHERAL INTERFACE (PPI) MASKS **************** */
1057 /* PPI_CONTROL Masks */
1058 #define PORT_EN 0x00000001 /* PPI Port Enable */
1059 #define PORT_DIR 0x00000002 /* PPI Port Direction */
1060 #define XFR_TYPE 0x0000000C /* PPI Transfer Type */
1061 #define PORT_CFG 0x00000030 /* PPI Port Configuration */
1062 #define FLD_SEL 0x00000040 /* PPI Active Field Select */
1063 #define PACK_EN 0x00000080 /* PPI Packing Mode */
1064 #define DMA32 0x00000100 /* PPI 32-bit DMA Enable */
1065 #define SKIP_EN 0x00000200 /* PPI Skip Element Enable */
1066 #define SKIP_EO 0x00000400 /* PPI Skip Even/Odd Elements */
1067 #define DLENGTH 0x00003800 /* PPI Data Length */
1068 #define DLEN_8 0x0 /* PPI Data Length mask for DLEN=8 */
1069 #define DLEN(x) (((x-9) & 0x07) << 11) /* PPI Data Length (only works for x=10-->x=16) */
1070 #define POL 0x0000C000 /* PPI Signal Polarities */
1072 /* PPI_STATUS Masks */
1073 #define FLD 0x00000400 /* Field Indicator */
1074 #define FT_ERR 0x00000800 /* Frame Track Error */
1075 #define OVR 0x00001000 /* FIFO Overflow Error */
1076 #define UNDR 0x00002000 /* FIFO Underrun Error */
1077 #define ERR_DET 0x00004000 /* Error Detected Indicator */
1078 #define ERR_NCOR 0x00008000 /* Error Not Corrected Indicator */
1080 /* ********** DMA CONTROLLER MASKS *********************8 */
1082 /* DMAx_CONFIG, MDMA_yy_CONFIG, IMDMA_yy_CONFIG Masks */
1083 #define DMAEN 0x00000001 /* Channel Enable */
1084 #define WNR 0x00000002 /* Channel Direction (W/R*) */
1085 #define WDSIZE_8 0x00000000 /* Word Size 8 bits */
1086 #define WDSIZE_16 0x00000004 /* Word Size 16 bits */
1087 #define WDSIZE_32 0x00000008 /* Word Size 32 bits */
1088 #define DMA2D 0x00000010 /* 2D/1D* Mode */
1089 #define RESTART 0x00000020 /* Restart */
1090 #define DI_SEL 0x00000040 /* Data Interrupt Select */
1091 #define DI_EN 0x00000080 /* Data Interrupt Enable */
1092 #define NDSIZE_0 0x0000 /* Next Descriptor Size = 0 (Stop/Autobuffer) */
1093 #define NDSIZE_1 0x0100 /* Next Descriptor Size = 1 */
1094 #define NDSIZE_2 0x0200 /* Next Descriptor Size = 2 */
1095 #define NDSIZE_3 0x0300 /* Next Descriptor Size = 3 */
1096 #define NDSIZE_4 0x0400 /* Next Descriptor Size = 4 */
1097 #define NDSIZE_5 0x0500 /* Next Descriptor Size = 5 */
1098 #define NDSIZE_6 0x0600 /* Next Descriptor Size = 6 */
1099 #define NDSIZE_7 0x0700 /* Next Descriptor Size = 7 */
1100 #define NDSIZE_8 0x0800 /* Next Descriptor Size = 8 */
1101 #define NDSIZE_9 0x0900 /* Next Descriptor Size = 9 */
1102 #define NDSIZE 0x00000900 /* Next Descriptor Size */
1103 #define DMAFLOW 0x00007000 /* Flow Control */
1104 #define DMAFLOW_STOP 0x0000 /* Stop Mode */
1105 #define DMAFLOW_AUTO 0x1000 /* Autobuffer Mode */
1106 #define DMAFLOW_ARRAY 0x4000 /* Descriptor Array Mode */
1107 #define DMAFLOW_SMALL 0x6000 /* Small Model Descriptor List Mode */
1108 #define DMAFLOW_LARGE 0x7000 /* Large Model Descriptor List Mode */
1110 #define DMAEN_P 0 /* Channel Enable */
1111 #define WNR_P 1 /* Channel Direction (W/R*) */
1112 #define DMA2D_P 4 /* 2D/1D* Mode */
1113 #define RESTART_P 5 /* Restart */
1114 #define DI_SEL_P 6 /* Data Interrupt Select */
1115 #define DI_EN_P 7 /* Data Interrupt Enable */
1117 /* DMAx_IRQ_STATUS, MDMA_yy_IRQ_STATUS, IMDMA_yy_IRQ_STATUS Masks */
1119 #define DMA_DONE 0x00000001 /* DMA Done Indicator */
1120 #define DMA_ERR 0x00000002 /* DMA Error Indicator */
1121 #define DFETCH 0x00000004 /* Descriptor Fetch Indicator */
1122 #define DMA_RUN 0x00000008 /* DMA Running Indicator */
1124 #define DMA_DONE_P 0 /* DMA Done Indicator */
1125 #define DMA_ERR_P 1 /* DMA Error Indicator */
1126 #define DFETCH_P 2 /* Descriptor Fetch Indicator */
1127 #define DMA_RUN_P 3 /* DMA Running Indicator */
1129 /* DMAx_PERIPHERAL_MAP, MDMA_yy_PERIPHERAL_MAP, IMDMA_yy_PERIPHERAL_MAP Masks */
1131 #define CTYPE 0x00000040 /* DMA Channel Type Indicator */
1132 #define CTYPE_P 6 /* DMA Channel Type Indicator BIT POSITION */
1133 #define PCAP8 0x00000080 /* DMA 8-bit Operation Indicator */
1134 #define PCAP16 0x00000100 /* DMA 16-bit Operation Indicator */
1135 #define PCAP32 0x00000200 /* DMA 32-bit Operation Indicator */
1136 #define PCAPWR 0x00000400 /* DMA Write Operation Indicator */
1137 #define PCAPRD 0x00000800 /* DMA Read Operation Indicator */
1138 #define PMAP 0x00007000 /* DMA Peripheral Map Field */
1140 /* ************* GENERAL PURPOSE TIMER MASKS ******************** */
1142 /* PWM Timer bit definitions */
1144 /* TIMER_ENABLE Register */
1145 #define TIMEN0 0x0001
1146 #define TIMEN1 0x0002
1147 #define TIMEN2 0x0004
1148 #define TIMEN3 0x0008
1149 #define TIMEN4 0x0010
1150 #define TIMEN5 0x0020
1151 #define TIMEN6 0x0040
1152 #define TIMEN7 0x0080
1153 #define TIMEN8 0x0001
1154 #define TIMEN9 0x0002
1155 #define TIMEN10 0x0004
1156 #define TIMEN11 0x0008
1158 #define TIMEN0_P 0x00
1159 #define TIMEN1_P 0x01
1160 #define TIMEN2_P 0x02
1161 #define TIMEN3_P 0x03
1162 #define TIMEN4_P 0x04
1163 #define TIMEN5_P 0x05
1164 #define TIMEN6_P 0x06
1165 #define TIMEN7_P 0x07
1166 #define TIMEN8_P 0x00
1167 #define TIMEN9_P 0x01
1168 #define TIMEN10_P 0x02
1169 #define TIMEN11_P 0x03
1171 /* TIMER_DISABLE Register */
1172 #define TIMDIS0 0x0001
1173 #define TIMDIS1 0x0002
1174 #define TIMDIS2 0x0004
1175 #define TIMDIS3 0x0008
1176 #define TIMDIS4 0x0010
1177 #define TIMDIS5 0x0020
1178 #define TIMDIS6 0x0040
1179 #define TIMDIS7 0x0080
1180 #define TIMDIS8 0x0001
1181 #define TIMDIS9 0x0002
1182 #define TIMDIS10 0x0004
1183 #define TIMDIS11 0x0008
1185 #define TIMDIS0_P 0x00
1186 #define TIMDIS1_P 0x01
1187 #define TIMDIS2_P 0x02
1188 #define TIMDIS3_P 0x03
1189 #define TIMDIS4_P 0x04
1190 #define TIMDIS5_P 0x05
1191 #define TIMDIS6_P 0x06
1192 #define TIMDIS7_P 0x07
1193 #define TIMDIS8_P 0x00
1194 #define TIMDIS9_P 0x01
1195 #define TIMDIS10_P 0x02
1196 #define TIMDIS11_P 0x03
1198 /* TIMER_STATUS Register */
1199 #define TIMIL0 0x00000001
1200 #define TIMIL1 0x00000002
1201 #define TIMIL2 0x00000004
1202 #define TIMIL3 0x00000008
1203 #define TIMIL4 0x00010000
1204 #define TIMIL5 0x00020000
1205 #define TIMIL6 0x00040000
1206 #define TIMIL7 0x00080000
1207 #define TIMIL8 0x0001
1208 #define TIMIL9 0x0002
1209 #define TIMIL10 0x0004
1210 #define TIMIL11 0x0008
1211 #define TOVF_ERR0 0x00000010
1212 #define TOVF_ERR1 0x00000020
1213 #define TOVF_ERR2 0x00000040
1214 #define TOVF_ERR3 0x00000080
1215 #define TOVF_ERR4 0x00100000
1216 #define TOVF_ERR5 0x00200000
1217 #define TOVF_ERR6 0x00400000
1218 #define TOVF_ERR7 0x00800000
1219 #define TOVF_ERR8 0x0010
1220 #define TOVF_ERR9 0x0020
1221 #define TOVF_ERR10 0x0040
1222 #define TOVF_ERR11 0x0080
1223 #define TRUN0 0x00001000
1224 #define TRUN1 0x00002000
1225 #define TRUN2 0x00004000
1226 #define TRUN3 0x00008000
1227 #define TRUN4 0x10000000
1228 #define TRUN5 0x20000000
1229 #define TRUN6 0x40000000
1230 #define TRUN7 0x80000000
1231 #define TRUN8 0x1000
1232 #define TRUN9 0x2000
1233 #define TRUN10 0x4000
1234 #define TRUN11 0x8000
1236 #define TIMIL0_P 0x00
1237 #define TIMIL1_P 0x01
1238 #define TIMIL2_P 0x02
1239 #define TIMIL3_P 0x03
1240 #define TIMIL4_P 0x10
1241 #define TIMIL5_P 0x11
1242 #define TIMIL6_P 0x12
1243 #define TIMIL7_P 0x13
1244 #define TIMIL8_P 0x00
1245 #define TIMIL9_P 0x01
1246 #define TIMIL10_P 0x02
1247 #define TIMIL11_P 0x03
1248 #define TOVF_ERR0_P 0x04
1249 #define TOVF_ERR1_P 0x05
1250 #define TOVF_ERR2_P 0x06
1251 #define TOVF_ERR3_P 0x07
1252 #define TOVF_ERR4_P 0x14
1253 #define TOVF_ERR5_P 0x15
1254 #define TOVF_ERR6_P 0x16
1255 #define TOVF_ERR7_P 0x17
1256 #define TOVF_ERR8_P 0x04
1257 #define TOVF_ERR9_P 0x05
1258 #define TOVF_ERR10_P 0x06
1259 #define TOVF_ERR11_P 0x07
1260 #define TRUN0_P 0x0C
1261 #define TRUN1_P 0x0D
1262 #define TRUN2_P 0x0E
1263 #define TRUN3_P 0x0F
1264 #define TRUN4_P 0x1C
1265 #define TRUN5_P 0x1D
1266 #define TRUN6_P 0x1E
1267 #define TRUN7_P 0x1F
1268 #define TRUN8_P 0x0C
1269 #define TRUN9_P 0x0D
1270 #define TRUN10_P 0x0E
1271 #define TRUN11_P 0x0F
1273 /* Alternate Deprecated Macros Provided For Backwards Code Compatibility */
1274 #define TOVL_ERR0 TOVF_ERR0
1275 #define TOVL_ERR1 TOVF_ERR1
1276 #define TOVL_ERR2 TOVF_ERR2
1277 #define TOVL_ERR3 TOVF_ERR3
1278 #define TOVL_ERR4 TOVF_ERR4
1279 #define TOVL_ERR5 TOVF_ERR5
1280 #define TOVL_ERR6 TOVF_ERR6
1281 #define TOVL_ERR7 TOVF_ERR7
1282 #define TOVL_ERR8 TOVF_ERR8
1283 #define TOVL_ERR9 TOVF_ERR9
1284 #define TOVL_ERR10 TOVF_ERR10
1285 #define TOVL_ERR11 TOVF_ERR11
1286 #define TOVL_ERR0_P TOVF_ERR0_P
1287 #define TOVL_ERR1_P TOVF_ERR1_P
1288 #define TOVL_ERR2_P TOVF_ERR2_P
1289 #define TOVL_ERR3_P TOVF_ERR3_P
1290 #define TOVL_ERR4_P TOVF_ERR4_P
1291 #define TOVL_ERR5_P TOVF_ERR5_P
1292 #define TOVL_ERR6_P TOVF_ERR6_P
1293 #define TOVL_ERR7_P TOVF_ERR7_P
1294 #define TOVL_ERR8_P TOVF_ERR8_P
1295 #define TOVL_ERR9_P TOVF_ERR9_P
1296 #define TOVL_ERR10_P TOVF_ERR10_P
1297 #define TOVL_ERR11_P TOVF_ERR11_P
1299 /* TIMERx_CONFIG Registers */
1300 #define PWM_OUT 0x0001
1301 #define WDTH_CAP 0x0002
1302 #define EXT_CLK 0x0003
1303 #define PULSE_HI 0x0004
1304 #define PERIOD_CNT 0x0008
1305 #define IRQ_ENA 0x0010
1306 #define TIN_SEL 0x0020
1307 #define OUT_DIS 0x0040
1308 #define CLK_SEL 0x0080
1309 #define TOGGLE_HI 0x0100
1310 #define EMU_RUN 0x0200
1311 #define ERR_TYP(x) ((x & 0x03) << 14)
1313 #define TMODE_P0 0x00
1314 #define TMODE_P1 0x01
1315 #define PULSE_HI_P 0x02
1316 #define PERIOD_CNT_P 0x03
1317 #define IRQ_ENA_P 0x04
1318 #define TIN_SEL_P 0x05
1319 #define OUT_DIS_P 0x06
1320 #define CLK_SEL_P 0x07
1321 #define TOGGLE_HI_P 0x08
1322 #define EMU_RUN_P 0x09
1323 #define ERR_TYP_P0 0x0E
1324 #define ERR_TYP_P1 0x0F
1326 /*/ ****************** PROGRAMMABLE FLAG MASKS ********************* */
1328 /* General Purpose IO (0xFFC00700 - 0xFFC007FF) Masks */
1329 #define PF0 0x0001
1330 #define PF1 0x0002
1331 #define PF2 0x0004
1332 #define PF3 0x0008
1333 #define PF4 0x0010
1334 #define PF5 0x0020
1335 #define PF6 0x0040
1336 #define PF7 0x0080
1337 #define PF8 0x0100
1338 #define PF9 0x0200
1339 #define PF10 0x0400
1340 #define PF11 0x0800
1341 #define PF12 0x1000
1342 #define PF13 0x2000
1343 #define PF14 0x4000
1344 #define PF15 0x8000
1346 /* General Purpose IO (0xFFC00700 - 0xFFC007FF) BIT POSITIONS */
1347 #define PF0_P 0
1348 #define PF1_P 1
1349 #define PF2_P 2
1350 #define PF3_P 3
1351 #define PF4_P 4
1352 #define PF5_P 5
1353 #define PF6_P 6
1354 #define PF7_P 7
1355 #define PF8_P 8
1356 #define PF9_P 9
1357 #define PF10_P 10
1358 #define PF11_P 11
1359 #define PF12_P 12
1360 #define PF13_P 13
1361 #define PF14_P 14
1362 #define PF15_P 15
1364 /* *********** SERIAL PERIPHERAL INTERFACE (SPI) MASKS **************** */
1366 /* SPI_CTL Masks */
1367 #define TIMOD 0x00000003 /* Transfer initiation mode and interrupt generation */
1368 #define SZ 0x00000004 /* Send Zero (=0) or last (=1) word when TDBR empty. */
1369 #define GM 0x00000008 /* When RDBR full, get more (=1) data or discard (=0) incoming Data */
1370 #define PSSE 0x00000010 /* Enable (=1) Slave-Select input for Master. */
1371 #define EMISO 0x00000020 /* Enable (=1) MISO pin as an output. */
1372 #define SIZE 0x00000100 /* Word length (0 => 8 bits, 1 => 16 bits) */
1373 #define LSBF 0x00000200 /* Data format (0 => MSB sent/received first 1 => LSB sent/received first) */
1374 #define CPHA 0x00000400 /* Clock phase (0 => SPICLK starts toggling in middle of xfer, 1 => SPICLK toggles at the beginning of xfer. */
1375 #define CPOL 0x00000800 /* Clock polarity (0 => active-high, 1 => active-low) */
1376 #define MSTR 0x00001000 /* Configures SPI as master (=1) or slave (=0) */
1377 #define WOM 0x00002000 /* Open drain (=1) data output enable (for MOSI and MISO) */
1378 #define SPE 0x00004000 /* SPI module enable (=1), disable (=0) */
1380 /* SPI_FLG Masks */
1381 #define FLS1 0x00000002 /* Enables (=1) SPI_FLOUT1 as flag output for SPI Slave-select */
1382 #define FLS2 0x00000004 /* Enables (=1) SPI_FLOUT2 as flag output for SPI Slave-select */
1383 #define FLS3 0x00000008 /* Enables (=1) SPI_FLOUT3 as flag output for SPI Slave-select */
1384 #define FLS4 0x00000010 /* Enables (=1) SPI_FLOUT4 as flag output for SPI Slave-select */
1385 #define FLS5 0x00000020 /* Enables (=1) SPI_FLOUT5 as flag output for SPI Slave-select */
1386 #define FLS6 0x00000040 /* Enables (=1) SPI_FLOUT6 as flag output for SPI Slave-select */
1387 #define FLS7 0x00000080 /* Enables (=1) SPI_FLOUT7 as flag output for SPI Slave-select */
1388 #define FLG1 0x00000200 /* Activates (=0) SPI_FLOUT1 as flag output for SPI Slave-select */
1389 #define FLG2 0x00000400 /* Activates (=0) SPI_FLOUT2 as flag output for SPI Slave-select */
1390 #define FLG3 0x00000800 /* Activates (=0) SPI_FLOUT3 as flag output for SPI Slave-select */
1391 #define FLG4 0x00001000 /* Activates (=0) SPI_FLOUT4 as flag output for SPI Slave-select */
1392 #define FLG5 0x00002000 /* Activates (=0) SPI_FLOUT5 as flag output for SPI Slave-select */
1393 #define FLG6 0x00004000 /* Activates (=0) SPI_FLOUT6 as flag output for SPI Slave-select */
1394 #define FLG7 0x00008000 /* Activates (=0) SPI_FLOUT7 as flag output for SPI Slave-select */
1396 /* SPI_FLG Bit Positions */
1397 #define FLS1_P 0x00000001 /* Enables (=1) SPI_FLOUT1 as flag output for SPI Slave-select */
1398 #define FLS2_P 0x00000002 /* Enables (=1) SPI_FLOUT2 as flag output for SPI Slave-select */
1399 #define FLS3_P 0x00000003 /* Enables (=1) SPI_FLOUT3 as flag output for SPI Slave-select */
1400 #define FLS4_P 0x00000004 /* Enables (=1) SPI_FLOUT4 as flag output for SPI Slave-select */
1401 #define FLS5_P 0x00000005 /* Enables (=1) SPI_FLOUT5 as flag output for SPI Slave-select */
1402 #define FLS6_P 0x00000006 /* Enables (=1) SPI_FLOUT6 as flag output for SPI Slave-select */
1403 #define FLS7_P 0x00000007 /* Enables (=1) SPI_FLOUT7 as flag output for SPI Slave-select */
1404 #define FLG1_P 0x00000009 /* Activates (=0) SPI_FLOUT1 as flag output for SPI Slave-select */
1405 #define FLG2_P 0x0000000A /* Activates (=0) SPI_FLOUT2 as flag output for SPI Slave-select */
1406 #define FLG3_P 0x0000000B /* Activates (=0) SPI_FLOUT3 as flag output for SPI Slave-select */
1407 #define FLG4_P 0x0000000C /* Activates (=0) SPI_FLOUT4 as flag output for SPI Slave-select */
1408 #define FLG5_P 0x0000000D /* Activates (=0) SPI_FLOUT5 as flag output for SPI Slave-select */
1409 #define FLG6_P 0x0000000E /* Activates (=0) SPI_FLOUT6 as flag output for SPI Slave-select */
1410 #define FLG7_P 0x0000000F /* Activates (=0) SPI_FLOUT7 as flag output for SPI Slave-select */
1412 /* SPI_STAT Masks */
1413 #define SPIF 0x00000001 /* Set (=1) when SPI single-word transfer complete */
1414 #define MODF 0x00000002 /* Set (=1) in a master device when some other device tries to become master */
1415 #define TXE 0x00000004 /* Set (=1) when transmission occurs with no new data in SPI_TDBR */
1416 #define TXS 0x00000008 /* SPI_TDBR Data Buffer Status (0=Empty, 1=Full) */
1417 #define RBSY 0x00000010 /* Set (=1) when data is received with RDBR full */
1418 #define RXS 0x00000020 /* SPI_RDBR Data Buffer Status (0=Empty, 1=Full) */
1419 #define TXCOL 0x00000040 /* When set (=1), corrupt data may have been transmitted */
1421 /* ********************* ASYNCHRONOUS MEMORY CONTROLLER MASKS ************* */
1423 /* AMGCTL Masks */
1424 #define AMCKEN 0x0001 /* Enable CLKOUT */
1425 #define AMBEN_B0 0x0002 /* Enable Asynchronous Memory Bank 0 only */
1426 #define AMBEN_B0_B1 0x0004 /* Enable Asynchronous Memory Banks 0 & 1 only */
1427 #define AMBEN_B0_B1_B2 0x0006 /* Enable Asynchronous Memory Banks 0, 1, and 2 */
1428 #define AMBEN_ALL 0x0008 /* Enable Asynchronous Memory Banks (all) 0, 1, 2, and 3 */
1429 #define B0_PEN 0x0010 /* Enable 16-bit packing Bank 0 */
1430 #define B1_PEN 0x0020 /* Enable 16-bit packing Bank 1 */
1431 #define B2_PEN 0x0040 /* Enable 16-bit packing Bank 2 */
1432 #define B3_PEN 0x0080 /* Enable 16-bit packing Bank 3 */
1434 /* AMGCTL Bit Positions */
1435 #define AMCKEN_P 0x00000000 /* Enable CLKOUT */
1436 #define AMBEN_P0 0x00000001 /* Asynchronous Memory Enable, 000 - banks 0-3 disabled, 001 - Bank 0 enabled */
1437 #define AMBEN_P1 0x00000002 /* Asynchronous Memory Enable, 010 - banks 0&1 enabled, 011 - banks 0-3 enabled */
1438 #define AMBEN_P2 0x00000003 /* Asynchronous Memory Enable, 1xx - All banks (bank 0, 1, 2, and 3) enabled */
1439 #define B0_PEN_P 0x004 /* Enable 16-bit packing Bank 0 */
1440 #define B1_PEN_P 0x005 /* Enable 16-bit packing Bank 1 */
1441 #define B2_PEN_P 0x006 /* Enable 16-bit packing Bank 2 */
1442 #define B3_PEN_P 0x007 /* Enable 16-bit packing Bank 3 */
1444 /* AMBCTL0 Masks */
1445 #define B0RDYEN 0x00000001 /* Bank 0 RDY Enable, 0=disable, 1=enable */
1446 #define B0RDYPOL 0x00000002 /* Bank 0 RDY Active high, 0=active low, 1=active high */
1447 #define B0TT_1 0x00000004 /* Bank 0 Transition Time from Read to Write = 1 cycle */
1448 #define B0TT_2 0x00000008 /* Bank 0 Transition Time from Read to Write = 2 cycles */
1449 #define B0TT_3 0x0000000C /* Bank 0 Transition Time from Read to Write = 3 cycles */
1450 #define B0TT_4 0x00000000 /* Bank 0 Transition Time from Read to Write = 4 cycles */
1451 #define B0ST_1 0x00000010 /* Bank 0 Setup Time from AOE asserted to Read/Write asserted=1 cycle */
1452 #define B0ST_2 0x00000020 /* Bank 0 Setup Time from AOE asserted to Read/Write asserted=2 cycles */
1453 #define B0ST_3 0x00000030 /* Bank 0 Setup Time from AOE asserted to Read/Write asserted=3 cycles */
1454 #define B0ST_4 0x00000000 /* Bank 0 Setup Time from AOE asserted to Read/Write asserted=4 cycles */
1455 #define B0HT_1 0x00000040 /* Bank 0 Hold Time from Read/Write deasserted to AOE deasserted = 1 cycle */
1456 #define B0HT_2 0x00000080 /* Bank 0 Hold Time from Read/Write deasserted to AOE deasserted = 2 cycles */
1457 #define B0HT_3 0x000000C0 /* Bank 0 Hold Time from Read/Write deasserted to AOE deasserted = 3 cycles */
1458 #define B0HT_0 0x00000000 /* Bank 0 Hold Time from Read/Write deasserted to AOE deasserted = 0 cycles */
1459 #define B0RAT_1 0x00000100 /* Bank 0 Read Access Time = 1 cycle */
1460 #define B0RAT_2 0x00000200 /* Bank 0 Read Access Time = 2 cycles */
1461 #define B0RAT_3 0x00000300 /* Bank 0 Read Access Time = 3 cycles */
1462 #define B0RAT_4 0x00000400 /* Bank 0 Read Access Time = 4 cycles */
1463 #define B0RAT_5 0x00000500 /* Bank 0 Read Access Time = 5 cycles */
1464 #define B0RAT_6 0x00000600 /* Bank 0 Read Access Time = 6 cycles */
1465 #define B0RAT_7 0x00000700 /* Bank 0 Read Access Time = 7 cycles */
1466 #define B0RAT_8 0x00000800 /* Bank 0 Read Access Time = 8 cycles */
1467 #define B0RAT_9 0x00000900 /* Bank 0 Read Access Time = 9 cycles */
1468 #define B0RAT_10 0x00000A00 /* Bank 0 Read Access Time = 10 cycles */
1469 #define B0RAT_11 0x00000B00 /* Bank 0 Read Access Time = 11 cycles */
1470 #define B0RAT_12 0x00000C00 /* Bank 0 Read Access Time = 12 cycles */
1471 #define B0RAT_13 0x00000D00 /* Bank 0 Read Access Time = 13 cycles */
1472 #define B0RAT_14 0x00000E00 /* Bank 0 Read Access Time = 14 cycles */
1473 #define B0RAT_15 0x00000F00 /* Bank 0 Read Access Time = 15 cycles */
1474 #define B0WAT_1 0x00001000 /* Bank 0 Write Access Time = 1 cycle */
1475 #define B0WAT_2 0x00002000 /* Bank 0 Write Access Time = 2 cycles */
1476 #define B0WAT_3 0x00003000 /* Bank 0 Write Access Time = 3 cycles */
1477 #define B0WAT_4 0x00004000 /* Bank 0 Write Access Time = 4 cycles */
1478 #define B0WAT_5 0x00005000 /* Bank 0 Write Access Time = 5 cycles */
1479 #define B0WAT_6 0x00006000 /* Bank 0 Write Access Time = 6 cycles */
1480 #define B0WAT_7 0x00007000 /* Bank 0 Write Access Time = 7 cycles */
1481 #define B0WAT_8 0x00008000 /* Bank 0 Write Access Time = 8 cycles */
1482 #define B0WAT_9 0x00009000 /* Bank 0 Write Access Time = 9 cycles */
1483 #define B0WAT_10 0x0000A000 /* Bank 0 Write Access Time = 10 cycles */
1484 #define B0WAT_11 0x0000B000 /* Bank 0 Write Access Time = 11 cycles */
1485 #define B0WAT_12 0x0000C000 /* Bank 0 Write Access Time = 12 cycles */
1486 #define B0WAT_13 0x0000D000 /* Bank 0 Write Access Time = 13 cycles */
1487 #define B0WAT_14 0x0000E000 /* Bank 0 Write Access Time = 14 cycles */
1488 #define B0WAT_15 0x0000F000 /* Bank 0 Write Access Time = 15 cycles */
1489 #define B1RDYEN 0x00010000 /* Bank 1 RDY enable, 0=disable, 1=enable */
1490 #define B1RDYPOL 0x00020000 /* Bank 1 RDY Active high, 0=active low, 1=active high */
1491 #define B1TT_1 0x00040000 /* Bank 1 Transition Time from Read to Write = 1 cycle */
1492 #define B1TT_2 0x00080000 /* Bank 1 Transition Time from Read to Write = 2 cycles */
1493 #define B1TT_3 0x000C0000 /* Bank 1 Transition Time from Read to Write = 3 cycles */
1494 #define B1TT_4 0x00000000 /* Bank 1 Transition Time from Read to Write = 4 cycles */
1495 #define B1ST_1 0x00100000 /* Bank 1 Setup Time from AOE asserted to Read or Write asserted = 1 cycle */
1496 #define B1ST_2 0x00200000 /* Bank 1 Setup Time from AOE asserted to Read or Write asserted = 2 cycles */
1497 #define B1ST_3 0x00300000 /* Bank 1 Setup Time from AOE asserted to Read or Write asserted = 3 cycles */
1498 #define B1ST_4 0x00000000 /* Bank 1 Setup Time from AOE asserted to Read or Write asserted = 4 cycles */
1499 #define B1HT_1 0x00400000 /* Bank 1 Hold Time from Read or Write deasserted to AOE deasserted = 1 cycle */
1500 #define B1HT_2 0x00800000 /* Bank 1 Hold Time from Read or Write deasserted to AOE deasserted = 2 cycles */
1501 #define B1HT_3 0x00C00000 /* Bank 1 Hold Time from Read or Write deasserted to AOE deasserted = 3 cycles */
1502 #define B1HT_0 0x00000000 /* Bank 1 Hold Time from Read or Write deasserted to AOE deasserted = 0 cycles */
1503 #define B1RAT_1 0x01000000 /* Bank 1 Read Access Time = 1 cycle */
1504 #define B1RAT_2 0x02000000 /* Bank 1 Read Access Time = 2 cycles */
1505 #define B1RAT_3 0x03000000 /* Bank 1 Read Access Time = 3 cycles */
1506 #define B1RAT_4 0x04000000 /* Bank 1 Read Access Time = 4 cycles */
1507 #define B1RAT_5 0x05000000 /* Bank 1 Read Access Time = 5 cycles */
1508 #define B1RAT_6 0x06000000 /* Bank 1 Read Access Time = 6 cycles */
1509 #define B1RAT_7 0x07000000 /* Bank 1 Read Access Time = 7 cycles */
1510 #define B1RAT_8 0x08000000 /* Bank 1 Read Access Time = 8 cycles */
1511 #define B1RAT_9 0x09000000 /* Bank 1 Read Access Time = 9 cycles */
1512 #define B1RAT_10 0x0A000000 /* Bank 1 Read Access Time = 10 cycles */
1513 #define B1RAT_11 0x0B000000 /* Bank 1 Read Access Time = 11 cycles */
1514 #define B1RAT_12 0x0C000000 /* Bank 1 Read Access Time = 12 cycles */
1515 #define B1RAT_13 0x0D000000 /* Bank 1 Read Access Time = 13 cycles */
1516 #define B1RAT_14 0x0E000000 /* Bank 1 Read Access Time = 14 cycles */
1517 #define B1RAT_15 0x0F000000 /* Bank 1 Read Access Time = 15 cycles */
1518 #define B1WAT_1 0x10000000 /* Bank 1 Write Access Time = 1 cycle */
1519 #define B1WAT_2 0x20000000 /* Bank 1 Write Access Time = 2 cycles */
1520 #define B1WAT_3 0x30000000 /* Bank 1 Write Access Time = 3 cycles */
1521 #define B1WAT_4 0x40000000 /* Bank 1 Write Access Time = 4 cycles */
1522 #define B1WAT_5 0x50000000 /* Bank 1 Write Access Time = 5 cycles */
1523 #define B1WAT_6 0x60000000 /* Bank 1 Write Access Time = 6 cycles */
1524 #define B1WAT_7 0x70000000 /* Bank 1 Write Access Time = 7 cycles */
1525 #define B1WAT_8 0x80000000 /* Bank 1 Write Access Time = 8 cycles */
1526 #define B1WAT_9 0x90000000 /* Bank 1 Write Access Time = 9 cycles */
1527 #define B1WAT_10 0xA0000000 /* Bank 1 Write Access Time = 10 cycles */
1528 #define B1WAT_11 0xB0000000 /* Bank 1 Write Access Time = 11 cycles */
1529 #define B1WAT_12 0xC0000000 /* Bank 1 Write Access Time = 12 cycles */
1530 #define B1WAT_13 0xD0000000 /* Bank 1 Write Access Time = 13 cycles */
1531 #define B1WAT_14 0xE0000000 /* Bank 1 Write Access Time = 14 cycles */
1532 #define B1WAT_15 0xF0000000 /* Bank 1 Write Access Time = 15 cycles */
1534 /* AMBCTL1 Masks */
1535 #define B2RDYEN 0x00000001 /* Bank 2 RDY Enable, 0=disable, 1=enable */
1536 #define B2RDYPOL 0x00000002 /* Bank 2 RDY Active high, 0=active low, 1=active high */
1537 #define B2TT_1 0x00000004 /* Bank 2 Transition Time from Read to Write = 1 cycle */
1538 #define B2TT_2 0x00000008 /* Bank 2 Transition Time from Read to Write = 2 cycles */
1539 #define B2TT_3 0x0000000C /* Bank 2 Transition Time from Read to Write = 3 cycles */
1540 #define B2TT_4 0x00000000 /* Bank 2 Transition Time from Read to Write = 4 cycles */
1541 #define B2ST_1 0x00000010 /* Bank 2 Setup Time from AOE asserted to Read or Write asserted = 1 cycle */
1542 #define B2ST_2 0x00000020 /* Bank 2 Setup Time from AOE asserted to Read or Write asserted = 2 cycles */
1543 #define B2ST_3 0x00000030 /* Bank 2 Setup Time from AOE asserted to Read or Write asserted = 3 cycles */
1544 #define B2ST_4 0x00000000 /* Bank 2 Setup Time from AOE asserted to Read or Write asserted = 4 cycles */
1545 #define B2HT_1 0x00000040 /* Bank 2 Hold Time from Read or Write deasserted to AOE deasserted = 1 cycle */
1546 #define B2HT_2 0x00000080 /* Bank 2 Hold Time from Read or Write deasserted to AOE deasserted = 2 cycles */
1547 #define B2HT_3 0x000000C0 /* Bank 2 Hold Time from Read or Write deasserted to AOE deasserted = 3 cycles */
1548 #define B2HT_0 0x00000000 /* Bank 2 Hold Time from Read or Write deasserted to AOE deasserted = 0 cycles */
1549 #define B2RAT_1 0x00000100 /* Bank 2 Read Access Time = 1 cycle */
1550 #define B2RAT_2 0x00000200 /* Bank 2 Read Access Time = 2 cycles */
1551 #define B2RAT_3 0x00000300 /* Bank 2 Read Access Time = 3 cycles */
1552 #define B2RAT_4 0x00000400 /* Bank 2 Read Access Time = 4 cycles */
1553 #define B2RAT_5 0x00000500 /* Bank 2 Read Access Time = 5 cycles */
1554 #define B2RAT_6 0x00000600 /* Bank 2 Read Access Time = 6 cycles */
1555 #define B2RAT_7 0x00000700 /* Bank 2 Read Access Time = 7 cycles */
1556 #define B2RAT_8 0x00000800 /* Bank 2 Read Access Time = 8 cycles */
1557 #define B2RAT_9 0x00000900 /* Bank 2 Read Access Time = 9 cycles */
1558 #define B2RAT_10 0x00000A00 /* Bank 2 Read Access Time = 10 cycles */
1559 #define B2RAT_11 0x00000B00 /* Bank 2 Read Access Time = 11 cycles */
1560 #define B2RAT_12 0x00000C00 /* Bank 2 Read Access Time = 12 cycles */
1561 #define B2RAT_13 0x00000D00 /* Bank 2 Read Access Time = 13 cycles */
1562 #define B2RAT_14 0x00000E00 /* Bank 2 Read Access Time = 14 cycles */
1563 #define B2RAT_15 0x00000F00 /* Bank 2 Read Access Time = 15 cycles */
1564 #define B2WAT_1 0x00001000 /* Bank 2 Write Access Time = 1 cycle */
1565 #define B2WAT_2 0x00002000 /* Bank 2 Write Access Time = 2 cycles */
1566 #define B2WAT_3 0x00003000 /* Bank 2 Write Access Time = 3 cycles */
1567 #define B2WAT_4 0x00004000 /* Bank 2 Write Access Time = 4 cycles */
1568 #define B2WAT_5 0x00005000 /* Bank 2 Write Access Time = 5 cycles */
1569 #define B2WAT_6 0x00006000 /* Bank 2 Write Access Time = 6 cycles */
1570 #define B2WAT_7 0x00007000 /* Bank 2 Write Access Time = 7 cycles */
1571 #define B2WAT_8 0x00008000 /* Bank 2 Write Access Time = 8 cycles */
1572 #define B2WAT_9 0x00009000 /* Bank 2 Write Access Time = 9 cycles */
1573 #define B2WAT_10 0x0000A000 /* Bank 2 Write Access Time = 10 cycles */
1574 #define B2WAT_11 0x0000B000 /* Bank 2 Write Access Time = 11 cycles */
1575 #define B2WAT_12 0x0000C000 /* Bank 2 Write Access Time = 12 cycles */
1576 #define B2WAT_13 0x0000D000 /* Bank 2 Write Access Time = 13 cycles */
1577 #define B2WAT_14 0x0000E000 /* Bank 2 Write Access Time = 14 cycles */
1578 #define B2WAT_15 0x0000F000 /* Bank 2 Write Access Time = 15 cycles */
1579 #define B3RDYEN 0x00010000 /* Bank 3 RDY enable, 0=disable, 1=enable */
1580 #define B3RDYPOL 0x00020000 /* Bank 3 RDY Active high, 0=active low, 1=active high */
1581 #define B3TT_1 0x00040000 /* Bank 3 Transition Time from Read to Write = 1 cycle */
1582 #define B3TT_2 0x00080000 /* Bank 3 Transition Time from Read to Write = 2 cycles */
1583 #define B3TT_3 0x000C0000 /* Bank 3 Transition Time from Read to Write = 3 cycles */
1584 #define B3TT_4 0x00000000 /* Bank 3 Transition Time from Read to Write = 4 cycles */
1585 #define B3ST_1 0x00100000 /* Bank 3 Setup Time from AOE asserted to Read or Write asserted = 1 cycle */
1586 #define B3ST_2 0x00200000 /* Bank 3 Setup Time from AOE asserted to Read or Write asserted = 2 cycles */
1587 #define B3ST_3 0x00300000 /* Bank 3 Setup Time from AOE asserted to Read or Write asserted = 3 cycles */
1588 #define B3ST_4 0x00000000 /* Bank 3 Setup Time from AOE asserted to Read or Write asserted = 4 cycles */
1589 #define B3HT_1 0x00400000 /* Bank 3 Hold Time from Read or Write deasserted to AOE deasserted = 1 cycle */
1590 #define B3HT_2 0x00800000 /* Bank 3 Hold Time from Read or Write deasserted to AOE deasserted = 2 cycles */
1591 #define B3HT_3 0x00C00000 /* Bank 3 Hold Time from Read or Write deasserted to AOE deasserted = 3 cycles */
1592 #define B3HT_0 0x00000000 /* Bank 3 Hold Time from Read or Write deasserted to AOE deasserted = 0 cycles */
1593 #define B3RAT_1 0x01000000 /* Bank 3 Read Access Time = 1 cycle */
1594 #define B3RAT_2 0x02000000 /* Bank 3 Read Access Time = 2 cycles */
1595 #define B3RAT_3 0x03000000 /* Bank 3 Read Access Time = 3 cycles */
1596 #define B3RAT_4 0x04000000 /* Bank 3 Read Access Time = 4 cycles */
1597 #define B3RAT_5 0x05000000 /* Bank 3 Read Access Time = 5 cycles */
1598 #define B3RAT_6 0x06000000 /* Bank 3 Read Access Time = 6 cycles */
1599 #define B3RAT_7 0x07000000 /* Bank 3 Read Access Time = 7 cycles */
1600 #define B3RAT_8 0x08000000 /* Bank 3 Read Access Time = 8 cycles */
1601 #define B3RAT_9 0x09000000 /* Bank 3 Read Access Time = 9 cycles */
1602 #define B3RAT_10 0x0A000000 /* Bank 3 Read Access Time = 10 cycles */
1603 #define B3RAT_11 0x0B000000 /* Bank 3 Read Access Time = 11 cycles */
1604 #define B3RAT_12 0x0C000000 /* Bank 3 Read Access Time = 12 cycles */
1605 #define B3RAT_13 0x0D000000 /* Bank 3 Read Access Time = 13 cycles */
1606 #define B3RAT_14 0x0E000000 /* Bank 3 Read Access Time = 14 cycles */
1607 #define B3RAT_15 0x0F000000 /* Bank 3 Read Access Time = 15 cycles */
1608 #define B3WAT_1 0x10000000 /* Bank 3 Write Access Time = 1 cycle */
1609 #define B3WAT_2 0x20000000 /* Bank 3 Write Access Time = 2 cycles */
1610 #define B3WAT_3 0x30000000 /* Bank 3 Write Access Time = 3 cycles */
1611 #define B3WAT_4 0x40000000 /* Bank 3 Write Access Time = 4 cycles */
1612 #define B3WAT_5 0x50000000 /* Bank 3 Write Access Time = 5 cycles */
1613 #define B3WAT_6 0x60000000 /* Bank 3 Write Access Time = 6 cycles */
1614 #define B3WAT_7 0x70000000 /* Bank 3 Write Access Time = 7 cycles */
1615 #define B3WAT_8 0x80000000 /* Bank 3 Write Access Time = 8 cycles */
1616 #define B3WAT_9 0x90000000 /* Bank 3 Write Access Time = 9 cycles */
1617 #define B3WAT_10 0xA0000000 /* Bank 3 Write Access Time = 10 cycles */
1618 #define B3WAT_11 0xB0000000 /* Bank 3 Write Access Time = 11 cycles */
1619 #define B3WAT_12 0xC0000000 /* Bank 3 Write Access Time = 12 cycles */
1620 #define B3WAT_13 0xD0000000 /* Bank 3 Write Access Time = 13 cycles */
1621 #define B3WAT_14 0xE0000000 /* Bank 3 Write Access Time = 14 cycles */
1622 #define B3WAT_15 0xF0000000 /* Bank 3 Write Access Time = 15 cycles */
1624 /* ********************** SDRAM CONTROLLER MASKS *************************** */
1626 /* EBIU_SDGCTL Masks */
1627 #define SCTLE 0x00000001 /* Enable SCLK[0], /SRAS, /SCAS, /SWE, SDQM[3:0] */
1628 #define CL_2 0x00000008 /* SDRAM CAS latency = 2 cycles */
1629 #define CL_3 0x0000000C /* SDRAM CAS latency = 3 cycles */
1630 #define PFE 0x00000010 /* Enable SDRAM prefetch */
1631 #define PFP 0x00000020 /* Prefetch has priority over AMC requests */
1632 #define TRAS_1 0x00000040 /* SDRAM tRAS = 1 cycle */
1633 #define TRAS_2 0x00000080 /* SDRAM tRAS = 2 cycles */
1634 #define TRAS_3 0x000000C0 /* SDRAM tRAS = 3 cycles */
1635 #define TRAS_4 0x00000100 /* SDRAM tRAS = 4 cycles */
1636 #define TRAS_5 0x00000140 /* SDRAM tRAS = 5 cycles */
1637 #define TRAS_6 0x00000180 /* SDRAM tRAS = 6 cycles */
1638 #define TRAS_7 0x000001C0 /* SDRAM tRAS = 7 cycles */
1639 #define TRAS_8 0x00000200 /* SDRAM tRAS = 8 cycles */
1640 #define TRAS_9 0x00000240 /* SDRAM tRAS = 9 cycles */
1641 #define TRAS_10 0x00000280 /* SDRAM tRAS = 10 cycles */
1642 #define TRAS_11 0x000002C0 /* SDRAM tRAS = 11 cycles */
1643 #define TRAS_12 0x00000300 /* SDRAM tRAS = 12 cycles */
1644 #define TRAS_13 0x00000340 /* SDRAM tRAS = 13 cycles */
1645 #define TRAS_14 0x00000380 /* SDRAM tRAS = 14 cycles */
1646 #define TRAS_15 0x000003C0 /* SDRAM tRAS = 15 cycles */
1647 #define TRP_1 0x00000800 /* SDRAM tRP = 1 cycle */
1648 #define TRP_2 0x00001000 /* SDRAM tRP = 2 cycles */
1649 #define TRP_3 0x00001800 /* SDRAM tRP = 3 cycles */
1650 #define TRP_4 0x00002000 /* SDRAM tRP = 4 cycles */
1651 #define TRP_5 0x00002800 /* SDRAM tRP = 5 cycles */
1652 #define TRP_6 0x00003000 /* SDRAM tRP = 6 cycles */
1653 #define TRP_7 0x00003800 /* SDRAM tRP = 7 cycles */
1654 #define TRCD_1 0x00008000 /* SDRAM tRCD = 1 cycle */
1655 #define TRCD_2 0x00010000 /* SDRAM tRCD = 2 cycles */
1656 #define TRCD_3 0x00018000 /* SDRAM tRCD = 3 cycles */
1657 #define TRCD_4 0x00020000 /* SDRAM tRCD = 4 cycles */
1658 #define TRCD_5 0x00028000 /* SDRAM tRCD = 5 cycles */
1659 #define TRCD_6 0x00030000 /* SDRAM tRCD = 6 cycles */
1660 #define TRCD_7 0x00038000 /* SDRAM tRCD = 7 cycles */
1661 #define TWR_1 0x00080000 /* SDRAM tWR = 1 cycle */
1662 #define TWR_2 0x00100000 /* SDRAM tWR = 2 cycles */
1663 #define TWR_3 0x00180000 /* SDRAM tWR = 3 cycles */
1664 #define PUPSD 0x00200000 /*Power-up start delay */
1665 #define PSM 0x00400000 /* SDRAM power-up sequence = Precharge, mode register set, 8 CBR refresh cycles */
1666 #define PSS 0x00800000 /* enable SDRAM power-up sequence on next SDRAM access */
1667 #define SRFS 0x01000000 /* Start SDRAM self-refresh mode */
1668 #define EBUFE 0x02000000 /* Enable external buffering timing */
1669 #define FBBRW 0x04000000 /* Fast back-to-back read write enable */
1670 #define EMREN 0x10000000 /* Extended mode register enable */
1671 #define TCSR 0x20000000 /* Temp compensated self refresh value 85 deg C */
1672 #define CDDBG 0x40000000 /* Tristate SDRAM controls during bus grant */
1674 /* EBIU_SDBCTL Masks */
1675 #define EB0_E 0x00000001 /* Enable SDRAM external bank 0 */
1676 #define EB0_SZ_16 0x00000000 /* SDRAM external bank size = 16MB */
1677 #define EB0_SZ_32 0x00000002 /* SDRAM external bank size = 32MB */
1678 #define EB0_SZ_64 0x00000004 /* SDRAM external bank size = 64MB */
1679 #define EB0_SZ_128 0x00000006 /* SDRAM external bank size = 128MB */
1680 #define EB0_CAW_8 0x00000000 /* SDRAM external bank column address width = 8 bits */
1681 #define EB0_CAW_9 0x00000010 /* SDRAM external bank column address width = 9 bits */
1682 #define EB0_CAW_10 0x00000020 /* SDRAM external bank column address width = 9 bits */
1683 #define EB0_CAW_11 0x00000030 /* SDRAM external bank column address width = 9 bits */
1685 #define EB1_E 0x00000100 /* Enable SDRAM external bank 1 */
1686 #define EB1__SZ_16 0x00000000 /* SDRAM external bank size = 16MB */
1687 #define EB1__SZ_32 0x00000200 /* SDRAM external bank size = 32MB */
1688 #define EB1__SZ_64 0x00000400 /* SDRAM external bank size = 64MB */
1689 #define EB1__SZ_128 0x00000600 /* SDRAM external bank size = 128MB */
1690 #define EB1__CAW_8 0x00000000 /* SDRAM external bank column address width = 8 bits */
1691 #define EB1__CAW_9 0x00001000 /* SDRAM external bank column address width = 9 bits */
1692 #define EB1__CAW_10 0x00002000 /* SDRAM external bank column address width = 9 bits */
1693 #define EB1__CAW_11 0x00003000 /* SDRAM external bank column address width = 9 bits */
1695 #define EB2__E 0x00010000 /* Enable SDRAM external bank 2 */
1696 #define EB2__SZ_16 0x00000000 /* SDRAM external bank size = 16MB */
1697 #define EB2__SZ_32 0x00020000 /* SDRAM external bank size = 32MB */
1698 #define EB2__SZ_64 0x00040000 /* SDRAM external bank size = 64MB */
1699 #define EB2__SZ_128 0x00060000 /* SDRAM external bank size = 128MB */
1700 #define EB2__CAW_8 0x00000000 /* SDRAM external bank column address width = 8 bits */
1701 #define EB2__CAW_9 0x00100000 /* SDRAM external bank column address width = 9 bits */
1702 #define EB2__CAW_10 0x00200000 /* SDRAM external bank column address width = 9 bits */
1703 #define EB2__CAW_11 0x00300000 /* SDRAM external bank column address width = 9 bits */
1705 #define EB3__E 0x01000000 /* Enable SDRAM external bank 3 */
1706 #define EB3__SZ_16 0x00000000 /* SDRAM external bank size = 16MB */
1707 #define EB3__SZ_32 0x02000000 /* SDRAM external bank size = 32MB */
1708 #define EB3__SZ_64 0x04000000 /* SDRAM external bank size = 64MB */
1709 #define EB3__SZ_128 0x06000000 /* SDRAM external bank size = 128MB */
1710 #define EB3__CAW_8 0x00000000 /* SDRAM external bank column address width = 8 bits */
1711 #define EB3__CAW_9 0x10000000 /* SDRAM external bank column address width = 9 bits */
1712 #define EB3__CAW_10 0x20000000 /* SDRAM external bank column address width = 9 bits */
1713 #define EB3__CAW_11 0x30000000 /* SDRAM external bank column address width = 9 bits */
1715 /* EBIU_SDSTAT Masks */
1716 #define SDCI 0x00000001 /* SDRAM controller is idle */
1717 #define SDSRA 0x00000002 /* SDRAM SDRAM self refresh is active */
1718 #define SDPUA 0x00000004 /* SDRAM power up active */
1719 #define SDRS 0x00000008 /* SDRAM is in reset state */
1720 #define SDEASE 0x00000010 /* SDRAM EAB sticky error status - W1C */
1721 #define BGSTAT 0x00000020 /* Bus granted */
1723 #endif /* _DEF_BF561_H */