summaryrefslogtreecommitdiffstats
path: root/sys/dev/uart/uart_dev_ns8250.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/uart/uart_dev_ns8250.c')
-rw-r--r--sys/dev/uart/uart_dev_ns8250.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/dev/uart/uart_dev_ns8250.c b/sys/dev/uart/uart_dev_ns8250.c
index cb52ce7..a36afef 100644
--- a/sys/dev/uart/uart_dev_ns8250.c
+++ b/sys/dev/uart/uart_dev_ns8250.c
@@ -398,7 +398,6 @@ struct uart_class uart_ns8250_class = {
static struct ofw_compat_data compat_data[] = {
{"ns16550", (uintptr_t)&uart_ns8250_class},
{"ns16550a", (uintptr_t)&uart_ns8250_class},
- {"snps,dw-apb-uart", (uintptr_t)&uart_ns8250_class},
{NULL, (uintptr_t)NULL},
};
UART_FDT_CLASS_AND_DEVICE(compat_data);
@@ -451,19 +450,9 @@ ns8250_bus_attach(struct uart_softc *sc)
pcell_t cell;
#endif
- ns8250->busy_detect = 0;
-
#ifdef FDT
- /*
- * Check whether uart requires to read USR reg when IIR_BUSY and
- * has broken txfifo.
- */
- ns8250->busy_detect = ofw_bus_is_compatible(sc->sc_dev, "snps,dw-apb-uart");
+ /* Check whether uart has a broken txfifo. */
node = ofw_bus_get_node(sc->sc_dev);
- /* XXX: This is kept for a short time for compatibility with older device trees */
- if ((OF_getencprop(node, "busy-detect", &cell, sizeof(cell))) > 0
- && cell != 0)
- ns8250->busy_detect = 1;
if ((OF_getencprop(node, "broken-txfifo", &cell, sizeof(cell))) > 0)
broken_txfifo = cell ? 1 : 0;
#endif
OpenPOWER on IntegriCloud