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:
parent
6dbf63db67
commit
ced43d8890
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user