1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Debugging macro include header
5 * Copyright (C) 2010 Alexey Charkov <alchark@gmail.com>
6 * Moved from arch/arm/mach-vt8500/include/mach/debug-macro.S
7 * Minor changes for readability.
10 #define DEBUG_LL_PHYS_BASE 0xD8000000
11 #define DEBUG_LL_VIRT_BASE 0xF8000000
12 #define DEBUG_LL_UART_OFFSET 0x00200000
14 #if defined(CONFIG_DEBUG_VT8500_UART0)
15 .macro addruart, rp, rv, tmp
16 mov \rp, #DEBUG_LL_UART_OFFSET
17 orr \rv, \rp, #DEBUG_LL_VIRT_BASE
18 orr \rp, \rp, #DEBUG_LL_PHYS_BASE
26 1001: ldr \rd, [\rx, #0x1c]