linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [-next] serial: 8250: Match legacy NS16550A UARTs
@ 2021-04-14 13:45 Al Cooper
  2021-04-15  8:11 ` Greg Kroah-Hartman
  2021-04-15 10:44 ` Andy Shevchenko
  0 siblings, 2 replies; 7+ messages in thread
From: Al Cooper @ 2021-04-14 13:45 UTC (permalink / raw)
  To: linux-kernel
  Cc: Florian Fainelli, Al Cooper, bcm-kernel-feedback-list,
	Greg Kroah-Hartman, Jiri Slaby, linux-serial

From: Florian Fainelli <f.fainelli@gmail.com>

Older 32-bit only Broadcom STB chips used a NS16550A compatible UART,
the 8250_bcm7271.c driver can drive those UARTs just fine provided that
we let it match the appropriate compatible string.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Al Cooper <alcooperx@gmail.com>
---
 drivers/tty/serial/8250/8250_bcm7271.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/drivers/tty/serial/8250/8250_bcm7271.c b/drivers/tty/serial/8250/8250_bcm7271.c
index 725a450058f8..023a2de8b2d6 100644
--- a/drivers/tty/serial/8250/8250_bcm7271.c
+++ b/drivers/tty/serial/8250/8250_bcm7271.c
@@ -204,6 +204,13 @@ static const u32 brcmstb_rate_table_7278[] = {
 	MHZ(48),
 };
 
+static const u32 brcmstb_rate_table_16550a[] = {
+	MHZ(81),
+	0,
+	0,
+	0,
+};
+
 struct brcmuart_priv {
 	int		line;
 	struct clk	*baud_mux_clk;
@@ -865,6 +872,10 @@ static const struct of_device_id brcmuart_dt_ids[] = {
 		.compatible = "brcm,bcm7271-uart",
 		.data = brcmstb_rate_table,
 	},
+	{
+		.compatible = "ns16550a",
+		.data = brcmstb_rate_table_16550a,
+	},
 	{},
 };
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-04-21 20:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-14 13:45 [-next] serial: 8250: Match legacy NS16550A UARTs Al Cooper
2021-04-15  8:11 ` Greg Kroah-Hartman
2021-04-15 10:44 ` Andy Shevchenko
2021-04-21 19:04   ` Alan Cooper
2021-04-21 19:57     ` Andy Shevchenko
2021-04-21 20:00       ` Florian Fainelli
2021-04-21 20:12         ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).