blob: c10510d01a440775844fe707fb98e15378d21cce [file] [log] [blame]
Binghua Duan02c981c2011-07-08 17:40:12 +08001/*
2 * arch/arm/mach-prima2/include/mach/uart.h
3 *
4 * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
5 *
6 * Licensed under GPLv2 or later.
7 */
8
9#ifndef __MACH_PRIMA2_SIRFSOC_UART_H
10#define __MACH_PRIMA2_SIRFSOC_UART_H
11
12/* UART-1: used as serial debug port */
Barry Song7f46a102012-12-20 19:45:25 +080013#if defined(CONFIG_DEBUG_SIRFPRIMA2_UART1)
Binghua Duan02c981c2011-07-08 17:40:12 +080014#define SIRFSOC_UART1_PA_BASE 0xb0060000
Barry Song7f46a102012-12-20 19:45:25 +080015#elif defined(CONFIG_DEBUG_SIRFMARCO_UART1)
16#define SIRFSOC_UART1_PA_BASE 0xcc060000
17#else
18#define SIRFSOC_UART1_PA_BASE 0
19#endif
Binghua Duan02c981c2011-07-08 17:40:12 +080020#define SIRFSOC_UART1_VA_BASE SIRFSOC_VA(0x060000)
21#define SIRFSOC_UART1_SIZE SZ_4K
22
23#define SIRFSOC_UART_TXFIFO_STATUS 0x0114
24#define SIRFSOC_UART_TXFIFO_DATA 0x0118
25
26#define SIRFSOC_UART1_TXFIFO_FULL (1 << 5)
27#define SIRFSOC_UART1_TXFIFO_EMPTY (1 << 6)
28
29#endif