diff options
author | Heiko Stuebner <heiko@sntech.de> | 2014-05-15 17:59:18 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2014-05-25 15:05:00 -0400 |
commit | 1899de2894970fbeece3a97dd69d5321fb00972b (patch) | |
tree | 9e7c190036d6a23f2f8d070110b2819969e9340a /arch/arm | |
parent | daf67dfc5989495c887cfdbe76be72b7db724e60 (diff) |
ARM: S3C24XX: use generic DEBUG_UART_PHY/_VIRT in debug macro
This removes the need for mach/-headers in the debug macro.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/Kconfig.debug | 23 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/include/mach/debug-macro.S | 9 |
2 files changed, 23 insertions, 9 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 8c72e1003b9a..104c8fb818ed 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug | |||
@@ -625,6 +625,7 @@ choice | |||
625 | config DEBUG_S3C_UART0 | 625 | config DEBUG_S3C_UART0 |
626 | depends on PLAT_SAMSUNG | 626 | depends on PLAT_SAMSUNG |
627 | select DEBUG_EXYNOS_UART if ARCH_EXYNOS | 627 | select DEBUG_EXYNOS_UART if ARCH_EXYNOS |
628 | select DEBUG_S3C24XX_UART if ARCH_S3C24XX | ||
628 | bool "Use S3C UART 0 for low-level debug" | 629 | bool "Use S3C UART 0 for low-level debug" |
629 | help | 630 | help |
630 | Say Y here if you want the debug print routines to direct | 631 | Say Y here if you want the debug print routines to direct |
@@ -637,6 +638,7 @@ choice | |||
637 | config DEBUG_S3C_UART1 | 638 | config DEBUG_S3C_UART1 |
638 | depends on PLAT_SAMSUNG | 639 | depends on PLAT_SAMSUNG |
639 | select DEBUG_EXYNOS_UART if ARCH_EXYNOS | 640 | select DEBUG_EXYNOS_UART if ARCH_EXYNOS |
641 | select DEBUG_S3C24XX_UART if ARCH_S3C24XX | ||
640 | bool "Use S3C UART 1 for low-level debug" | 642 | bool "Use S3C UART 1 for low-level debug" |
641 | help | 643 | help |
642 | Say Y here if you want the debug print routines to direct | 644 | Say Y here if you want the debug print routines to direct |
@@ -649,6 +651,7 @@ choice | |||
649 | config DEBUG_S3C_UART2 | 651 | config DEBUG_S3C_UART2 |
650 | depends on PLAT_SAMSUNG | 652 | depends on PLAT_SAMSUNG |
651 | select DEBUG_EXYNOS_UART if ARCH_EXYNOS | 653 | select DEBUG_EXYNOS_UART if ARCH_EXYNOS |
654 | select DEBUG_S3C24XX_UART if ARCH_S3C24XX | ||
652 | bool "Use S3C UART 2 for low-level debug" | 655 | bool "Use S3C UART 2 for low-level debug" |
653 | help | 656 | help |
654 | Say Y here if you want the debug print routines to direct | 657 | Say Y here if you want the debug print routines to direct |
@@ -950,6 +953,10 @@ config DEBUG_EXYNOS_UART | |||
950 | 953 | ||
951 | config DEBUG_S3C2410_UART | 954 | config DEBUG_S3C2410_UART |
952 | bool | 955 | bool |
956 | select DEBUG_S3C24XX_UART | ||
957 | |||
958 | config DEBUG_S3C24XX_UART | ||
959 | bool | ||
953 | 960 | ||
954 | config DEBUG_OMAP2PLUS_UART | 961 | config DEBUG_OMAP2PLUS_UART |
955 | bool | 962 | bool |
@@ -1059,6 +1066,12 @@ config DEBUG_UART_PHYS | |||
1059 | default 0x40090000 if ARCH_LPC32XX | 1066 | default 0x40090000 if ARCH_LPC32XX |
1060 | default 0x40100000 if DEBUG_PXA_UART1 | 1067 | default 0x40100000 if DEBUG_PXA_UART1 |
1061 | default 0x42000000 if ARCH_GEMINI | 1068 | default 0x42000000 if ARCH_GEMINI |
1069 | default 0x50000000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART0 || \ | ||
1070 | DEBUG_S3C2410_UART0) | ||
1071 | default 0x50004000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART1 || \ | ||
1072 | DEBUG_S3C2410_UART1) | ||
1073 | default 0x50008000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART2 || \ | ||
1074 | DEBUG_S3C2410_UART2) | ||
1062 | default 0x7c0003f8 if FOOTBRIDGE | 1075 | default 0x7c0003f8 if FOOTBRIDGE |
1063 | default 0x80070000 if DEBUG_IMX23_UART | 1076 | default 0x80070000 if DEBUG_IMX23_UART |
1064 | default 0x80074000 if DEBUG_IMX28_UART | 1077 | default 0x80074000 if DEBUG_IMX28_UART |
@@ -1088,7 +1101,7 @@ config DEBUG_UART_PHYS | |||
1088 | default 0xfffff700 if ARCH_IOP33X | 1101 | default 0xfffff700 if ARCH_IOP33X |
1089 | depends on DEBUG_LL_UART_8250 || DEBUG_LL_UART_PL01X || \ | 1102 | depends on DEBUG_LL_UART_8250 || DEBUG_LL_UART_PL01X || \ |
1090 | DEBUG_LL_UART_EFM32 || \ | 1103 | DEBUG_LL_UART_EFM32 || \ |
1091 | DEBUG_UART_8250 || DEBUG_UART_PL01X | 1104 | DEBUG_UART_8250 || DEBUG_UART_PL01X || DEBUG_S3C24XX_UART |
1092 | 1105 | ||
1093 | config DEBUG_UART_VIRT | 1106 | config DEBUG_UART_VIRT |
1094 | hex "Virtual base address of debug UART" | 1107 | hex "Virtual base address of debug UART" |
@@ -1105,6 +1118,12 @@ config DEBUG_UART_VIRT | |||
1105 | default 0xf2100000 if DEBUG_PXA_UART1 | 1118 | default 0xf2100000 if DEBUG_PXA_UART1 |
1106 | default 0xf4090000 if ARCH_LPC32XX | 1119 | default 0xf4090000 if ARCH_LPC32XX |
1107 | default 0xf4200000 if ARCH_GEMINI | 1120 | default 0xf4200000 if ARCH_GEMINI |
1121 | default 0xf7000000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART0 || \ | ||
1122 | DEBUG_S3C2410_UART0) | ||
1123 | default 0xf7004000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART1 || \ | ||
1124 | DEBUG_S3C2410_UART1) | ||
1125 | default 0xf7008000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART2 || \ | ||
1126 | DEBUG_S3C2410_UART2) | ||
1108 | default 0xf7fc9000 if DEBUG_BERLIN_UART | 1127 | default 0xf7fc9000 if DEBUG_BERLIN_UART |
1109 | default 0xf8009000 if DEBUG_VEXPRESS_UART0_CA9 | 1128 | default 0xf8009000 if DEBUG_VEXPRESS_UART0_CA9 |
1110 | default 0xf8090000 if DEBUG_VEXPRESS_UART0_RS1 | 1129 | default 0xf8090000 if DEBUG_VEXPRESS_UART0_RS1 |
@@ -1146,7 +1165,7 @@ config DEBUG_UART_VIRT | |||
1146 | default 0xff003000 if DEBUG_U300_UART | 1165 | default 0xff003000 if DEBUG_U300_UART |
1147 | default DEBUG_UART_PHYS if !MMU | 1166 | default DEBUG_UART_PHYS if !MMU |
1148 | depends on DEBUG_LL_UART_8250 || DEBUG_LL_UART_PL01X || \ | 1167 | depends on DEBUG_LL_UART_8250 || DEBUG_LL_UART_PL01X || \ |
1149 | DEBUG_UART_8250 || DEBUG_UART_PL01X | 1168 | DEBUG_UART_8250 || DEBUG_UART_PL01X || DEBUG_S3C24XX_UART |
1150 | 1169 | ||
1151 | config DEBUG_UART_8250_SHIFT | 1170 | config DEBUG_UART_8250_SHIFT |
1152 | int "Register offset shift for the 8250 debug UART" | 1171 | int "Register offset shift for the 8250 debug UART" |
diff --git a/arch/arm/mach-s3c24xx/include/mach/debug-macro.S b/arch/arm/mach-s3c24xx/include/mach/debug-macro.S index fbe3e711ebab..b1f54dc4888c 100644 --- a/arch/arm/mach-s3c24xx/include/mach/debug-macro.S +++ b/arch/arm/mach-s3c24xx/include/mach/debug-macro.S | |||
@@ -12,18 +12,13 @@ | |||
12 | * published by the Free Software Foundation. | 12 | * published by the Free Software Foundation. |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include <mach/map.h> | ||
16 | #include <linux/serial_s3c.h> | 15 | #include <linux/serial_s3c.h> |
17 | 16 | ||
18 | #define S3C2410_UART1_OFF (0x4000) | 17 | #define S3C2410_UART1_OFF (0x4000) |
19 | 18 | ||
20 | .macro addruart, rp, rv, tmp | 19 | .macro addruart, rp, rv, tmp |
21 | ldr \rp, = S3C24XX_PA_UART | 20 | ldr \rp, = CONFIG_DEBUG_UART_PHYS |
22 | ldr \rv, = S3C24XX_VA_UART | 21 | ldr \rv, = CONFIG_DEBUG_UART_VIRT |
23 | #if CONFIG_DEBUG_S3C_UART != 0 | ||
24 | add \rp, \rp, #(S3C2410_UART1_OFF * CONFIG_DEBUG_S3C_UART) | ||
25 | add \rv, \rv, #(S3C2410_UART1_OFF * CONFIG_DEBUG_S3C_UART) | ||
26 | #endif | ||
27 | .endm | 22 | .endm |
28 | 23 | ||
29 | .macro fifo_full_s3c2410 rd, rx | 24 | .macro fifo_full_s3c2410 rd, rx |