From 0b7b7d9afb1f48414d3254350c86599a24d7cdff Mon Sep 17 00:00:00 2001 From: adrian Date: Sun, 21 Jul 2013 03:54:39 +0000 Subject: [PATCH] Use the UART frequency when programming the UART clock. This allows the 16550 support to work correctly on the upcoming AR934x support. --- sys/mips/atheros/uart_bus_ar71xx.c | 2 +- sys/mips/atheros/uart_bus_ar933x.c | 2 +- sys/mips/atheros/uart_cpu_ar71xx.c | 2 +- sys/mips/atheros/uart_cpu_ar933x.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/mips/atheros/uart_bus_ar71xx.c b/sys/mips/atheros/uart_bus_ar71xx.c index 4c04aba360f4..73361521f1b0 100644 --- a/sys/mips/atheros/uart_bus_ar71xx.c +++ b/sys/mips/atheros/uart_bus_ar71xx.c @@ -70,7 +70,7 @@ uart_ar71xx_probe(device_t dev) struct uart_softc *sc; uint64_t freq; - freq = ar71xx_ahb_freq(); + freq = ar71xx_uart_freq(); sc = device_get_softc(dev); sc->sc_sysdev = SLIST_FIRST(&uart_sysdevs); diff --git a/sys/mips/atheros/uart_bus_ar933x.c b/sys/mips/atheros/uart_bus_ar933x.c index 27c1277d4384..1ce6c624169d 100644 --- a/sys/mips/atheros/uart_bus_ar933x.c +++ b/sys/mips/atheros/uart_bus_ar933x.c @@ -72,7 +72,7 @@ uart_ar933x_probe(device_t dev) struct uart_softc *sc; uint64_t freq; - freq = ar71xx_refclk(); + freq = ar71xx_uart_freq(); sc = device_get_softc(dev); sc->sc_sysdev = SLIST_FIRST(&uart_sysdevs); diff --git a/sys/mips/atheros/uart_cpu_ar71xx.c b/sys/mips/atheros/uart_cpu_ar71xx.c index 8465c26d6502..f004c1fea400 100644 --- a/sys/mips/atheros/uart_cpu_ar71xx.c +++ b/sys/mips/atheros/uart_cpu_ar71xx.c @@ -56,7 +56,7 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di) { uint64_t freq; - freq = ar71xx_ahb_freq(); + freq = ar71xx_uart_freq(); di->ops = uart_getops(&uart_ns8250_class); di->bas.chan = 0; diff --git a/sys/mips/atheros/uart_cpu_ar933x.c b/sys/mips/atheros/uart_cpu_ar933x.c index d23a5c8495b3..c4f942e41088 100644 --- a/sys/mips/atheros/uart_cpu_ar933x.c +++ b/sys/mips/atheros/uart_cpu_ar933x.c @@ -58,7 +58,7 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di) { uint64_t freq; - freq = ar71xx_refclk(); + freq = ar71xx_uart_freq(); di->ops = uart_getops(&uart_ar933x_class); di->bas.chan = 0;