Linux Audio

Check our new training course

Loading...
v6.13.7
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/* Debugging macro include header
 3 *
 4 *  Copyright (C) 1994-1999 Russell King
 5 *  Moved from linux/arch/arm/kernel/debug.S by Ben Dooks
 6 *  Modified for ASM9260 by Oleksij Remepl <linux@rempel-privat.de>
 
 
 
 
 
 7 */
 8
 9		.macro	addruart, rp, rv, tmp
10		ldr	\rp, = CONFIG_DEBUG_UART_PHYS
11		ldr	\rv, = CONFIG_DEBUG_UART_VIRT
12		.endm
13
14		.macro	waituarttxrdy,rd,rx
15		.endm
16
17		.macro	waituartcts,rd,rx
18		.endm
19
20		.macro	senduart,rd,rx
21		str	\rd, [\rx, #0x50]	@ TXDATA
22		.endm
23
24		.macro	busyuart,rd,rx
251002:		ldr	\rd, [\rx, #0x60]	@ STAT
26		tst	\rd, #1 << 27		@ TXEMPTY
27		beq	1002b			@ wait until transmit done
28		.endm
v4.10.11
 
 1/* Debugging macro include header
 2 *
 3 *  Copyright (C) 1994-1999 Russell King
 4 *  Moved from linux/arch/arm/kernel/debug.S by Ben Dooks
 5 *  Modified for ASM9260 by Oleksij Remepl <linux@rempel-privat.de>
 6 *
 7 * This program is free software; you can redistribute it and/or modify
 8 * it under the terms of the GNU General Public License version 2 as
 9 * published by the Free Software Foundation.
10 *
11 */
12
13		.macro	addruart, rp, rv, tmp
14		ldr	\rp, = CONFIG_DEBUG_UART_PHYS
15		ldr	\rv, = CONFIG_DEBUG_UART_VIRT
16		.endm
17
18		.macro	waituart,rd,rx
 
 
 
19		.endm
20
21		.macro	senduart,rd,rx
22		str	\rd, [\rx, #0x50]	@ TXDATA
23		.endm
24
25		.macro	busyuart,rd,rx
261002:		ldr	\rd, [\rx, #0x60]	@ STAT
27		tst	\rd, #1 << 27		@ TXEMPTY
28		beq	1002b			@ wait until transmit done
29		.endm