Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ryusuke...
[linux-2.6/mini2440.git] / arch / blackfin / mach-bf518 / include / mach / blackfin.h
blob6cfb246aebecc35a6307f913ff3b19f934587e3f
1 /*
2 * Copyright 2008-2009 Analog Devices Inc.
4 * Licensed under the GPL-2 or later
5 */
7 #ifndef _MACH_BLACKFIN_H_
8 #define _MACH_BLACKFIN_H_
10 #include "bf518.h"
11 #include "defBF512.h"
12 #include "anomaly.h"
14 #if defined(CONFIG_BF518)
15 #include "defBF518.h"
16 #endif
18 #if defined(CONFIG_BF516)
19 #include "defBF516.h"
20 #endif
22 #if defined(CONFIG_BF514)
23 #include "defBF514.h"
24 #endif
26 #if defined(CONFIG_BF512)
27 #include "defBF512.h"
28 #endif
30 #if !defined(__ASSEMBLY__)
31 #include "cdefBF512.h"
33 #if defined(CONFIG_BF518)
34 #include "cdefBF518.h"
35 #endif
37 #if defined(CONFIG_BF516)
38 #include "cdefBF516.h"
39 #endif
41 #if defined(CONFIG_BF514)
42 #include "cdefBF514.h"
43 #endif
44 #endif
46 #define BFIN_UART_NR_PORTS 2
48 #define OFFSET_THR 0x00 /* Transmit Holding register */
49 #define OFFSET_RBR 0x00 /* Receive Buffer register */
50 #define OFFSET_DLL 0x00 /* Divisor Latch (Low-Byte) */
51 #define OFFSET_IER 0x04 /* Interrupt Enable Register */
52 #define OFFSET_DLH 0x04 /* Divisor Latch (High-Byte) */
53 #define OFFSET_IIR 0x08 /* Interrupt Identification Register */
54 #define OFFSET_LCR 0x0C /* Line Control Register */
55 #define OFFSET_MCR 0x10 /* Modem Control Register */
56 #define OFFSET_LSR 0x14 /* Line Status Register */
57 #define OFFSET_MSR 0x18 /* Modem Status Register */
58 #define OFFSET_SCR 0x1C /* SCR Scratch Register */
59 #define OFFSET_GCTL 0x24 /* Global Control Register */
61 /* PLL_DIV Masks */
62 #define CCLK_DIV1 CSEL_DIV1 /* CCLK = VCO / 1 */
63 #define CCLK_DIV2 CSEL_DIV2 /* CCLK = VCO / 2 */
64 #define CCLK_DIV4 CSEL_DIV4 /* CCLK = VCO / 4 */
65 #define CCLK_DIV8 CSEL_DIV8 /* CCLK = VCO / 8 */
67 #endif