aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/Kconfig.debug
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2014-11-14 10:49:47 -0500
committerSimon Horman <horms+renesas@verge.net.au>2014-11-16 20:29:58 -0500
commit7a2071c58f36450fbf44a27d2e5d371c18534a25 (patch)
treeddb0b667867eec884de3d4114263976865c3bc79 /arch/arm/Kconfig.debug
parente3d163329753b3b473f40c9be71561ed8eb98aea (diff)
ARM: shmobile: Add early debugging support using SCIF(A)
Add serial port debug macros for the SCIF(A) serial ports. This includes all supported shmobile SoCs, except for EMEV2. The configuration logic (both Kconfig and #ifdef) is more complicated than one would expect, for several reasons: 1. Not all SoCs have the same serial devices, and they're not always at the same addresses. 2. There are two different types: SCIF and SCIFA. Fortunately they can easily be distinguished by physical address. 3. Not all boards use the same serial port for the console. The defaults correspond to the boards that are supported in mainline. If you want to use a different serial port, just change the value of CONFIG_DEBUG_UART_PHYS, and the rest will auto-adapt. 4. debug_ll_io_init() maps the SCIF(A) registers to a fixed virtual address. 0xfdxxxxxx was chosen, as it should lie below VMALLOC_END = 0xff000000, and must not conflict with the 2 MiB reserved region at PCI_IO_VIRT_BASE = 0xfee00000. - On SoCs not using the legacy machine_desc.map_io(), debug_ll_io_init() is called by the ARM core code. - On SoCs using the legacy machine_desc.map_io(), debug_ll_io_init() must be called explicitly. Calls are added for r8a7740, r8a7779, sh7372, and sh73a0. This was derived from the r8a7790 version by Laurent Pinchart. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Tested-by: Simon Horman <horms+renesas@verge.net.au> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/Kconfig.debug')
-rw-r--r--arch/arm/Kconfig.debug80
1 files changed, 79 insertions, 1 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 03dc4c1a8736..6ac3758f85d8 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -653,6 +653,64 @@ choice
653 Say Y here if you want kernel low-level debugging support 653 Say Y here if you want kernel low-level debugging support
654 on Rockchip RK32xx based platforms. 654 on Rockchip RK32xx based platforms.
655 655
656 config DEBUG_R7S72100_SCIF2
657 bool "Kernel low-level debugging messages via SCIF2 on R7S72100"
658 depends on ARCH_R7S72100
659 help
660 Say Y here if you want kernel low-level debugging support
661 via SCIF2 on Renesas RZ/A1H (R7S72100).
662
663 config DEBUG_RCAR_GEN1_SCIF0
664 bool "Kernel low-level debugging messages via SCIF0 on R8A7778"
665 depends on ARCH_R8A7778
666 help
667 Say Y here if you want kernel low-level debugging support
668 via SCIF0 on Renesas R-Car M1A (R8A7778).
669
670 config DEBUG_RCAR_GEN1_SCIF2
671 bool "Kernel low-level debugging messages via SCIF2 on R8A7779"
672 depends on ARCH_R8A7779
673 help
674 Say Y here if you want kernel low-level debugging support
675 via SCIF2 on Renesas R-Car H1 (R8A7779).
676
677 config DEBUG_RCAR_GEN2_SCIF0
678 bool "Kernel low-level debugging messages via SCIF0 on R8A7790/R8A7791/R8A7793)"
679 depends on ARCH_R8A7790 || ARCH_R8A7791 || ARCH_R8A7793
680 help
681 Say Y here if you want kernel low-level debugging support
682 via SCIF0 on Renesas R-Car H2 (R8A7790), M2-W (R8A7791), or
683 M2-N (R8A7793).
684
685 config DEBUG_RCAR_GEN2_SCIF2
686 bool "Kernel low-level debugging messages via SCIF2 on R8A7794"
687 depends on ARCH_R8A7794
688 help
689 Say Y here if you want kernel low-level debugging support
690 via SCIF2 on Renesas R-Car E2 (R8A7794).
691
692 config DEBUG_RMOBILE_SCIFA0
693 bool "Kernel low-level debugging messages via SCIFA0 on R8A73A4/SH7372"
694 depends on ARCH_R8A73A4 || ARCH_SH7372
695 help
696 Say Y here if you want kernel low-level debugging support
697 via SCIFA0 on Renesas R-Mobile APE6 (R8A73A4) or SH-Mobile
698 AP4 (SH7372).
699
700 config DEBUG_RMOBILE_SCIFA1
701 bool "Kernel low-level debugging messages via SCIFA1 on R8A7740"
702 depends on ARCH_R8A7740
703 help
704 Say Y here if you want kernel low-level debugging support
705 via SCIFA1 on Renesas R-Mobile A1 (R8A7740).
706
707 config DEBUG_RMOBILE_SCIFA4
708 bool "Kernel low-level debugging messages via SCIFA4 on SH73A0"
709 depends on ARCH_SH73A0
710 help
711 Say Y here if you want kernel low-level debugging support
712 via SCIFA4 on Renesas SH-Mobile AG5 (SH73A0).
713
656 config DEBUG_S3C_UART0 714 config DEBUG_S3C_UART0
657 depends on PLAT_SAMSUNG 715 depends on PLAT_SAMSUNG
658 select DEBUG_EXYNOS_UART if ARCH_EXYNOS 716 select DEBUG_EXYNOS_UART if ARCH_EXYNOS
@@ -1061,6 +1119,14 @@ config DEBUG_LL_INCLUDE
1061 DEBUG_IMX6SX_UART 1119 DEBUG_IMX6SX_UART
1062 default "debug/msm.S" if DEBUG_MSM_UART || DEBUG_QCOM_UARTDM 1120 default "debug/msm.S" if DEBUG_MSM_UART || DEBUG_QCOM_UARTDM
1063 default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART 1121 default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART
1122 default "debug/renesas-scif.S" if DEBUG_R7S72100_SCIF2
1123 default "debug/renesas-scif.S" if DEBUG_RCAR_GEN1_SCIF0
1124 default "debug/renesas-scif.S" if DEBUG_RCAR_GEN1_SCIF2
1125 default "debug/renesas-scif.S" if DEBUG_RCAR_GEN2_SCIF0
1126 default "debug/renesas-scif.S" if DEBUG_RCAR_GEN2_SCIF2
1127 default "debug/renesas-scif.S" if DEBUG_RMOBILE_SCIFA0
1128 default "debug/renesas-scif.S" if DEBUG_RMOBILE_SCIFA1
1129 default "debug/renesas-scif.S" if DEBUG_RMOBILE_SCIFA4
1064 default "debug/s3c24xx.S" if DEBUG_S3C24XX_UART 1130 default "debug/s3c24xx.S" if DEBUG_S3C24XX_UART
1065 default "debug/s5pv210.S" if DEBUG_S5PV210_UART 1131 default "debug/s5pv210.S" if DEBUG_S5PV210_UART
1066 default "debug/sirf.S" if DEBUG_SIRFPRIMA2_UART1 || DEBUG_SIRFMARCO_UART1 1132 default "debug/sirf.S" if DEBUG_SIRFPRIMA2_UART1 || DEBUG_SIRFMARCO_UART1
@@ -1152,6 +1218,12 @@ config DEBUG_UART_PHYS
1152 default 0xd4018000 if DEBUG_MMP_UART3 1218 default 0xd4018000 if DEBUG_MMP_UART3
1153 default 0xe0000000 if ARCH_SPEAR13XX 1219 default 0xe0000000 if ARCH_SPEAR13XX
1154 default 0xe4007000 if DEBUG_HIP04_UART 1220 default 0xe4007000 if DEBUG_HIP04_UART
1221 default 0xe6c40000 if DEBUG_RMOBILE_SCIFA0
1222 default 0xe6c50000 if DEBUG_RMOBILE_SCIFA1
1223 default 0xe6c80000 if DEBUG_RMOBILE_SCIFA4
1224 default 0xe6e58000 if DEBUG_RCAR_GEN2_SCIF2
1225 default 0xe6e60000 if DEBUG_RCAR_GEN2_SCIF0
1226 default 0xe8008000 if DEBUG_R7S72100_SCIF2
1155 default 0xf0000be0 if ARCH_EBSA110 1227 default 0xf0000be0 if ARCH_EBSA110
1156 default 0xf1012000 if DEBUG_MVEBU_UART_ALTERNATE 1228 default 0xf1012000 if DEBUG_MVEBU_UART_ALTERNATE
1157 default 0xf1012000 if ARCH_DOVE || ARCH_MV78XX0 || \ 1229 default 0xf1012000 if ARCH_DOVE || ARCH_MV78XX0 || \
@@ -1164,13 +1236,19 @@ config DEBUG_UART_PHYS
1164 default 0xff690000 if DEBUG_RK32_UART2 1236 default 0xff690000 if DEBUG_RK32_UART2
1165 default 0xffc02000 if DEBUG_SOCFPGA_UART 1237 default 0xffc02000 if DEBUG_SOCFPGA_UART
1166 default 0xffd82340 if ARCH_IOP13XX 1238 default 0xffd82340 if ARCH_IOP13XX
1239 default 0xffe40000 if DEBUG_RCAR_GEN1_SCIF0
1240 default 0xffe42000 if DEBUG_RCAR_GEN1_SCIF2
1167 default 0xfff36000 if DEBUG_HIGHBANK_UART 1241 default 0xfff36000 if DEBUG_HIGHBANK_UART
1168 default 0xfffe8600 if DEBUG_UART_BCM63XX 1242 default 0xfffe8600 if DEBUG_UART_BCM63XX
1169 default 0xfffff700 if ARCH_IOP33X 1243 default 0xfffff700 if ARCH_IOP33X
1170 depends on DEBUG_LL_UART_8250 || DEBUG_LL_UART_PL01X || \ 1244 depends on DEBUG_LL_UART_8250 || DEBUG_LL_UART_PL01X || \
1171 DEBUG_LL_UART_EFM32 || \ 1245 DEBUG_LL_UART_EFM32 || \
1172 DEBUG_UART_8250 || DEBUG_UART_PL01X || DEBUG_MESON_UARTAO || \ 1246 DEBUG_UART_8250 || DEBUG_UART_PL01X || DEBUG_MESON_UARTAO || \
1173 DEBUG_MSM_UART || DEBUG_QCOM_UARTDM || DEBUG_S3C24XX_UART || \ 1247 DEBUG_MSM_UART || DEBUG_QCOM_UARTDM || DEBUG_R7S72100_SCIF2 || \
1248 DEBUG_RCAR_GEN1_SCIF0 || DEBUG_RCAR_GEN1_SCIF2 || \
1249 DEBUG_RCAR_GEN2_SCIF0 || DEBUG_RCAR_GEN2_SCIF2 || \
1250 DEBUG_RMOBILE_SCIFA0 || DEBUG_RMOBILE_SCIFA1 || \
1251 DEBUG_RMOBILE_SCIFA4 || DEBUG_S3C24XX_UART || \
1174 DEBUG_UART_BCM63XX 1252 DEBUG_UART_BCM63XX
1175 1253
1176config DEBUG_UART_VIRT 1254config DEBUG_UART_VIRT