Merge branch 'async-scsi-resume' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / arch / arm / mach-s5p64x0 / include / mach / debug-macro.S
1 /* linux/arch/arm/mach-s5p64x0/include/mach/debug-macro.S
2  *
3  * Copyright (c) 2009-2010 Samsung Electronics Co., Ltd.
4  *              http://www.samsung.com
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9 */
10
11 /* pull in the relevant register and map files. */
12
13 #include <linux/serial_s3c.h>
14 #include <plat/map-base.h>
15 #include <plat/map-s5p.h>
16
17         .macro addruart, rp, rv, tmp
18                 mov     \rp, #0xE0000000
19                 orr     \rp, \rp, #0x00100000
20                 ldr     \rp, [\rp, #0x118 ]
21                 and     \rp, \rp, #0xff000
22                 teq     \rp, #0x50000           @@ S5P6450
23                 ldreq   \rp, =0xEC800000
24                 movne   \rp, #0xEC000000        @@ S5P6440
25                 ldrne   \rv, = S3C_VA_UART
26 #if CONFIG_DEBUG_S3C_UART != 0
27                 add     \rp, \rp, #(0x400 * CONFIG_DEBUG_S3C_UART)
28                 add     \rv, \rv, #(0x400 * CONFIG_DEBUG_S3C_UART)
29 #endif
30         .endm
31
32 #include <debug/samsung.S>