Skip to content

Commit 9e38081

Browse files
committed
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>
2 parents e8606cd + e9670cc commit 9e38081

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

‎arch/arm/Kconfig.debug‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,20 @@ choice
917917
Say Y here if you want kernel low-level debugging support
918918
via SCIF2 on Renesas RZ/A1H (R7S72100).
919919

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+
920934
config DEBUG_RCAR_GEN1_SCIF0
921935
bool "Kernel low-level debugging messages via SCIF0 on R8A7778"
922936
depends on ARCH_R8A7778
@@ -1529,6 +1543,8 @@ config DEBUG_LL_INCLUDE
15291543
default "debug/msm.S" if DEBUG_QCOM_UARTDM
15301544
default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART
15311545
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
15321548
default "debug/renesas-scif.S" if DEBUG_RCAR_GEN1_SCIF0
15331549
default "debug/renesas-scif.S" if DEBUG_RCAR_GEN1_SCIF2
15341550
default "debug/renesas-scif.S" if DEBUG_RCAR_GEN2_SCIF0
@@ -1656,7 +1672,8 @@ config DEBUG_UART_PHYS
16561672
default 0xe6e60000 if DEBUG_RCAR_GEN2_SCIF0
16571673
default 0xe6e68000 if DEBUG_RCAR_GEN2_SCIF1
16581674
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
16601677
default 0xf0000000 if DEBUG_DIGICOLOR_UA0
16611678
default 0xf0000be0 if ARCH_EBSA110
16621679
default 0xf1012000 if DEBUG_MVEBU_UART0_ALTERNATE
@@ -1687,6 +1704,7 @@ config DEBUG_UART_PHYS
16871704
DEBUG_LL_UART_EFM32 || \
16881705
DEBUG_UART_8250 || DEBUG_UART_PL01X || DEBUG_MESON_UARTAO || \
16891706
DEBUG_QCOM_UARTDM || DEBUG_R7S72100_SCIF2 || \
1707+
DEBUG_R7S9210_SCIF2 || DEBUG_R7S9210_SCIF4 || \
16901708
DEBUG_RCAR_GEN1_SCIF0 || DEBUG_RCAR_GEN1_SCIF2 || \
16911709
DEBUG_RCAR_GEN2_SCIF0 || DEBUG_RCAR_GEN2_SCIF1 || \
16921710
DEBUG_RCAR_GEN2_SCIF2 || DEBUG_RCAR_GEN2_SCIF4 || \

‎arch/arm/include/debug/renesas-scif.S‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
#define SCIF_PHYS CONFIG_DEBUG_UART_PHYS
1212
#define SCIF_VIRT ((SCIF_PHYS & 0x00ffffff) | 0xfd000000)
1313

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
1519
/* SCIFA */
1620
#define FTDR 0x20
1721
#define FSR 0x14

0 commit comments

Comments
 (0)