2 * arch/arm/mach-prima2/include/mach/debug-macro.S
4 * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
6 * Licensed under GPLv2 or later.
9 #define SIRF_LLUART_TXFIFO_STATUS 0x0114
10 #define SIRF_LLUART_TXFIFO_DATA 0x0118
12 #define SIRF_LLUART_TXFIFO_FULL (1 << 5)
14 #ifdef CONFIG_DEBUG_SIRFATLAS7_UART0
15 #define SIRF_LLUART_TXFIFO_EMPTY (1 << 8)
17 #define SIRF_LLUART_TXFIFO_EMPTY (1 << 6)
21 .macro addruart, rp, rv, tmp
22 ldr \rp, =CONFIG_DEBUG_UART_PHYS @ physical
23 ldr \rv, =CONFIG_DEBUG_UART_VIRT @ virtual
27 str \rd, [\rx, #SIRF_LLUART_TXFIFO_DATA]
34 1001: ldr \rd, [\rx, #SIRF_LLUART_TXFIFO_STATUS]
35 tst \rd, #SIRF_LLUART_TXFIFO_EMPTY