Author: adrian Date: Fri Mar 29 06:32:39 2013 New Revision: 248867 URL: http://svnweb.freebsd.org/changeset/base/248867
Log: For the AR933x UART, the serial clock is not the AHB clock, it's the reference clock. So use that instead. Modified: head/sys/mips/atheros/uart_bus_ar933x.c head/sys/mips/atheros/uart_cpu_ar933x.c Modified: head/sys/mips/atheros/uart_bus_ar933x.c ============================================================================== --- head/sys/mips/atheros/uart_bus_ar933x.c Fri Mar 29 06:32:02 2013 (r248866) +++ head/sys/mips/atheros/uart_bus_ar933x.c Fri Mar 29 06:32:39 2013 (r248867) @@ -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); Modified: head/sys/mips/atheros/uart_cpu_ar933x.c ============================================================================== --- head/sys/mips/atheros/uart_cpu_ar933x.c Fri Mar 29 06:32:02 2013 (r248866) +++ head/sys/mips/atheros/uart_cpu_ar933x.c Fri Mar 29 06:32:39 2013 (r248867) @@ -58,7 +58,7 @@ uart_cpu_getdev(int devtype, struct uart { uint64_t freq; - freq = ar71xx_ahb_freq(); + freq = ar71xx_refclk(); di->ops = uart_getops(&uart_ar933x_class); di->bas.chan = 0; _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"