blob: 8759e7882bcb0883e268f11d4ef2b09f705ea6a8 [file] [log] [blame]
Kukjin Kima2e0d622010-10-18 18:29:51 +09001/* 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
Tushar Behera334a1c72014-02-14 10:32:45 +090013#include <linux/serial_s3c.h>
Kukjin Kima2e0d622010-10-18 18:29:51 +090014#include <plat/map-base.h>
15#include <plat/map-s5p.h>
16
Nicolas Pitre639da5e2011-08-31 22:55:46 -040017 .macro addruart, rp, rv, tmp
Kukjin Kima2e0d622010-10-18 18:29:51 +090018 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
Arnd Bergmanna2e40712013-03-04 18:03:10 +010032#include <debug/samsung.S>