2 * Early serial output macro for Marvell PXA/MMP SoC
4 * Copyright (C) 1994-1999 Russell King
5 * Moved from linux/arch/arm/kernel/debug.S by Ben Dooks
7 * Copyright (C) 2013 Haojian Zhuang
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.
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
24 #error "Select uart for DEBUG_LL"
27 .macro addruart, rp, rv, tmp
28 ldr \rp, =PXA_UART_REG_PHYS_BASE
29 ldr \rv, =PXA_UART_REG_VIRT_BASE
33 #include <asm/hardware/debug-8250.S>