- Rollback to the hack with 3-bytes offset in base address.

uart_bus_XXXXX resources are handled in uart(4) code
    and we need more sophysticated way to define which space
    should be used for device based on hints
This commit is contained in:
Oleksandr Tymoshenko 2009-05-06 02:46:04 +00:00
parent 1540246aab
commit ccf532a44b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/mips/; revision=191840
2 changed files with 7 additions and 3 deletions

View file

@ -72,6 +72,12 @@ uart_ar71xx_probe(device_t dev)
sc->sc_sysdev = SLIST_FIRST(&uart_sysdevs);
sc->sc_class = &uart_ns8250_class;
bcopy(&sc->sc_sysdev->bas, &sc->sc_bas, sizeof(sc->sc_bas));
sc->sc_sysdev->bas.regshft = 2;
sc->sc_sysdev->bas.bst = mips_bus_space_generic;
sc->sc_sysdev->bas.bsh = MIPS_PHYS_TO_KSEG1(AR71XX_UART_ADDR) + 3;
sc->sc_bas.regshft = 2;
sc->sc_bas.bst = mips_bus_space_generic;
sc->sc_bas.bsh = MIPS_PHYS_TO_KSEG1(AR71XX_UART_ADDR) + 3;
return (uart_bus_probe(dev, 2, 85000000, 0, 0));
}

View file

@ -1,13 +1,11 @@
# $FreeBSD$
hint.apb.0.at="nexus0"
hint.apb.0.maddr=0x18000000
hint.apb.0.msize=0x06000000
hint.apb.0.irq=4
# uart0
hint.uart.0.at="apb0"
# see atheros/uart_cpu_ar71xx.c why +3
hint.uart.0.maddr=0x18020000
hint.uart.0.maddr=0x18020003
hint.uart.0.msize=0x18
hint.uart.0.irq=3