/* SPDX-License-Identifier: GPL-2.0-only */1/*2* Debugging macro include header3*4* Copyright (C) 2010 Alexey Charkov <[email protected]>5* Moved from arch/arm/mach-vt8500/include/mach/debug-macro.S6* Minor changes for readability.7*/89#define DEBUG_LL_PHYS_BASE 0xD800000010#define DEBUG_LL_VIRT_BASE 0xF800000011#define DEBUG_LL_UART_OFFSET 0x002000001213#if defined(CONFIG_DEBUG_VT8500_UART0)14.macro addruart, rp, rv, tmp15mov \rp, #DEBUG_LL_UART_OFFSET16orr \rv, \rp, #DEBUG_LL_VIRT_BASE17orr \rp, \rp, #DEBUG_LL_PHYS_BASE18.endm1920.macro senduart,rd,rx21strb \rd, [\rx, #0]22.endm2324.macro busyuart,rd,rx251001: ldr \rd, [\rx, #0x1c]26ands \rd, \rd, #0x227bne 1001b28.endm2930.macro waituartcts,rd,rx31.endm3233.macro waituarttxrdy,rd,rx34.endm3536#endif373839