From becc1654f847d6f865b8d4cce27427568b720c93 Mon Sep 17 00:00:00 2001 From: adrian Date: Fri, 29 Mar 2013 06:32:39 +0000 Subject: 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_cpu_ar933x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/mips/atheros/uart_cpu_ar933x.c') 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; -- cgit v1.1