summaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/debug_ll_ns16550.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/include/asm/debug_ll_ns16550.h')
-rw-r--r--arch/mips/include/asm/debug_ll_ns16550.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/include/asm/debug_ll_ns16550.h b/arch/mips/include/asm/debug_ll_ns16550.h
index f36010ce07..032f0a2869 100644
--- a/arch/mips/include/asm/debug_ll_ns16550.h
+++ b/arch/mips/include/asm/debug_ll_ns16550.h
@@ -59,9 +59,11 @@
static __inline__ void PUTC_LL(char ch)
{
+#ifdef CONFIG_DEBUG_LL
while (!(__raw_readb((u8 *)DEBUG_LL_UART_ADDR + UART_LSR) & UART_LSR_THRE))
;
__raw_writeb(ch, (u8 *)DEBUG_LL_UART_ADDR + UART_THR);
+#endif /* CONFIG_DEBUG_LL */
}
#else /* __ASSEMBLY__ */
/*