2 * Copyright 2007-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_BF527) || defined(CONFIG_BF526)
18 #if defined(CONFIG_BF525) || defined(CONFIG_BF524)
22 #if !defined(__ASSEMBLY__)
23 #include "cdefBF522.h"
25 #if defined(CONFIG_BF527) || defined(CONFIG_BF526)
26 #include "cdefBF527.h"
29 #if defined(CONFIG_BF525) || defined(CONFIG_BF524)
30 #include "cdefBF525.h"
34 #define BFIN_UART_NR_PORTS 2
36 #define OFFSET_THR 0x00 /* Transmit Holding register */
37 #define OFFSET_RBR 0x00 /* Receive Buffer register */
38 #define OFFSET_DLL 0x00 /* Divisor Latch (Low-Byte) */
39 #define OFFSET_IER 0x04 /* Interrupt Enable Register */
40 #define OFFSET_DLH 0x04 /* Divisor Latch (High-Byte) */
41 #define OFFSET_IIR 0x08 /* Interrupt Identification Register */
42 #define OFFSET_LCR 0x0C /* Line Control Register */
43 #define OFFSET_MCR 0x10 /* Modem Control Register */
44 #define OFFSET_LSR 0x14 /* Line Status Register */
45 #define OFFSET_MSR 0x18 /* Modem Status Register */
46 #define OFFSET_SCR 0x1C /* SCR Scratch Register */
47 #define OFFSET_GCTL 0x24 /* Global Control Register */
50 #define CCLK_DIV1 CSEL_DIV1 /* CCLK = VCO / 1 */
51 #define CCLK_DIV2 CSEL_DIV2 /* CCLK = VCO / 2 */
52 #define CCLK_DIV4 CSEL_DIV4 /* CCLK = VCO / 4 */
53 #define CCLK_DIV8 CSEL_DIV8 /* CCLK = VCO / 8 */