2 * Early serial output macro for Allwinner A1X SoCs
4 * Copyright (C) 2012 Maxime Ripard
6 * Maxime Ripard <maxime.ripard@free-electrons.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #if defined(CONFIG_DEBUG_SUNXI_UART0)
14 #define SUNXI_UART_DEBUG_PHYS_BASE 0x01c28000
15 #define SUNXI_UART_DEBUG_VIRT_BASE 0xf1c28000
16 #elif defined(CONFIG_DEBUG_SUNXI_UART1)
17 #define SUNXI_UART_DEBUG_PHYS_BASE 0x01c28400
18 #define SUNXI_UART_DEBUG_VIRT_BASE 0xf1c28400
21 .macro addruart, rp, rv, tmp
22 ldr \rp, =SUNXI_UART_DEBUG_PHYS_BASE
23 ldr \rv, =SUNXI_UART_DEBUG_VIRT_BASE
27 #include <asm/hardware/debug-8250.S>