diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-09-03 17:12:57 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2019-09-03 17:12:58 -0400 |
commit | 9e38081e5deb9c6cb7a7949b4f12959ea3ca8663 (patch) | |
tree | dc6797add8a53fac0ed372444ddf6ab42c29d867 | |
parent | e8606cd4812485b3fb93b9a9484d00bd31f1ab9e (diff) | |
parent | e9670ccb39dbcfc934ae9533163e81a769d2cb82 (diff) |
Merge tag 'renesas-arm-soc-for-v5.4-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel into arm/soc
Renesas ARM SoC updates for v5.4
- Low-level debugging support for RZ/A2M.
* tag 'renesas-arm-soc-for-v5.4-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-devel:
ARM: debug-ll: Add support for r7s9210
Link: https://lore.kernel.org/r/20190823123643.18799-3-geert+renesas@glider.be
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r-- | arch/arm/Kconfig.debug | 20 | ||||
-rw-r--r-- | arch/arm/include/debug/renesas-scif.S | 6 |
2 files changed, 24 insertions, 2 deletions
diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 96a8a1973fa3..fe7e9b583e63 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug | |||
@@ -917,6 +917,20 @@ choice | |||
917 | Say Y here if you want kernel low-level debugging support | 917 | Say Y here if you want kernel low-level debugging support |
918 | via SCIF2 on Renesas RZ/A1H (R7S72100). | 918 | via SCIF2 on Renesas RZ/A1H (R7S72100). |
919 | 919 | ||
920 | config DEBUG_R7S9210_SCIF2 | ||
921 | bool "Kernel low-level debugging messages via SCIF2 on R7S9210" | ||
922 | depends on ARCH_R7S9210 | ||
923 | help | ||
924 | Say Y here if you want kernel low-level debugging support | ||
925 | via SCIF2 on Renesas RZ/A2M (R7S9210). | ||
926 | |||
927 | config DEBUG_R7S9210_SCIF4 | ||
928 | bool "Kernel low-level debugging messages via SCIF4 on R7S9210" | ||
929 | depends on ARCH_R7S9210 | ||
930 | help | ||
931 | Say Y here if you want kernel low-level debugging support | ||
932 | via SCIF4 on Renesas RZ/A2M (R7S9210). | ||
933 | |||
920 | config DEBUG_RCAR_GEN1_SCIF0 | 934 | config DEBUG_RCAR_GEN1_SCIF0 |
921 | bool "Kernel low-level debugging messages via SCIF0 on R8A7778" | 935 | bool "Kernel low-level debugging messages via SCIF0 on R8A7778" |
922 | depends on ARCH_R8A7778 | 936 | depends on ARCH_R8A7778 |
@@ -1529,6 +1543,8 @@ config DEBUG_LL_INCLUDE | |||
1529 | default "debug/msm.S" if DEBUG_QCOM_UARTDM | 1543 | default "debug/msm.S" if DEBUG_QCOM_UARTDM |
1530 | default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART | 1544 | default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART |
1531 | default "debug/renesas-scif.S" if DEBUG_R7S72100_SCIF2 | 1545 | default "debug/renesas-scif.S" if DEBUG_R7S72100_SCIF2 |
1546 | default "debug/renesas-scif.S" if DEBUG_R7S9210_SCIF2 | ||
1547 | default "debug/renesas-scif.S" if DEBUG_R7S9210_SCIF4 | ||
1532 | default "debug/renesas-scif.S" if DEBUG_RCAR_GEN1_SCIF0 | 1548 | default "debug/renesas-scif.S" if DEBUG_RCAR_GEN1_SCIF0 |
1533 | default "debug/renesas-scif.S" if DEBUG_RCAR_GEN1_SCIF2 | 1549 | default "debug/renesas-scif.S" if DEBUG_RCAR_GEN1_SCIF2 |
1534 | default "debug/renesas-scif.S" if DEBUG_RCAR_GEN2_SCIF0 | 1550 | default "debug/renesas-scif.S" if DEBUG_RCAR_GEN2_SCIF0 |
@@ -1656,7 +1672,8 @@ config DEBUG_UART_PHYS | |||
1656 | default 0xe6e60000 if DEBUG_RCAR_GEN2_SCIF0 | 1672 | default 0xe6e60000 if DEBUG_RCAR_GEN2_SCIF0 |
1657 | default 0xe6e68000 if DEBUG_RCAR_GEN2_SCIF1 | 1673 | default 0xe6e68000 if DEBUG_RCAR_GEN2_SCIF1 |
1658 | default 0xe6ee0000 if DEBUG_RCAR_GEN2_SCIF4 | 1674 | default 0xe6ee0000 if DEBUG_RCAR_GEN2_SCIF4 |
1659 | default 0xe8008000 if DEBUG_R7S72100_SCIF2 | 1675 | default 0xe8008000 if DEBUG_R7S72100_SCIF2 || DEBUG_R7S9210_SCIF2 |
1676 | default 0xe8009000 if DEBUG_R7S9210_SCIF4 | ||
1660 | default 0xf0000000 if DEBUG_DIGICOLOR_UA0 | 1677 | default 0xf0000000 if DEBUG_DIGICOLOR_UA0 |
1661 | default 0xf0000be0 if ARCH_EBSA110 | 1678 | default 0xf0000be0 if ARCH_EBSA110 |
1662 | default 0xf1012000 if DEBUG_MVEBU_UART0_ALTERNATE | 1679 | default 0xf1012000 if DEBUG_MVEBU_UART0_ALTERNATE |
@@ -1687,6 +1704,7 @@ config DEBUG_UART_PHYS | |||
1687 | DEBUG_LL_UART_EFM32 || \ | 1704 | DEBUG_LL_UART_EFM32 || \ |
1688 | DEBUG_UART_8250 || DEBUG_UART_PL01X || DEBUG_MESON_UARTAO || \ | 1705 | DEBUG_UART_8250 || DEBUG_UART_PL01X || DEBUG_MESON_UARTAO || \ |
1689 | DEBUG_QCOM_UARTDM || DEBUG_R7S72100_SCIF2 || \ | 1706 | DEBUG_QCOM_UARTDM || DEBUG_R7S72100_SCIF2 || \ |
1707 | DEBUG_R7S9210_SCIF2 || DEBUG_R7S9210_SCIF4 || \ | ||
1690 | DEBUG_RCAR_GEN1_SCIF0 || DEBUG_RCAR_GEN1_SCIF2 || \ | 1708 | DEBUG_RCAR_GEN1_SCIF0 || DEBUG_RCAR_GEN1_SCIF2 || \ |
1691 | DEBUG_RCAR_GEN2_SCIF0 || DEBUG_RCAR_GEN2_SCIF1 || \ | 1709 | DEBUG_RCAR_GEN2_SCIF0 || DEBUG_RCAR_GEN2_SCIF1 || \ |
1692 | DEBUG_RCAR_GEN2_SCIF2 || DEBUG_RCAR_GEN2_SCIF4 || \ | 1710 | DEBUG_RCAR_GEN2_SCIF2 || DEBUG_RCAR_GEN2_SCIF4 || \ |
diff --git a/arch/arm/include/debug/renesas-scif.S b/arch/arm/include/debug/renesas-scif.S index 1c5f795587fc..25f06663a9a4 100644 --- a/arch/arm/include/debug/renesas-scif.S +++ b/arch/arm/include/debug/renesas-scif.S | |||
@@ -11,7 +11,11 @@ | |||
11 | #define SCIF_PHYS CONFIG_DEBUG_UART_PHYS | 11 | #define SCIF_PHYS CONFIG_DEBUG_UART_PHYS |
12 | #define SCIF_VIRT ((SCIF_PHYS & 0x00ffffff) | 0xfd000000) | 12 | #define SCIF_VIRT ((SCIF_PHYS & 0x00ffffff) | 0xfd000000) |
13 | 13 | ||
14 | #if CONFIG_DEBUG_UART_PHYS < 0xe6e00000 | 14 | #if defined(CONFIG_DEBUG_R7S9210_SCIF2) || defined(CONFIG_DEBUG_R7S9210_SCIF4) |
15 | /* RZ/A2 SCIFA */ | ||
16 | #define FTDR 0x06 | ||
17 | #define FSR 0x08 | ||
18 | #elif CONFIG_DEBUG_UART_PHYS < 0xe6e00000 | ||
15 | /* SCIFA */ | 19 | /* SCIFA */ |
16 | #define FTDR 0x20 | 20 | #define FTDR 0x20 |
17 | #define FSR 0x14 | 21 | #define FSR 0x14 |