blob: 0c5a73805560f664684a3692d23f8cf44749ea82 [file] [log] [blame]
Ben Dooksf0c9eb42008-10-21 14:06:25 +01001/* arch/arm/mach-s3c2410/include/mach/debug-macro.S
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 as
5 * published by the Free Software Foundation.
6*/
7
8/* pull in the relevant register and map files. */
9
10#include <mach/map.h>
11#include <plat/regs-serial.h>
12
Jeremy Kerr0ea12932010-07-06 18:30:06 +080013 .macro addruart, rp, rv
14 ldr \rp, = S3C24XX_PA_UART
15 ldr \rv, = S3C24XX_VA_UART
Ben Dooksf0c9eb42008-10-21 14:06:25 +010016#if CONFIG_DEBUG_S3C_UART != 0
Jeremy Kerr0ea12932010-07-06 18:30:06 +080017 add \rp, \rp, #(S3C2410_UART1_OFF * CONFIG_DEBUG_S3C_UART)
18 add \rv, \rv, #(S3C2410_UART1_OFF * CONFIG_DEBUG_S3C_UART)
Ben Dooksf0c9eb42008-10-21 14:06:25 +010019#endif
20 .endm
21
22/* include the reset of the code which will do the work, we're only
23 * compiling for a single cpu processor type so the default of s3c2440
24 * will be fine with us.
25 */
26
27#include <plat/debug-macro.S>