2 * File: include/asm-blackfin/mach-bf533/bf533.h
7 * Description: SYSTEM MMR REGISTER AND MEMORY MAP FOR ADSP-BF561
10 * Copyright 2004-2006 Analog Devices Inc.
12 * Bugs: Enter bugs at http://blackfin.uclinux.org/
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, see the file COPYING, or write
26 * to the Free Software Foundation, Inc.,
27 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30 #ifndef __MACH_BF533_H__
31 #define __MACH_BF533_H__
33 #define SUPPORTED_REVID 2
35 #define OFFSET_(x) ((x) & 0x0000FFFF)
38 #define IMASK_IVG15 0x8000
39 #define IMASK_IVG14 0x4000
40 #define IMASK_IVG13 0x2000
41 #define IMASK_IVG12 0x1000
43 #define IMASK_IVG11 0x0800
44 #define IMASK_IVG10 0x0400
45 #define IMASK_IVG9 0x0200
46 #define IMASK_IVG8 0x0100
48 #define IMASK_IVG7 0x0080
49 #define IMASK_IVGTMR 0x0040
50 #define IMASK_IVGHW 0x0020
52 /***************************/
55 #define BFIN_DSUBBANKS 4
57 #define BFIN_DLINES 64
58 #define BFIN_ISUBBANKS 4
60 #define BFIN_ILINES 32
80 #define DMC_ENABLE (2<<2) /*yes, 2, not 1 */
83 #define RTC_ERROR_BIT 0x0FFFFFFF
84 #define UART_ERROR_BIT 0xF0FFFFFF
85 #define SPORT1_ERROR_BIT 0xFF0FFFFF
86 #define SPI_ERROR_BIT 0xFFF0FFFF
87 #define SPORT0_ERROR_BIT 0xFFFF0FFF
88 #define PPI_ERROR_BIT 0xFFFFF0FF
89 #define DMA_ERROR_BIT 0xFFFFFF0F
90 #define PLLWAKE_ERROR_BIT 0xFFFFFFFF
93 #define DMA7_UARTTX_BIT 0x0FFFFFFF
94 #define DMA6_UARTRX_BIT 0xF0FFFFFF
95 #define DMA5_SPI_BIT 0xFF0FFFFF
96 #define DMA4_SPORT1TX_BIT 0xFFF0FFFF
97 #define DMA3_SPORT1RX_BIT 0xFFFF0FFF
98 #define DMA2_SPORT0TX_BIT 0xFFFFF0FF
99 #define DMA1_SPORT0RX_BIT 0xFFFFFF0F
100 #define DMA0_PPI_BIT 0xFFFFFFFF
103 #define WDTIMER_BIT 0x0FFFFFFF
104 #define MEMDMA1_BIT 0xF0FFFFFF
105 #define MEMDMA0_BIT 0xFF0FFFFF
106 #define PFB_BIT 0xFFF0FFFF
107 #define PFA_BIT 0xFFFF0FFF
108 #define TIMER2_BIT 0xFFFFF0FF
109 #define TIMER1_BIT 0xFFFFFF0F
110 #define TIMER0_BIT 0xFFFFFFFF
112 /********************************* EBIU Settings ************************************/
113 #define AMBCTL0VAL ((CONFIG_BANK_1 << 16) | CONFIG_BANK_0)
114 #define AMBCTL1VAL ((CONFIG_BANK_3 << 16) | CONFIG_BANK_2)
116 #ifdef CONFIG_C_AMBEN_ALL
117 #define V_AMBEN AMBEN_ALL
119 #ifdef CONFIG_C_AMBEN
122 #ifdef CONFIG_C_AMBEN_B0
123 #define V_AMBEN AMBEN_B0
125 #ifdef CONFIG_C_AMBEN_B0_B1
126 #define V_AMBEN AMBEN_B0_B1
128 #ifdef CONFIG_C_AMBEN_B0_B1_B2
129 #define V_AMBEN AMBEN_B0_B1_B2
131 #ifdef CONFIG_C_AMCKEN
132 #define V_AMCKEN AMCKEN
136 #ifdef CONFIG_C_CDPRIO
137 #define V_CDPRIO 0x100
142 #define AMGCTLVAL (V_AMBEN | V_AMCKEN | V_CDPRIO)
146 #define CPUID 0x027a5000
150 #define CPUID 0x0275A000
154 #define CPUID 0x027a5000
157 #define CPU "UNKNOWN"
161 #endif /* __MACH_BF533_H__ */