| /* SPDX-License-Identifier: GPL-2.0-only */ |
| * Copyright (C) 2007 Google, Inc. |
| * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| * Author: Brian Swetland <swetland@google.com> |
| .macro addruart, rp, rv, tmp |
| ldr \rp, =CONFIG_DEBUG_UART_PHYS |
| ldr \rv, =CONFIG_DEBUG_UART_VIRT |
| @ Write the 1 character to UARTDM_TF |
| @ check for TX_EMT in UARTDM_SR |
| @ wait for TXREADY in UARTDM_ISR |
| 1001: ldr \rd, [\rx, #0x14] |
| @ Clear TX_READY by writing to the UARTDM_CR register |
| @ Write 0x1 to NCF register |
| @ UARTDM reg. Read to induce delay |