Changeset View
Changeset View
Standalone View
Standalone View
sys/mips/rt305x/uart_bus_rt305x.c
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | uart_rt305x_probe(device_t dev) | ||||
sc = device_get_softc(dev); | sc = device_get_softc(dev); | ||||
sc->sc_class = &uart_rt305x_uart_class; | sc->sc_class = &uart_rt305x_uart_class; | ||||
sc->sc_bas.regshft = 2; | sc->sc_bas.regshft = 2; | ||||
sc->sc_bas.bst = mips_bus_space_generic; | sc->sc_bas.bst = mips_bus_space_generic; | ||||
sc->sc_bas.bsh = | sc->sc_bas.bsh = | ||||
MIPS_PHYS_TO_KSEG1(device_get_unit(dev)?UARTLITE_BASE:UART_BASE); | MIPS_PHYS_TO_KSEG1(device_get_unit(dev)?UARTLITE_BASE:UART_BASE); | ||||
return (uart_bus_probe(dev, 2, SYSTEM_CLOCK, 0, 0)); | return (uart_bus_probe(dev, 2, 0, SYSTEM_CLOCK, 0, 0)); | ||||
} | } | ||||
DRIVER_MODULE(uart, obio, uart_rt305x_driver, uart_devclass, 0, 0); | DRIVER_MODULE(uart, obio, uart_rt305x_driver, uart_devclass, 0, 0); | ||||