diff options
Diffstat (limited to 'include/asm-blackfin/mach-bf548/blackfin.h')
-rw-r--r-- | include/asm-blackfin/mach-bf548/blackfin.h | 190 |
1 files changed, 0 insertions, 190 deletions
diff --git a/include/asm-blackfin/mach-bf548/blackfin.h b/include/asm-blackfin/mach-bf548/blackfin.h deleted file mode 100644 index d6ee74ac0460..000000000000 --- a/include/asm-blackfin/mach-bf548/blackfin.h +++ /dev/null | |||
@@ -1,190 +0,0 @@ | |||
1 | /* | ||
2 | * File: include/asm-blackfin/mach-bf548/blackfin.h | ||
3 | * Based on: | ||
4 | * Author: | ||
5 | * | ||
6 | * Created: | ||
7 | * Description: | ||
8 | * | ||
9 | * Rev: | ||
10 | * | ||
11 | * Modified: | ||
12 | * | ||
13 | * | ||
14 | * Bugs: Enter bugs at http://blackfin.uclinux.org/ | ||
15 | * | ||
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. | ||
20 | * | ||
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. | ||
25 | * | ||
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. | ||
30 | */ | ||
31 | |||
32 | #ifndef _MACH_BLACKFIN_H_ | ||
33 | #define _MACH_BLACKFIN_H_ | ||
34 | |||
35 | #define BF548_FAMILY | ||
36 | |||
37 | #include "bf548.h" | ||
38 | #include "mem_map.h" | ||
39 | #include "anomaly.h" | ||
40 | |||
41 | #ifdef CONFIG_BF542 | ||
42 | #include "defBF542.h" | ||
43 | #endif | ||
44 | |||
45 | #ifdef CONFIG_BF544 | ||
46 | #include "defBF544.h" | ||
47 | #endif | ||
48 | |||
49 | #ifdef CONFIG_BF547 | ||
50 | #include "defBF547.h" | ||
51 | #endif | ||
52 | |||
53 | #ifdef CONFIG_BF548 | ||
54 | #include "defBF548.h" | ||
55 | #endif | ||
56 | |||
57 | #ifdef CONFIG_BF549 | ||
58 | #include "defBF549.h" | ||
59 | #endif | ||
60 | |||
61 | #if !defined(__ASSEMBLY__) | ||
62 | #ifdef CONFIG_BF542 | ||
63 | #include "cdefBF542.h" | ||
64 | #endif | ||
65 | #ifdef CONFIG_BF544 | ||
66 | #include "cdefBF544.h" | ||
67 | #endif | ||
68 | #ifdef CONFIG_BF547 | ||
69 | #include "cdefBF547.h" | ||
70 | #endif | ||
71 | #ifdef CONFIG_BF548 | ||
72 | #include "cdefBF548.h" | ||
73 | #endif | ||
74 | #ifdef CONFIG_BF549 | ||
75 | #include "cdefBF549.h" | ||
76 | #endif | ||
77 | |||
78 | /* UART 1*/ | ||
79 | #define bfin_read_UART_THR() bfin_read_UART1_THR() | ||
80 | #define bfin_write_UART_THR(val) bfin_write_UART1_THR(val) | ||
81 | #define bfin_read_UART_RBR() bfin_read_UART1_RBR() | ||
82 | #define bfin_write_UART_RBR(val) bfin_write_UART1_RBR(val) | ||
83 | #define bfin_read_UART_DLL() bfin_read_UART1_DLL() | ||
84 | #define bfin_write_UART_DLL(val) bfin_write_UART1_DLL(val) | ||
85 | #define bfin_read_UART_IER() bfin_read_UART1_IER() | ||
86 | #define bfin_write_UART_IER(val) bfin_write_UART1_IER(val) | ||
87 | #define bfin_read_UART_DLH() bfin_read_UART1_DLH() | ||
88 | #define bfin_write_UART_DLH(val) bfin_write_UART1_DLH(val) | ||
89 | #define bfin_read_UART_IIR() bfin_read_UART1_IIR() | ||
90 | #define bfin_write_UART_IIR(val) bfin_write_UART1_IIR(val) | ||
91 | #define bfin_read_UART_LCR() bfin_read_UART1_LCR() | ||
92 | #define bfin_write_UART_LCR(val) bfin_write_UART1_LCR(val) | ||
93 | #define bfin_read_UART_MCR() bfin_read_UART1_MCR() | ||
94 | #define bfin_write_UART_MCR(val) bfin_write_UART1_MCR(val) | ||
95 | #define bfin_read_UART_LSR() bfin_read_UART1_LSR() | ||
96 | #define bfin_write_UART_LSR(val) bfin_write_UART1_LSR(val) | ||
97 | #define bfin_read_UART_SCR() bfin_read_UART1_SCR() | ||
98 | #define bfin_write_UART_SCR(val) bfin_write_UART1_SCR(val) | ||
99 | #define bfin_read_UART_GCTL() bfin_read_UART1_GCTL() | ||
100 | #define bfin_write_UART_GCTL(val) bfin_write_UART1_GCTL(val) | ||
101 | |||
102 | #endif | ||
103 | |||
104 | /* MAP used DEFINES from BF533 to BF54x - so we don't need to change | ||
105 | * them in the driver, kernel, etc. */ | ||
106 | |||
107 | /* UART_IIR Register */ | ||
108 | #define STATUS(x) ((x << 1) & 0x06) | ||
109 | #define STATUS_P1 0x02 | ||
110 | #define STATUS_P0 0x01 | ||
111 | |||
112 | /* UART 0*/ | ||
113 | |||
114 | /* DMA Channnel */ | ||
115 | #define bfin_read_CH_UART_RX() bfin_read_CH_UART1_RX() | ||
116 | #define bfin_write_CH_UART_RX(val) bfin_write_CH_UART1_RX(val) | ||
117 | #define bfin_read_CH_UART_TX() bfin_read_CH_UART1_TX() | ||
118 | #define bfin_write_CH_UART_TX(val) bfin_write_CH_UART1_TX(val) | ||
119 | #define CH_UART_RX CH_UART1_RX | ||
120 | #define CH_UART_TX CH_UART1_TX | ||
121 | |||
122 | /* System Interrupt Controller */ | ||
123 | #define bfin_read_IRQ_UART_RX() bfin_read_IRQ_UART1_RX() | ||
124 | #define bfin_write_IRQ_UART_RX(val) bfin_write_IRQ_UART1_RX(val) | ||
125 | #define bfin_read_IRQ_UART_TX() bfin_read_IRQ_UART1_TX() | ||
126 | #define bfin_write_IRQ_UART_TX(val) bfin_write_IRQ_UART1_TX(val) | ||
127 | #define bfin_read_IRQ_UART_ERROR() bfin_read_IRQ_UART1_ERROR() | ||
128 | #define bfin_write_IRQ_UART_ERROR(val) bfin_write_IRQ_UART1_ERROR(val) | ||
129 | #define IRQ_UART_RX IRQ_UART1_RX | ||
130 | #define IRQ_UART_TX IRQ_UART1_TX | ||
131 | #define IRQ_UART_ERROR IRQ_UART1_ERROR | ||
132 | |||
133 | /* MMR Registers*/ | ||
134 | #define bfin_read_UART_THR() bfin_read_UART1_THR() | ||
135 | #define bfin_write_UART_THR(val) bfin_write_UART1_THR(val) | ||
136 | #define bfin_read_UART_RBR() bfin_read_UART1_RBR() | ||
137 | #define bfin_write_UART_RBR(val) bfin_write_UART1_RBR(val) | ||
138 | #define bfin_read_UART_DLL() bfin_read_UART1_DLL() | ||
139 | #define bfin_write_UART_DLL(val) bfin_write_UART1_DLL(val) | ||
140 | #define bfin_read_UART_IER() bfin_read_UART1_IER() | ||
141 | #define bfin_write_UART_IER(val) bfin_write_UART1_IER(val) | ||
142 | #define bfin_read_UART_DLH() bfin_read_UART1_DLH() | ||
143 | #define bfin_write_UART_DLH(val) bfin_write_UART1_DLH(val) | ||
144 | #define bfin_read_UART_IIR() bfin_read_UART1_IIR() | ||
145 | #define bfin_write_UART_IIR(val) bfin_write_UART1_IIR(val) | ||
146 | #define bfin_read_UART_LCR() bfin_read_UART1_LCR() | ||
147 | #define bfin_write_UART_LCR(val) bfin_write_UART1_LCR(val) | ||
148 | #define bfin_read_UART_MCR() bfin_read_UART1_MCR() | ||
149 | #define bfin_write_UART_MCR(val) bfin_write_UART1_MCR(val) | ||
150 | #define bfin_read_UART_LSR() bfin_read_UART1_LSR() | ||
151 | #define bfin_write_UART_LSR(val) bfin_write_UART1_LSR(val) | ||
152 | #define bfin_read_UART_SCR() bfin_read_UART1_SCR() | ||
153 | #define bfin_write_UART_SCR(val) bfin_write_UART1_SCR(val) | ||
154 | #define bfin_read_UART_GCTL() bfin_read_UART1_GCTL() | ||
155 | #define bfin_write_UART_GCTL(val) bfin_write_UART1_GCTL(val) | ||
156 | |||
157 | #define BFIN_UART_THR UART1_THR | ||
158 | #define BFIN_UART_RBR UART1_RBR | ||
159 | #define BFIN_UART_DLL UART1_DLL | ||
160 | #define BFIN_UART_IER UART1_IER | ||
161 | #define BFIN_UART_DLH UART1_DLH | ||
162 | #define BFIN_UART_IIR UART1_IIR | ||
163 | #define BFIN_UART_LCR UART1_LCR | ||
164 | #define BFIN_UART_MCR UART1_MCR | ||
165 | #define BFIN_UART_LSR UART1_LSR | ||
166 | #define BFIN_UART_SCR UART1_SCR | ||
167 | #define BFIN_UART_GCTL UART1_GCTL | ||
168 | |||
169 | #define BFIN_UART_NR_PORTS 4 | ||
170 | |||
171 | #define OFFSET_DLL 0x00 /* Divisor Latch (Low-Byte) */ | ||
172 | #define OFFSET_DLH 0x04 /* Divisor Latch (High-Byte) */ | ||
173 | #define OFFSET_GCTL 0x08 /* Global Control Register */ | ||
174 | #define OFFSET_LCR 0x0C /* Line Control Register */ | ||
175 | #define OFFSET_MCR 0x10 /* Modem Control Register */ | ||
176 | #define OFFSET_LSR 0x14 /* Line Status Register */ | ||
177 | #define OFFSET_MSR 0x18 /* Modem Status Register */ | ||
178 | #define OFFSET_SCR 0x1C /* SCR Scratch Register */ | ||
179 | #define OFFSET_IER_SET 0x20 /* Set Interrupt Enable Register */ | ||
180 | #define OFFSET_IER_CLEAR 0x24 /* Clear Interrupt Enable Register */ | ||
181 | #define OFFSET_THR 0x28 /* Transmit Holding register */ | ||
182 | #define OFFSET_RBR 0x2C /* Receive Buffer register */ | ||
183 | |||
184 | /* PLL_DIV Masks */ | ||
185 | #define CCLK_DIV1 CSEL_DIV1 /* CCLK = VCO / 1 */ | ||
186 | #define CCLK_DIV2 CSEL_DIV2 /* CCLK = VCO / 2 */ | ||
187 | #define CCLK_DIV4 CSEL_DIV4 /* CCLK = VCO / 4 */ | ||
188 | #define CCLK_DIV8 CSEL_DIV8 /* CCLK = VCO / 8 */ | ||
189 | |||
190 | #endif | ||