aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Figa <t.figa@samsung.com>2014-07-03 08:39:41 -0400
committerKukjin Kim <kgene.kim@samsung.com>2014-07-18 15:32:12 -0400
commit7bab7d9e114e6e908675aa185aaeaa162cc384ea (patch)
treefc2ade635148ea9ff03887a8d1ffa69727721ae0
parent0a90d4d62c71e27cedebf938d7c37db543b93e78 (diff)
ARM: S5PV210: move debug-macro.S into the common space
Move debug-macro.S from mach/include to include/debug where all other common debug macros are. Signed-off-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
-rw-r--r--arch/arm/Kconfig.debug12
-rw-r--r--arch/arm/include/debug/s5pv210.S (renamed from arch/arm/mach-s5pv210/include/mach/debug-macro.S)23
2 files changed, 18 insertions, 17 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index b7acfa396679..8698fa11e437 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -617,6 +617,7 @@ choice
617 depends on PLAT_SAMSUNG 617 depends on PLAT_SAMSUNG
618 select DEBUG_EXYNOS_UART if ARCH_EXYNOS 618 select DEBUG_EXYNOS_UART if ARCH_EXYNOS
619 select DEBUG_S3C24XX_UART if ARCH_S3C24XX 619 select DEBUG_S3C24XX_UART if ARCH_S3C24XX
620 select DEBUG_S5PV210_UART if ARCH_S5PV210
620 bool "Use Samsung S3C UART 0 for low-level debug" 621 bool "Use Samsung S3C UART 0 for low-level debug"
621 help 622 help
622 Say Y here if you want the debug print routines to direct 623 Say Y here if you want the debug print routines to direct
@@ -627,6 +628,7 @@ choice
627 depends on PLAT_SAMSUNG 628 depends on PLAT_SAMSUNG
628 select DEBUG_EXYNOS_UART if ARCH_EXYNOS 629 select DEBUG_EXYNOS_UART if ARCH_EXYNOS
629 select DEBUG_S3C24XX_UART if ARCH_S3C24XX 630 select DEBUG_S3C24XX_UART if ARCH_S3C24XX
631 select DEBUG_S5PV210_UART if ARCH_S5PV210
630 bool "Use Samsung S3C UART 1 for low-level debug" 632 bool "Use Samsung S3C UART 1 for low-level debug"
631 help 633 help
632 Say Y here if you want the debug print routines to direct 634 Say Y here if you want the debug print routines to direct
@@ -637,6 +639,7 @@ choice
637 depends on PLAT_SAMSUNG 639 depends on PLAT_SAMSUNG
638 select DEBUG_EXYNOS_UART if ARCH_EXYNOS 640 select DEBUG_EXYNOS_UART if ARCH_EXYNOS
639 select DEBUG_S3C24XX_UART if ARCH_S3C24XX 641 select DEBUG_S3C24XX_UART if ARCH_S3C24XX
642 select DEBUG_S5PV210_UART if ARCH_S5PV210
640 bool "Use Samsung S3C UART 2 for low-level debug" 643 bool "Use Samsung S3C UART 2 for low-level debug"
641 help 644 help
642 Say Y here if you want the debug print routines to direct 645 Say Y here if you want the debug print routines to direct
@@ -644,8 +647,9 @@ choice
644 by the boot-loader before use. 647 by the boot-loader before use.
645 648
646 config DEBUG_S3C_UART3 649 config DEBUG_S3C_UART3
647 depends on PLAT_SAMSUNG && ARCH_EXYNOS 650 depends on PLAT_SAMSUNG && (ARCH_EXYNOS || ARCH_S5PV210)
648 select DEBUG_EXYNOS_UART 651 select DEBUG_EXYNOS_UART if ARCH_EXYNOS
652 select DEBUG_S5PV210_UART if ARCH_S5PV210
649 bool "Use Samsung S3C UART 3 for low-level debug" 653 bool "Use Samsung S3C UART 3 for low-level debug"
650 help 654 help
651 Say Y here if you want the debug print routines to direct 655 Say Y here if you want the debug print routines to direct
@@ -937,6 +941,9 @@ config DEBUG_S3C2410_UART
937config DEBUG_S3C24XX_UART 941config DEBUG_S3C24XX_UART
938 bool 942 bool
939 943
944config DEBUG_S5PV210_UART
945 bool
946
940config DEBUG_OMAP2PLUS_UART 947config DEBUG_OMAP2PLUS_UART
941 bool 948 bool
942 depends on ARCH_OMAP2PLUS 949 depends on ARCH_OMAP2PLUS
@@ -997,6 +1004,7 @@ config DEBUG_LL_INCLUDE
997 default "debug/msm.S" if DEBUG_MSM_UART || DEBUG_QCOM_UARTDM 1004 default "debug/msm.S" if DEBUG_MSM_UART || DEBUG_QCOM_UARTDM
998 default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART 1005 default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART
999 default "debug/s3c24xx.S" if DEBUG_S3C24XX_UART 1006 default "debug/s3c24xx.S" if DEBUG_S3C24XX_UART
1007 default "debug/s5pv210.S" if DEBUG_S5PV210_UART
1000 default "debug/sirf.S" if DEBUG_SIRFPRIMA2_UART1 || DEBUG_SIRFMARCO_UART1 1008 default "debug/sirf.S" if DEBUG_SIRFPRIMA2_UART1 || DEBUG_SIRFMARCO_UART1
1001 default "debug/sti.S" if DEBUG_STI_UART 1009 default "debug/sti.S" if DEBUG_STI_UART
1002 default "debug/tegra.S" if DEBUG_TEGRA_UART 1010 default "debug/tegra.S" if DEBUG_TEGRA_UART
diff --git a/arch/arm/mach-s5pv210/include/mach/debug-macro.S b/arch/arm/include/debug/s5pv210.S
index 30b511a580aa..4f1a73e2c1a1 100644
--- a/arch/arm/mach-s5pv210/include/mach/debug-macro.S
+++ b/arch/arm/include/debug/s5pv210.S
@@ -1,9 +1,6 @@
1/* linux/arch/arm/mach-s5pv210/include/mach/debug-macro.S 1/*
2 * 2 * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
3 * Copyright (c) 2010 Samsung Electronics Co., Ltd. 3 * http://www.samsung.com
4 * http://www.samsung.com/
5 *
6 * Based on arch/arm/mach-s3c6400/include/mach/debug-macro.S
7 * 4 *
8 * This program is free software; you can redistribute it and/or modify 5 * 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 6 * it under the terms of the GNU General Public License version 2 as
@@ -12,8 +9,9 @@
12 9
13/* pull in the relevant register and map files. */ 10/* pull in the relevant register and map files. */
14 11
15#include <linux/serial_s3c.h> 12#define S3C_ADDR_BASE 0xF6000000
16#include <mach/map.h> 13#define S3C_VA_UART S3C_ADDR_BASE + 0x01000000
14#define S5PV210_PA_UART 0xe2900000
17 15
18 /* note, for the boot process to work we have to keep the UART 16 /* note, for the boot process to work we have to keep the UART
19 * virtual address aligned to an 1MiB boundary for the L1 17 * virtual address aligned to an 1MiB boundary for the L1
@@ -22,8 +20,8 @@
22 */ 20 */
23 21
24 .macro addruart, rp, rv, tmp 22 .macro addruart, rp, rv, tmp
25 ldr \rp, = S3C_PA_UART 23 ldr \rp, =S5PV210_PA_UART
26 ldr \rv, = S3C_VA_UART 24 ldr \rv, =S3C_VA_UART
27#if CONFIG_DEBUG_S3C_UART != 0 25#if CONFIG_DEBUG_S3C_UART != 0
28 add \rp, \rp, #(0x400 * CONFIG_DEBUG_S3C_UART) 26 add \rp, \rp, #(0x400 * CONFIG_DEBUG_S3C_UART)
29 add \rv, \rv, #(0x400 * CONFIG_DEBUG_S3C_UART) 27 add \rv, \rv, #(0x400 * CONFIG_DEBUG_S3C_UART)
@@ -33,9 +31,4 @@
33#define fifo_full fifo_full_s5pv210 31#define fifo_full fifo_full_s5pv210
34#define fifo_level fifo_level_s5pv210 32#define fifo_level fifo_level_s5pv210
35 33
36/* include the reset of the code which will do the work, we're only
37 * compiling for a single cpu processor type so the default of s3c2440
38 * will be fine with us.
39 */
40
41#include <debug/samsung.S> 34#include <debug/samsung.S>