Linux Audio

Check our new training course

Loading...
v6.13.7
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 * Broadcom BCM63xx low-level UART debug
 4 *
 5 * Copyright (C) 2014 Broadcom Corporation
 
 
 
 
 6 */
 7
 8#include <linux/serial_bcm63xx.h>
 9
10	.macro	addruart, rp, rv, tmp
11	ldr	\rp, =CONFIG_DEBUG_UART_PHYS
12	ldr	\rv, =CONFIG_DEBUG_UART_VIRT
13	.endm
14
15	.macro	senduart, rd, rx
16	/* word access do not work */
17	strb	\rd, [\rx, #UART_FIFO_REG]
18	.endm
19
20	.macro	waituarttxrdy, rd, rx
211001:	ldr	\rd, [\rx, #UART_IR_REG]
22	tst	\rd, #(1 << UART_IR_TXEMPTY)
23	beq	1001b
24	.endm
25
26	.macro	waituartcts, rd, rx
27	.endm
28
29	.macro	busyuart, rd, rx
301002:	ldr	\rd, [\rx, #UART_IR_REG]
31	tst	\rd, #(1 << UART_IR_TXTRESH)
32	beq	1002b
33	.endm
v4.17
 
 1/*
 2 * Broadcom BCM63xx low-level UART debug
 3 *
 4 * Copyright (C) 2014 Broadcom Corporation
 5 *
 6 * This program is free software; you can redistribute it and/or modify
 7 * it under the terms of the GNU General Public License version 2 as
 8 * published by the Free Software Foundation.
 9 */
10
11#include <linux/serial_bcm63xx.h>
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	senduart, rd, rx
19	/* word access do not work */
20	strb	\rd, [\rx, #UART_FIFO_REG]
21	.endm
22
23	.macro	waituart, rd, rx
241001:	ldr	\rd, [\rx, #UART_IR_REG]
25	tst	\rd, #(1 << UART_IR_TXEMPTY)
26	beq	1001b
 
 
 
27	.endm
28
29	.macro	busyuart, rd, rx
301002:	ldr	\rd, [\rx, #UART_IR_REG]
31	tst	\rd, #(1 << UART_IR_TXTRESH)
32	beq	1002b
33	.endm