summaryrefslogtreecommitdiffstats
path: root/sys/mips/atheros/uart_cpu_ar933x.c
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 /sys/mips/atheros/uart_cpu_ar933x.c
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.
Diffstat (limited to 'sys/mips/atheros/uart_cpu_ar933x.c')
-rw-r--r--sys/mips/atheros/uart_cpu_ar933x.c2
1 files changed, 1 insertions, 1 deletions
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