]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
serial: sh: Handle HSCIF on all 64-bit R-Car SoC
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 15 Mar 2026 23:55:33 +0000 (00:55 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 8 Apr 2026 17:36:28 +0000 (19:36 +0200)
The HSCIF variant present on Renesas R-Car Gen5 SoC is compatible
with the HSCIF variant present on Renesas R-Car Gen4 SoC. Enable
HSSRR register programming for HSCIF present on all 64-bit R-Car
SoCs, which covers R-Car Gen3, Gen4 and newly also Gen5.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/serial/serial_sh.c

index 7ab62e0e90bb436c7da2b939746553321a2246d5..bc205234e2483536ec6c5be9494c07bd0e7db64b 100644 (file)
@@ -59,7 +59,7 @@ static void sh_serial_init_generic(struct uart_port *port)
        sci_out(port, SCSPTR, 0x0003);
 #endif
 
-#if IS_ENABLED(CONFIG_RCAR_GEN2) || IS_ENABLED(CONFIG_RCAR_GEN3) || IS_ENABLED(CONFIG_RCAR_GEN4)
+#if IS_ENABLED(CONFIG_RCAR_GEN2) || IS_ENABLED(CONFIG_RCAR_GEN3) || IS_ENABLED(CONFIG_RCAR_GEN4) || IS_ENABLED(CONFIG_RCAR_GEN5)
        if (port->type == PORT_HSCIF)
                sci_out(port, HSSRR, HSSRR_SRE | HSSRR_SRCYC8);
 #endif