author: Emil Renner Berthing <kernel@esmil.dk> 2021-10-14 20:56:54 +0200
committer: Emil Renner Berthing <kernel@esmil.dk> 2021-12-26 16:41:29 +0100
commit: a146d81abc398c5f9bb116e172561a8ad0715254
parent: e89e33d981b116d91d9785bc62453c45eeb9d5d7
Commit Summary:
Diffstat:
1 file changed, 3 insertions, 1 deletion
diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c
index 1687f178b5e4..4f63708bc03d 100644
--- a/drivers/tty/serial/8250/8250_dw.c
+++ b/drivers/tty/serial/8250/8250_dw.c
@@ -414,7 +414,8 @@ static void dw8250_quirks(struct uart_port *p, struct dw8250_data *data)
}
if (of_device_is_compatible(np, "marvell,armada-38x-uart"))
p->serial_out = dw8250_serial_out38x;
- if (of_device_is_compatible(np, "starfive,jh7100-uart"))
+ if (of_device_is_compatible(np, "starfive,jh7100-hsuart") ||
+ of_device_is_compatible(np, "starfive,jh7100-uart"))
p->set_termios = dw8250_do_set_termios;
} else if (acpi_dev_present("APMC0D08", NULL, -1)) {
@@ -698,6 +699,7 @@ static const struct of_device_id dw8250_of_match[] = {
{ .compatible = "cavium,octeon-3860-uart" },
{ .compatible = "marvell,armada-38x-uart" },
{ .compatible = "renesas,rzn1-uart" },
+ { .compatible = "starfive,jh7100-hsuart" },
{ .compatible = "starfive,jh7100-uart" },
{ /* Sentinel */ }
};