summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2013-03-29 06:32:39 +0000
committeradrian <adrian@FreeBSD.org>2013-03-29 06:32:39 +0000
commitbecc1654f847d6f865b8d4cce27427568b720c93 (patch)
treead38c2d304484408b3aaf816edbdf267abaa504e
parent80efba7745863d5bbe5242bbe448a44790f56533 (diff)
downloadFreeBSD-src-becc1654f847d6f865b8d4cce27427568b720c93.zip
FreeBSD-src-becc1654f847d6f865b8d4cce27427568b720c93.tar.gz
For the AR933x UART, the serial clock is not the AHB clock, it's the
reference clock. So use that instead.
-rw-r--r--sys/mips/atheros/uart_bus_ar933x.c2
-rw-r--r--sys/mips/atheros/uart_cpu_ar933x.c2
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 9246766..27c1277 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 4a24add..d23a5c8 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;
OpenPOWER on IntegriCloud