mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 23:36:57 +07:00
a636cd6c42
Based on 1 normalized pattern(s): licensed under gplv2 or later extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 118 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Jilayne Lovejoy <opensource@jilayne.com> Reviewed-by: Steve Winslow <swinslow@gmail.com> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190519154040.961286471@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
38 lines
835 B
ArmAsm
38 lines
835 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* arch/arm/mach-prima2/include/mach/debug-macro.S
|
|
*
|
|
* Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
|
|
*/
|
|
|
|
#define SIRF_LLUART_TXFIFO_STATUS 0x0114
|
|
#define SIRF_LLUART_TXFIFO_DATA 0x0118
|
|
|
|
#define SIRF_LLUART_TXFIFO_FULL (1 << 5)
|
|
|
|
#ifdef CONFIG_DEBUG_SIRFATLAS7_UART0
|
|
#define SIRF_LLUART_TXFIFO_EMPTY (1 << 8)
|
|
#else
|
|
#define SIRF_LLUART_TXFIFO_EMPTY (1 << 6)
|
|
#endif
|
|
|
|
|
|
.macro addruart, rp, rv, tmp
|
|
ldr \rp, =CONFIG_DEBUG_UART_PHYS @ physical
|
|
ldr \rv, =CONFIG_DEBUG_UART_VIRT @ virtual
|
|
.endm
|
|
|
|
.macro senduart,rd,rx
|
|
str \rd, [\rx, #SIRF_LLUART_TXFIFO_DATA]
|
|
.endm
|
|
|
|
.macro busyuart,rd,rx
|
|
.endm
|
|
|
|
.macro waituart,rd,rx
|
|
1001: ldr \rd, [\rx, #SIRF_LLUART_TXFIFO_STATUS]
|
|
tst \rd, #SIRF_LLUART_TXFIFO_EMPTY
|
|
beq 1001b
|
|
.endm
|
|
|