1 /* arch/arm/mach-imx/include/mach/debug-macro.S
3 * Debugging macro include header
5 * Copyright (C) 1994-1999 Russell King
6 * Moved from linux/arch/arm/kernel/debug.S by Ben Dooks
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
14 #include <mach/hardware.h>
16 #ifdef CONFIG_MACH_MX31ADS
17 #include <mach/board-mx31ads.h>
19 #ifdef CONFIG_MACH_PCM037
20 #include <mach/board-pcm037.h>
22 #ifdef CONFIG_MACH_MX31LITE
23 #include <mach/board-mx31lite.h>
25 #ifdef CONFIG_MACH_MX27ADS
26 #include <mach/board-mx27ads.h>
28 #ifdef CONFIG_MACH_PCM038
29 #include <mach/board-pcm038.h>
32 mrc p15, 0, \rx, c1, c0
33 tst \rx, #1 @ MMU enabled?
34 ldreq \rx, =MXC_LL_UART_PADDR @ physical
35 ldrne \rx, =MXC_LL_UART_VADDR @ virtual
39 str \rd, [\rx, #0x40] @ TXDATA
46 1002: ldr \rd, [\rx, #0x98] @ SR2
47 tst \rd, #1 << 3 @ TXDC
48 beq 1002b @ wait until transmit done