diff options
author | Emil Renner Berthing <kernel@esmil.dk> | 2021-10-14 21:56:54 +0300 |
---|---|---|
committer | jianlong.huang <jianlong.huang@starfivetech.com> | 2022-04-21 03:27:52 +0300 |
commit | 4b741dafa16b77488efec039b1d6010fe2b825b0 (patch) | |
tree | b607d54a6defa99d22c311ca817e4d78b5f28c15 | |
parent | 6d209eb8e7be7e29992e8229827cb94bf3d05c75 (diff) | |
download | linux-4b741dafa16b77488efec039b1d6010fe2b825b0.tar.xz |
serial: 8250_dw: Add quirk for starfive,jh7100-hsuart too
Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
-rw-r--r-- | drivers/tty/serial/8250/8250_dw.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c index 441a1aaca68a..1fcb162f15c1 100644 --- a/drivers/tty/serial/8250/8250_dw.c +++ b/drivers/tty/serial/8250/8250_dw.c @@ -421,7 +421,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)) { @@ -705,6 +706,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 */ } }; |