From 10e00ec8cc427ee68ed37513055816d60601d288 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Fri, 29 Mar 2013 06:32:39 +0000 Subject: [PATCH] For the AR933x UART, the serial clock is not the AHB clock, it's the reference clock. So use that instead. --- sys/mips/atheros/uart_bus_ar933x.c | 2 +- sys/mips/atheros/uart_cpu_ar933x.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/mips/atheros/uart_bus_ar933x.c b/sys/mips/atheros/uart_bus_ar933x.c index 9246766fd031..27c1277d4384 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_ahb_freq(); + freq = ar71xx_refclk(); sc = device_get_softc(dev); sc->sc_sysdev = SLIST_FIRST(&uart_sysdevs); diff --git a/sys/mips/atheros/uart_cpu_ar933x.c b/sys/mips/atheros/uart_cpu_ar933x.c index 4a24add2ec0a..d23a5c8495b3 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_ahb_freq(); + freq = ar71xx_refclk(); di->ops = uart_getops(&uart_ar933x_class); di->bas.chan = 0;