mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-08 10:31:43 +01:00
Based on 2 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation # extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 4122 file(s). Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Enrico Weigelt <[email protected]> Reviewed-by: Kate Stewart <[email protected]> Reviewed-by: Allison Randal <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
31 lines
602 B
ArmAsm
31 lines
602 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Broadcom BCM63xx low-level UART debug
|
|
*
|
|
* Copyright (C) 2014 Broadcom Corporation
|
|
*/
|
|
|
|
#include <linux/serial_bcm63xx.h>
|
|
|
|
.macro addruart, rp, rv, tmp
|
|
ldr \rp, =CONFIG_DEBUG_UART_PHYS
|
|
ldr \rv, =CONFIG_DEBUG_UART_VIRT
|
|
.endm
|
|
|
|
.macro senduart, rd, rx
|
|
/* word access do not work */
|
|
strb \rd, [\rx, #UART_FIFO_REG]
|
|
.endm
|
|
|
|
.macro waituart, rd, rx
|
|
1001: ldr \rd, [\rx, #UART_IR_REG]
|
|
tst \rd, #(1 << UART_IR_TXEMPTY)
|
|
beq 1001b
|
|
.endm
|
|
|
|
.macro busyuart, rd, rx
|
|
1002: ldr \rd, [\rx, #UART_IR_REG]
|
|
tst \rd, #(1 << UART_IR_TXTRESH)
|
|
beq 1002b
|
|
.endm
|