Changeset View
Changeset View
Standalone View
Standalone View
stable/11/sys/arm/xscale/pxa/uart_bus_pxa.c
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | #else | ||||
/* Check to see if the enable bit's on. */ | /* Check to see if the enable bit's on. */ | ||||
if ((bus_space_read_4(obio_tag, base, | if ((bus_space_read_4(obio_tag, base, | ||||
(REG_IER << 2)) & PXA_UART_UUE) == 0) | (REG_IER << 2)) & PXA_UART_UUE) == 0) | ||||
return (ENXIO); | return (ENXIO); | ||||
#endif | #endif | ||||
sc = device_get_softc(dev); | sc = device_get_softc(dev); | ||||
sc->sc_class = &uart_ns8250_class; | sc->sc_class = &uart_ns8250_class; | ||||
return(uart_bus_probe(dev, 2, PXA2X0_COM_FREQ, 0, 0)); | return(uart_bus_probe(dev, 2, 0, PXA2X0_COM_FREQ, 0, 0, 0)); | ||||
} | } | ||||
DRIVER_MODULE(uart, pxa, uart_pxa_driver, uart_devclass, 0, 0); | DRIVER_MODULE(uart, pxa, uart_pxa_driver, uart_devclass, 0, 0); |