]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - arch/blackfin/mach-bf518/include/mach/blackfin.h
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6
[mirror_ubuntu-zesty-kernel.git] / arch / blackfin / mach-bf518 / include / mach / blackfin.h
CommitLineData
2f6f4bcd 1/*
96f1050d 2 * Copyright 2008-2009 Analog Devices Inc.
2f6f4bcd 3 *
96f1050d 4 * Licensed under the GPL-2 or later
2f6f4bcd
BW
5 */
6
7#ifndef _MACH_BLACKFIN_H_
8#define _MACH_BLACKFIN_H_
9
2f6f4bcd 10#include "bf518.h"
2f6f4bcd
BW
11#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
2f6f4bcd
BW
46#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
2f6f4bcd
BW
61/* 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