On Tue, Nov 06, 2007 at 02:33:53AM -0800, akpm@linux-foundation.org wrote:
[mmotm.git] / arch / blackfin / mach-bf527 / include / mach / blackfin.h
blobe7d6034f268fef5f876b3fb720735e046abe5e16
1 /*
2 * Copyright 2007-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 "bf527.h"
11 #include "defBF522.h"
12 #include "anomaly.h"
14 #if defined(CONFIG_BF527) || defined(CONFIG_BF526)
15 #include "defBF527.h"
16 #endif
18 #if defined(CONFIG_BF525) || defined(CONFIG_BF524)
19 #include "defBF525.h"
20 #endif
22 #if !defined(__ASSEMBLY__)
23 #include "cdefBF522.h"
25 #if defined(CONFIG_BF527) || defined(CONFIG_BF526)
26 #include "cdefBF527.h"
27 #endif
29 #if defined(CONFIG_BF525) || defined(CONFIG_BF524)
30 #include "cdefBF525.h"
31 #endif
32 #endif
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 */
49 /* PLL_DIV Masks */
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 */
55 #endif