Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 1 | /* |
| 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 Song | 7f46a10 | 2012-12-20 19:45:25 +0800 | [diff] [blame] | 13 | #if defined(CONFIG_DEBUG_SIRFPRIMA2_UART1) |
Binghua Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 14 | #define SIRFSOC_UART1_PA_BASE 0xb0060000 |
Barry Song | 7f46a10 | 2012-12-20 19:45:25 +0800 | [diff] [blame] | 15 | #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 Duan | 02c981c | 2011-07-08 17:40:12 +0800 | [diff] [blame] | 20 | #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 |