Skip to content

Commit e9670cc

Browse files
committed
ARM: debug-ll: Add support for r7s9210
Enable low-level debugging support for RZ/A2M (r7s9210). The RZA2MEVB board uses either SCIF2 (SDRAM enabled) or SCIF4 (HyperRAM only) for the serial console. Note that "SCIFA" serial ports on RZ/A2 SoCs use a compressed register layout, hence add support for that to renesas-scif.S. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
1 parent 5f9e832 commit e9670cc

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
@@ -924,6 +924,20 @@ choice
924924
Say Y here if you want kernel low-level debugging support
925925
via SCIF2 on Renesas RZ/A1H (R7S72100).
926926

927+
config DEBUG_R7S9210_SCIF2
928+
bool "Kernel low-level debugging messages via SCIF2 on R7S9210"
929+
depends on ARCH_R7S9210
930+
help
931+
Say Y here if you want kernel low-level debugging support
932+
via SCIF2 on Renesas RZ/A2M (R7S9210).
933+
934+
config DEBUG_R7S9210_SCIF4
935+
bool "Kernel low-level debugging messages via SCIF4 on R7S9210"
936+
depends on ARCH_R7S9210
937+
help
938+
Say Y here if you want kernel low-level debugging support
939+
via SCIF4 on Renesas RZ/A2M (R7S9210).
940+
927941
config DEBUG_RCAR_GEN1_SCIF0
928942
bool "Kernel low-level debugging messages via SCIF0 on R8A7778"
929943
depends on ARCH_R8A7778
@@ -1538,6 +1552,8 @@ config DEBUG_LL_INCLUDE
15381552
default "debug/netx.S" if DEBUG_NETX_UART
15391553
default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART
15401554
default "debug/renesas-scif.S" if DEBUG_R7S72100_SCIF2
1555+
default "debug/renesas-scif.S" if DEBUG_R7S9210_SCIF2
1556+
default "debug/renesas-scif.S" if DEBUG_R7S9210_SCIF4
15411557
default "debug/renesas-scif.S" if DEBUG_RCAR_GEN1_SCIF0
15421558
default "debug/renesas-scif.S" if DEBUG_RCAR_GEN1_SCIF2
15431559
default "debug/renesas-scif.S" if DEBUG_RCAR_GEN2_SCIF0
@@ -1668,7 +1684,8 @@ config DEBUG_UART_PHYS
16681684
default 0xe6e60000 if DEBUG_RCAR_GEN2_SCIF0
16691685
default 0xe6e68000 if DEBUG_RCAR_GEN2_SCIF1
16701686
default 0xe6ee0000 if DEBUG_RCAR_GEN2_SCIF4
1671-
default 0xe8008000 if DEBUG_R7S72100_SCIF2
1687+
default 0xe8008000 if DEBUG_R7S72100_SCIF2 || DEBUG_R7S9210_SCIF2
1688+
default 0xe8009000 if DEBUG_R7S9210_SCIF4
16721689
default 0xf0000000 if DEBUG_DIGICOLOR_UA0
16731690
default 0xf0000be0 if ARCH_EBSA110
16741691
default 0xf1012000 if DEBUG_MVEBU_UART0_ALTERNATE
@@ -1702,6 +1719,7 @@ config DEBUG_UART_PHYS
17021719
DEBUG_UART_8250 || DEBUG_UART_PL01X || DEBUG_MESON_UARTAO || \
17031720
DEBUG_NETX_UART || \
17041721
DEBUG_QCOM_UARTDM || DEBUG_R7S72100_SCIF2 || \
1722+
DEBUG_R7S9210_SCIF2 || DEBUG_R7S9210_SCIF4 || \
17051723
DEBUG_RCAR_GEN1_SCIF0 || DEBUG_RCAR_GEN1_SCIF2 || \
17061724
DEBUG_RCAR_GEN2_SCIF0 || DEBUG_RCAR_GEN2_SCIF1 || \
17071725
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)