]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/include/debug/pxa.S
f10fba50c770e0b2cdc7fba82c2880ef3093c5f1
[karo-tx-linux.git] / arch / arm / include / debug / pxa.S
1 /*
2  * Early serial output macro for Marvell PXA/MMP SoC
3  *
4  * Copyright (C) 1994-1999 Russell King
5  * Moved from linux/arch/arm/kernel/debug.S by Ben Dooks
6  *
7  * Copyright (C) 2013 Haojian Zhuang
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License version 2 as
11  * published by the Free Software Foundation.
12 */
13
14 #if defined(CONFIG_DEBUG_PXA_UART1)
15 #define PXA_UART_REG_PHYS_BASE  0x40100000
16 #define PXA_UART_REG_VIRT_BASE  0xf2100000
17 #elif defined(CONFIG_DEBUG_MMP_UART2)
18 #define PXA_UART_REG_PHYS_BASE  0xd4017000
19 #define PXA_UART_REG_VIRT_BASE  0xfe017000
20 #elif defined(CONFIG_DEBUG_MMP_UART3)
21 #define PXA_UART_REG_PHYS_BASE  0xd4018000
22 #define PXA_UART_REG_VIRT_BASE  0xfe018000
23 #else
24 #error "Select uart for DEBUG_LL"
25 #endif
26
27         .macro  addruart, rp, rv, tmp
28         ldr     \rp, =PXA_UART_REG_PHYS_BASE
29         ldr     \rv, =PXA_UART_REG_VIRT_BASE
30         .endm
31
32 #include <asm/hardware/debug-8250.S>