1/* 2 * Copyright 2007-2009 Analog Devices Inc. 3 * 4 * Licensed under the GPL-2 or later 5 */ 6 7#ifndef _MACH_BLACKFIN_H_ 8#define _MACH_BLACKFIN_H_ 9 10#include "bf527.h" 11#include "defBF522.h" 12#include "anomaly.h" 13 14#if defined(CONFIG_BF527) || defined(CONFIG_BF526) 15#include "defBF527.h" 16#endif 17 18#if defined(CONFIG_BF525) || defined(CONFIG_BF524) 19#include "defBF525.h" 20#endif 21 22#if !defined(__ASSEMBLY__) 23#include "cdefBF522.h" 24 25#if defined(CONFIG_BF527) || defined(CONFIG_BF526) 26#include "cdefBF527.h" 27#endif 28 29#if defined(CONFIG_BF525) || defined(CONFIG_BF524) 30#include "cdefBF525.h" 31#endif 32#endif 33 34#define BFIN_UART_NR_PORTS 2 35 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 */ 48 49#endif 50