2 * Copyright 2008-2009 Analog Devices Inc.
4 * Licensed under the GPL-2 or later
7 #ifndef _MACH_BLACKFIN_H_
8 #define _MACH_BLACKFIN_H_
14 #if defined(CONFIG_BF518)
18 #if defined(CONFIG_BF516)
22 #if defined(CONFIG_BF514)
26 #if defined(CONFIG_BF512)
30 #if !defined(__ASSEMBLY__)
31 #include "cdefBF512.h"
33 #if defined(CONFIG_BF518)
34 #include "cdefBF518.h"
37 #if defined(CONFIG_BF516)
38 #include "cdefBF516.h"
41 #if defined(CONFIG_BF514)
42 #include "cdefBF514.h"
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 */
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 */