For the AR933x UART, the serial clock is not the AHB clock, it's the

reference clock.  So use that instead.
This commit is contained in:
Adrian Chadd 2013-03-29 06:32:39 +00:00
parent 19f293bd60
commit 10e00ec8cc
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;