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_
33 #if !defined(__ASSEMBLY__)
35 #include "cdefBF542.h"
38 #include "cdefBF544.h"
41 #include "cdefBF547.h"
44 #include "cdefBF548.h"
47 #include "cdefBF549.h"
52 #define BFIN_UART_NR_PORTS 4
54 #define OFFSET_DLL 0x00 /* Divisor Latch (Low-Byte) */
55 #define OFFSET_DLH 0x04 /* Divisor Latch (High-Byte) */
56 #define OFFSET_GCTL 0x08 /* Global Control Register */
57 #define OFFSET_LCR 0x0C /* Line Control Register */
58 #define OFFSET_MCR 0x10 /* Modem Control Register */
59 #define OFFSET_LSR 0x14 /* Line Status Register */
60 #define OFFSET_MSR 0x18 /* Modem Status Register */
61 #define OFFSET_SCR 0x1C /* SCR Scratch Register */
62 #define OFFSET_IER_SET 0x20 /* Set Interrupt Enable Register */
63 #define OFFSET_IER_CLEAR 0x24 /* Clear Interrupt Enable Register */
64 #define OFFSET_THR 0x28 /* Transmit Holding register */
65 #define OFFSET_RBR 0x2C /* Receive Buffer register */
68 #define CCLK_DIV1 CSEL_DIV1 /* CCLK = VCO / 1 */
69 #define CCLK_DIV2 CSEL_DIV2 /* CCLK = VCO / 2 */
70 #define CCLK_DIV4 CSEL_DIV4 /* CCLK = VCO / 4 */
71 #define CCLK_DIV8 CSEL_DIV8 /* CCLK = VCO / 8 */