1 /* linux/include/asm-arm/arch-mt6575/debug-macro.S
3 * Debugging macro include header
5 * Copyright (C) 2006 MediaTek Inc.
9 @#include <asm/arch/hardware.h>
12 mrc p15, 0, \rx, c1, c0
13 tst \rx, #1 @ MMU enabled?
15 movteq \rx, #0xC100 @ physical base address
16 movtne \rx, #0xF100 @ virtual base
24 1001: ldr \rd, [\rx, #0x14] @ UART0 status
25 tst \rd, #0x40 @ write allow
30 1002: ldr \rd, [\rx, #0x14] @ UART0 status
31 tst \rd, #0x40 @ uart full .eq. busy