diff options
| author | Hai Pham <[email protected]> | 2023-02-28 22:29:19 +0100 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2023-04-07 17:13:28 +0200 |
| commit | bbe36e29ca2ce2b3fad0343383038a9ff07dd655 (patch) | |
| tree | 2f753a795a8525a2aa7a4d39e44308d7ff4f8996 /drivers/serial/serial_sh.c | |
| parent | 3bf63fbd5d9a9a9694f3be184cbdb9c62413c52d (diff) | |
serial: sh: Add HSCIF support for R-Car SoC
Provide the basic HSCIF support for R-Car SoC.
Reviewed-by: Marek Vasut <[email protected]>
Signed-off-by: Hai Pham <[email protected]>
Signed-off-by: Marek Vasut <[email protected]>
[Marek: Fill in HSSRR offset for Gen2 and SCBRR calculation for Gen2 and Gen3]
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'drivers/serial/serial_sh.c')
| -rw-r--r-- | drivers/serial/serial_sh.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/serial/serial_sh.c b/drivers/serial/serial_sh.c index e08bdcadc9c..20cda5dbe27 100644 --- a/drivers/serial/serial_sh.c +++ b/drivers/serial/serial_sh.c @@ -57,6 +57,9 @@ static void sh_serial_init_generic(struct uart_port *port) #if defined(CONFIG_RZA1) sci_out(port, SCSPTR, 0x0003); #endif + + if (port->type == PORT_HSCIF) + sci_out(port, HSSRR, HSSRR_SRE | HSSRR_SRCYC8); } static void @@ -205,6 +208,7 @@ static const struct udevice_id sh_serial_id[] ={ {.compatible = "renesas,sci", .data = PORT_SCI}, {.compatible = "renesas,scif", .data = PORT_SCIF}, {.compatible = "renesas,scifa", .data = PORT_SCIFA}, + {.compatible = "renesas,hscif", .data = PORT_HSCIF}, {} }; @@ -257,6 +261,8 @@ U_BOOT_DRIVER(serial_sh) = { #define SCIF_BASE_PORT PORT_SCIFA #elif defined(CFG_SCI) #define SCIF_BASE_PORT PORT_SCI +#elif defined(CFG_HSCIF) + #define SCIF_BASE_PORT PORT_HSCIF #else #define SCIF_BASE_PORT PORT_SCIF #endif |
