Kukjin Kim | a2e0d62 | 2010-10-18 18:29:51 +0900 | [diff] [blame] | 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 | |
Tushar Behera | 334a1c7 | 2014-02-14 10:32:45 +0900 | [diff] [blame^] | 13 | #include <linux/serial_s3c.h> |
Kukjin Kim | a2e0d62 | 2010-10-18 18:29:51 +0900 | [diff] [blame] | 14 | #include <plat/map-base.h> |
| 15 | #include <plat/map-s5p.h> |
| 16 | |
Nicolas Pitre | 639da5e | 2011-08-31 22:55:46 -0400 | [diff] [blame] | 17 | .macro addruart, rp, rv, tmp |
Kukjin Kim | a2e0d62 | 2010-10-18 18:29:51 +0900 | [diff] [blame] | 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 | |
Arnd Bergmann | a2e4071 | 2013-03-04 18:03:10 +0100 | [diff] [blame] | 32 | #include <debug/samsung.S> |