Use ns8250.
This commit is contained in:
parent
7258e91f0f
commit
6054abc495
@ -59,7 +59,6 @@ static driver_t uart_i80321_driver = {
|
||||
sizeof(struct uart_softc),
|
||||
};
|
||||
|
||||
extern struct uart_class uart_i8251_class;
|
||||
extern SLIST_HEAD(uart_devinfo_list, uart_devinfo) uart_sysdevs;
|
||||
static int
|
||||
uart_i80321_probe(device_t dev)
|
||||
@ -68,7 +67,7 @@ uart_i80321_probe(device_t dev)
|
||||
|
||||
sc = device_get_softc(dev);
|
||||
sc->sc_sysdev = SLIST_FIRST(&uart_sysdevs);
|
||||
sc->sc_class = &uart_i8251_class;
|
||||
sc->sc_class = &uart_ns8250_class;
|
||||
bcopy(&sc->sc_sysdev->bas, &sc->sc_bas, sizeof(sc->sc_bas));
|
||||
return(uart_bus_probe(dev, 0, 0, 0, 0));
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ DO_corb(void);
|
||||
int
|
||||
uart_cpu_getdev(int devtype, struct uart_devinfo *di)
|
||||
{
|
||||
di->ops = uart_i8251_ops;
|
||||
di->ops = uart_ns8250_ops;
|
||||
di->bas.chan = 0;
|
||||
di->bas.bst = &obio_bs_tag;
|
||||
di->bas.regshft = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user