1 /* arch/arm/mach-mxs/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/mx23.h>
15 #include <mach/mx28.h>
17 #ifdef CONFIG_SOC_IMX23
19 #error "CONFIG_DEBUG_LL is incompatible with multiple archs"
21 #define UART_PADDR MX23_DUART_BASE_ADDR
24 #ifdef CONFIG_SOC_IMX28
26 #error "CONFIG_DEBUG_LL is incompatible with multiple archs"
28 #define UART_PADDR MX28_DUART_BASE_ADDR
31 #define UART_VADDR MXS_IO_ADDRESS(UART_PADDR)
33 .macro addruart, rp, rv
34 ldr \rp, =UART_PADDR @ physical
35 ldr \rv, =UART_VADDR @ virtual
38 #include <asm/hardware/debug-pl01x.S>