aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-blackfin/mach-bf548/blackfin.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-blackfin/mach-bf548/blackfin.h')
-rw-r--r--include/asm-blackfin/mach-bf548/blackfin.h166
1 files changed, 166 insertions, 0 deletions
diff --git a/include/asm-blackfin/mach-bf548/blackfin.h b/include/asm-blackfin/mach-bf548/blackfin.h
new file mode 100644
index 000000000000..094c41a63194
--- /dev/null
+++ b/include/asm-blackfin/mach-bf548/blackfin.h
@@ -0,0 +1,166 @@
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#ifdef CONFIG_BF542
38#include "bf542.h"
39
40#ifdef CONFIG_BF544
41#include "bf544.h"
42#endif
43
44#ifdef CONFIG_BF548
45#include "bf548.h"
46#endif
47
48#ifdef CONFIG_BF549
49#include "bf549.h"
50#endif
51
52#include "mem_map.h"
53#include "anomaly.h"
54
55#if !(defined(__ASSEMBLY__) || defined(ASSEMBLY))
56#ifdef CONFIG_BF542
57#include "cdefBF542.h"
58#endif
59
60#ifdef CONFIG_BF544
61#include "cdefBF544.h"
62#endif
63#ifdef CONFIG_BF548
64#include "cdefBF548.h"
65#endif
66#ifdef CONFIG_BF549
67#include "cdefBF549.h"
68#endif
69
70/* UART 1*/
71#define bfin_read_UART_THR() bfin_read_UART1_THR()
72#define bfin_write_UART_THR(val) bfin_write_UART1_THR(val)
73#define bfin_read_UART_RBR() bfin_read_UART1_RBR()
74#define bfin_write_UART_RBR(val) bfin_write_UART1_RBR(val)
75#define bfin_read_UART_DLL() bfin_read_UART1_DLL()
76#define bfin_write_UART_DLL(val) bfin_write_UART1_DLL(val)
77#define bfin_read_UART_IER() bfin_read_UART1_IER()
78#define bfin_write_UART_IER(val) bfin_write_UART1_IER(val)
79#define bfin_read_UART_DLH() bfin_read_UART1_DLH()
80#define bfin_write_UART_DLH(val) bfin_write_UART1_DLH(val)
81#define bfin_read_UART_IIR() bfin_read_UART1_IIR()
82#define bfin_write_UART_IIR(val) bfin_write_UART1_IIR(val)
83#define bfin_read_UART_LCR() bfin_read_UART1_LCR()
84#define bfin_write_UART_LCR(val) bfin_write_UART1_LCR(val)
85#define bfin_read_UART_MCR() bfin_read_UART1_MCR()
86#define bfin_write_UART_MCR(val) bfin_write_UART1_MCR(val)
87#define bfin_read_UART_LSR() bfin_read_UART1_LSR()
88#define bfin_write_UART_LSR(val) bfin_write_UART1_LSR(val)
89#define bfin_read_UART_SCR() bfin_read_UART1_SCR()
90#define bfin_write_UART_SCR(val) bfin_write_UART1_SCR(val)
91#define bfin_read_UART_GCTL() bfin_read_UART1_GCTL()
92#define bfin_write_UART_GCTL(val) bfin_write_UART1_GCTL(val)
93
94#endif
95
96/* MAP used DEFINES from BF533 to BF54x - so we don't need to change
97 * them in the driver, kernel, etc. */
98
99/* UART_IIR Register */
100#define STATUS(x) ((x << 1) & 0x06)
101#define STATUS_P1 0x02
102#define STATUS_P0 0x01
103
104/* UART 0*/
105
106/* DMA Channnel */
107#define bfin_read_CH_UART_RX() bfin_read_CH_UART1_RX()
108#define bfin_write_CH_UART_RX(val) bfin_write_CH_UART1_RX(val)
109#define bfin_read_CH_UART_TX() bfin_read_CH_UART1_TX()
110#define bfin_write_CH_UART_TX(val) bfin_write_CH_UART1_TX(val)
111#define CH_UART_RX CH_UART1_RX
112#define CH_UART_TX CH_UART1_TX
113
114/* System Interrupt Controller */
115#define bfin_read_IRQ_UART_RX() bfin_read_IRQ_UART1_RX()
116#define bfin_write_IRQ_UART_RX(val) bfin_write_IRQ_UART1_RX(val)
117#define bfin_read_IRQ_UART_TX() bfin_read_IRQ_UART1_TX()
118#define bfin_write_IRQ_UART_TX(val) bfin_write_IRQ_UART1_TX(val)
119#define bfin_read_IRQ_UART_ERROR() bfin_read_IRQ_UART1_ERROR()
120#define bfin_write_IRQ_UART_ERROR(val) bfin_write_IRQ_UART1_ERROR(val)
121#define IRQ_UART_RX IRQ_UART1_RX
122#define IRQ_UART_TX IRQ_UART1_TX
123#define IRQ_UART_ERROR IRQ_UART1_ERROR
124
125/* MMR Registers*/
126#define bfin_read_UART_THR() bfin_read_UART1_THR()
127#define bfin_write_UART_THR(val) bfin_write_UART1_THR(val)
128#define bfin_read_UART_RBR() bfin_read_UART1_RBR()
129#define bfin_write_UART_RBR(val) bfin_write_UART1_RBR(val)
130#define bfin_read_UART_DLL() bfin_read_UART1_DLL()
131#define bfin_write_UART_DLL(val) bfin_write_UART1_DLL(val)
132#define bfin_read_UART_IER() bfin_read_UART1_IER()
133#define bfin_write_UART_IER(val) bfin_write_UART1_IER(val)
134#define bfin_read_UART_DLH() bfin_read_UART1_DLH()
135#define bfin_write_UART_DLH(val) bfin_write_UART1_DLH(val)
136#define bfin_read_UART_IIR() bfin_read_UART1_IIR()
137#define bfin_write_UART_IIR(val) bfin_write_UART1_IIR(val)
138#define bfin_read_UART_LCR() bfin_read_UART1_LCR()
139#define bfin_write_UART_LCR(val) bfin_write_UART1_LCR(val)
140#define bfin_read_UART_MCR() bfin_read_UART1_MCR()
141#define bfin_write_UART_MCR(val) bfin_write_UART1_MCR(val)
142#define bfin_read_UART_LSR() bfin_read_UART1_LSR()
143#define bfin_write_UART_LSR(val) bfin_write_UART1_LSR(val)
144#define bfin_read_UART_SCR() bfin_read_UART1_SCR()
145#define bfin_write_UART_SCR(val) bfin_write_UART1_SCR(val)
146#define bfin_read_UART_GCTL() bfin_read_UART1_GCTL()
147#define bfin_write_UART_GCTL(val) bfin_write_UART1_GCTL(val)
148#define UART_THR UART1_THR
149#define UART_RBR UART1_RBR
150#define UART_DLL UART1_DLL
151#define UART_IER UART1_IER
152#define UART_DLH UART1_DLH
153#define UART_IIR UART1_IIR
154#define UART_LCR UART1_LCR
155#define UART_MCR UART1_MCR
156#define UART_LSR UART1_LSR
157#define UART_SCR UART1_SCR
158#define UART_GCTL UART1_GCTL
159
160/* PLL_DIV Masks */
161#define CCLK_DIV1 CSEL_DIV1 /* CCLK = VCO / 1 */
162#define CCLK_DIV2 CSEL_DIV2 /* CCLK = VCO / 2 */
163#define CCLK_DIV4 CSEL_DIV4 /* CCLK = VCO / 4 */
164#define CCLK_DIV8 CSEL_DIV8 /* CCLK = VCO / 8 */
165
166#endif