ARM: exynos: move debug-macro.S to include/debug/
authorArnd Bergmann <arnd@arndb.de>
Mon, 4 Mar 2013 17:03:10 +0000 (18:03 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 19 Apr 2013 11:51:21 +0000 (13:51 +0200)
The move is necessary to support early debug output on exynos
with multiplatform configurations. This implies also moving the
plat/debug-macro.S file, but we are leaving the remaining users of that
file in place, to avoid adding large numbers of extra configuration
options to Kconfig.debug

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/Kconfig.debug
arch/arm/include/debug/exynos.S [moved from arch/arm/mach-exynos/include/mach/debug-macro.S with 84% similarity]
arch/arm/include/debug/samsung.S [moved from arch/arm/plat-samsung/include/plat/debug-macro.S with 100% similarity]
arch/arm/mach-s3c24xx/include/mach/debug-macro.S
arch/arm/mach-s3c64xx/include/mach/debug-macro.S
arch/arm/mach-s5p64x0/include/mach/debug-macro.S
arch/arm/mach-s5pc100/include/mach/debug-macro.S
arch/arm/mach-s5pv210/include/mach/debug-macro.S

index 9b31f4311ea2717818d8a387d3e0131d335195d0..59ce26afdcc53087037df2837ea1dd011e527f7a 100644 (file)
@@ -330,6 +330,7 @@ choice
 
        config DEBUG_S3C_UART0
                depends on PLAT_SAMSUNG
+               select DEBUG_EXYNOS_UART if ARCH_EXYNOS
                bool "Use S3C UART 0 for low-level debug"
                help
                  Say Y here if you want the debug print routines to direct
@@ -341,6 +342,7 @@ choice
 
        config DEBUG_S3C_UART1
                depends on PLAT_SAMSUNG
+               select DEBUG_EXYNOS_UART if ARCH_EXYNOS
                bool "Use S3C UART 1 for low-level debug"
                help
                  Say Y here if you want the debug print routines to direct
@@ -352,6 +354,7 @@ choice
 
        config DEBUG_S3C_UART2
                depends on PLAT_SAMSUNG
+               select DEBUG_EXYNOS_UART if ARCH_EXYNOS
                bool "Use S3C UART 2 for low-level debug"
                help
                  Say Y here if you want the debug print routines to direct
@@ -363,6 +366,7 @@ choice
 
        config DEBUG_S3C_UART3
                depends on PLAT_SAMSUNG && ARCH_EXYNOS
+               select DEBUG_EXYNOS_UART
                bool "Use S3C UART 3 for low-level debug"
                help
                  Say Y here if you want the debug print routines to direct
@@ -485,6 +489,9 @@ choice
 
 endchoice
 
+config DEBUG_EXYNOS_UART
+       bool
+
 config DEBUG_IMX_UART_PORT
        int "i.MX Debug UART Port Selection" if DEBUG_IMX1_UART || \
                                                DEBUG_IMX25_UART || \
@@ -580,6 +587,7 @@ endchoice
 
 config DEBUG_LL_INCLUDE
        string
+       default "debug/exynos.S" if DEBUG_EXYNOS_UART
        default "debug/icedcc.S" if DEBUG_ICEDCC
        default "debug/imx.S" if DEBUG_IMX1_UART || \
                                 DEBUG_IMX25_UART || \
similarity index 84%
rename from arch/arm/mach-exynos/include/mach/debug-macro.S
rename to arch/arm/include/debug/exynos.S
index e0c86ea475e7bccd6f1e7b598fe6da69b78abc0f..b17fdb7fbd3472d85b30dabf529a9df23e9ff643 100644 (file)
@@ -1,10 +1,7 @@
-/* linux/arch/arm/mach-exynos4/include/mach/debug-macro.S
- *
+/*
  * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
  *             http://www.samsung.com
  *
- * Based on arch/arm/mach-s3c6400/include/mach/debug-macro.S
- *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
@@ -12,7 +9,10 @@
 
 /* pull in the relevant register and map files. */
 
-#include <mach/map.h>
+#define S3C_ADDR_BASE   0xF6000000
+#define S3C_VA_UART    S3C_ADDR_BASE + 0x01000000
+#define EXYNOS4_PA_UART        0x13800000
+#define EXYNOS5_PA_UART        0x12C00000
 
        /* note, for the boot process to work we have to keep the UART
         * virtual address aligned to an 1MiB boundary for the L1
@@ -36,4 +36,4 @@
 #define fifo_full fifo_full_s5pv210
 #define fifo_level fifo_level_s5pv210
 
-#include <plat/debug-macro.S>
+#include <debug/samsung.S>
index 13ed33c69113a3c6a5f70af6b9739d30d6f0b53b..2558952e3147ee281ecf2a2e2c7fc4df20900925 100644 (file)
@@ -98,4 +98,4 @@
 
 /* include the reset of the code which will do the work */
 
-#include <plat/debug-macro.S>
+#include <debug/samsung.S>
index c0c076a90f27ad4ea1f3f2715d836f52ccebc618..dd9ccca5de1f3eb2a50ededc605fb5a36f2924e2 100644 (file)
@@ -35,4 +35,4 @@
  * will be fine with us.
  */
 
-#include <plat/debug-macro.S>
+#include <debug/samsung.S>
index e80ba3c698143227ec9a6a505982e7c6a880d6fa..5e2916fb19a9f2f4f6f9c95b222cd7af86b09a28 100644 (file)
@@ -30,4 +30,4 @@
 #endif
        .endm
 
-#include <plat/debug-macro.S>
+#include <debug/samsung.S>
index 694f759370008e1678c9b0a06c1ed21c0cf92411..66cb7f16bf2aa37f9ebfdab4a5ebd38bbf18d821 100644 (file)
@@ -36,4 +36,4 @@
  * will be fine with us.
  */
 
-#include <plat/debug-macro.S>
+#include <debug/samsung.S>
index 79e55597ab633cb0f653fec915fa6b47f6766239..80c21996c9434c02453d98570f5160278d1796ed 100644 (file)
@@ -38,4 +38,4 @@
  * will be fine with us.
  */
 
-#include <plat/debug-macro.S>
+#include <debug/samsung.S>