Add linux-next specific files for 20110831
[linux-2.6/next.git] / arch / mips / include / asm / mach-pnx8550 / uart.h
blobad7608d44874ae1a585d0c49fa77569312e8f554
1 #ifndef __IP3106_UART_H
2 #define __IP3106_UART_H
4 #include <int.h>
6 /* early macros for kgdb use. fixme: clean this up */
8 #define UART_BASE 0xbbe4a000 /* PNX8550 */
10 #define PNX8550_UART_PORT0 (UART_BASE)
11 #define PNX8550_UART_PORT1 (UART_BASE + 0x1000)
13 #define PNX8550_UART_INT(x) (PNX8550_INT_GIC_MIN+19+x)
14 #define IRQ_TO_UART(x) (x-PNX8550_INT_GIC_MIN-19)
16 /* early macros needed for prom/kgdb */
18 #define ip3106_lcr(base, port) *(volatile u32 *)(base+(port*0x1000) + 0x000)
19 #define ip3106_mcr(base, port) *(volatile u32 *)(base+(port*0x1000) + 0x004)
20 #define ip3106_baud(base, port) *(volatile u32 *)(base+(port*0x1000) + 0x008)
21 #define ip3106_cfg(base, port) *(volatile u32 *)(base+(port*0x1000) + 0x00C)
22 #define ip3106_fifo(base, port) *(volatile u32 *)(base+(port*0x1000) + 0x028)
23 #define ip3106_istat(base, port) *(volatile u32 *)(base+(port*0x1000) + 0xFE0)
24 #define ip3106_ien(base, port) *(volatile u32 *)(base+(port*0x1000) + 0xFE4)
25 #define ip3106_iclr(base, port) *(volatile u32 *)(base+(port*0x1000) + 0xFE8)
26 #define ip3106_iset(base, port) *(volatile u32 *)(base+(port*0x1000) + 0xFEC)
27 #define ip3106_pd(base, port) *(volatile u32 *)(base+(port*0x1000) + 0xFF4)
28 #define ip3106_mid(base, port) *(volatile u32 *)(base+(port*0x1000) + 0xFFC)
30 #endif