blob: 6cfb246aebecc35a6307f913ff3b19f934587e3f [file] [log] [blame]
Bryan Wu2f6f4bc2008-11-18 17:48:21 +08001/*
Robin Getz96f10502009-09-24 14:11:24 +00002 * Copyright 2008-2009 Analog Devices Inc.
Bryan Wu2f6f4bc2008-11-18 17:48:21 +08003 *
Robin Getz96f10502009-09-24 14:11:24 +00004 * Licensed under the GPL-2 or later
Bryan Wu2f6f4bc2008-11-18 17:48:21 +08005 */
6
7#ifndef _MACH_BLACKFIN_H_
8#define _MACH_BLACKFIN_H_
9
Bryan Wu2f6f4bc2008-11-18 17:48:21 +080010#include "bf518.h"
Bryan Wu2f6f4bc2008-11-18 17:48:21 +080011#include "defBF512.h"
12#include "anomaly.h"
13
14#if defined(CONFIG_BF518)
15#include "defBF518.h"
16#endif
17
18#if defined(CONFIG_BF516)
19#include "defBF516.h"
20#endif
21
22#if defined(CONFIG_BF514)
23#include "defBF514.h"
24#endif
25
26#if defined(CONFIG_BF512)
27#include "defBF512.h"
28#endif
29
30#if !defined(__ASSEMBLY__)
31#include "cdefBF512.h"
32
33#if defined(CONFIG_BF518)
34#include "cdefBF518.h"
35#endif
36
37#if defined(CONFIG_BF516)
38#include "cdefBF516.h"
39#endif
40
41#if defined(CONFIG_BF514)
42#include "cdefBF514.h"
43#endif
44#endif
45
Bryan Wu2f6f4bc2008-11-18 17:48:21 +080046#define BFIN_UART_NR_PORTS 2
47
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 */
60
Bryan Wu2f6f4bc2008-11-18 17:48:21 +080061/* 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 */
66
67#endif