Use the UART frequency when programming the UART clock.

This allows the 16550 support to work correctly on the upcoming
AR934x support.
This commit is contained in:
adrian 2013-07-21 03:54:39 +00:00
parent 29fc794397
commit 0b7b7d9afb
4 changed files with 4 additions and 4 deletions

View File

@ -70,7 +70,7 @@ uart_ar71xx_probe(device_t dev)
struct uart_softc *sc;
uint64_t freq;
freq = ar71xx_ahb_freq();
freq = ar71xx_uart_freq();
sc = device_get_softc(dev);
sc->sc_sysdev = SLIST_FIRST(&uart_sysdevs);

View File

@ -72,7 +72,7 @@ uart_ar933x_probe(device_t dev)
struct uart_softc *sc;
uint64_t freq;
freq = ar71xx_refclk();
freq = ar71xx_uart_freq();
sc = device_get_softc(dev);
sc->sc_sysdev = SLIST_FIRST(&uart_sysdevs);

View File

@ -56,7 +56,7 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di)
{
uint64_t freq;
freq = ar71xx_ahb_freq();
freq = ar71xx_uart_freq();
di->ops = uart_getops(&uart_ns8250_class);
di->bas.chan = 0;

View File

@ -58,7 +58,7 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di)
{
uint64_t freq;
freq = ar71xx_refclk();
freq = ar71xx_uart_freq();
di->ops = uart_getops(&uart_ar933x_class);
di->bas.chan = 0;