- Remove garbage debug output

- ar71xx_bus_space_reversed is bus_space_tag_t, use it this way
This commit is contained in:
gonzo 2009-04-19 23:06:15 +00:00
parent 9cf27d53b3
commit 58fe97057f
2 changed files with 3 additions and 5 deletions

View File

@ -111,7 +111,6 @@ ar71xx_ehci_probe(device_t self)
{
device_set_desc(self, EHCI_HC_DEVSTR);
printf("EHCI probed\n");
return (BUS_PROBE_DEFAULT);
}
@ -124,7 +123,6 @@ ar71xx_ehci_attach(device_t self)
int err;
int rid;
printf("EHCI attach\n");
/* initialise some bus fields */
sc->sc_bus.parent = self;
sc->sc_bus.devices = sc->sc_devices;
@ -151,7 +149,7 @@ ar71xx_ehci_attach(device_t self)
* Craft special resource for bus space ops that handle
* byte-alignment of non-word addresses.
*/
sc->sc_io_tag = &ar71xx_bus_space_reversed;
sc->sc_io_tag = ar71xx_bus_space_reversed;
sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res);
sc->sc_io_size = rman_get_size(sc->sc_io_res);

View File

@ -55,7 +55,7 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di)
{
di->ops = uart_getops(&uart_ns8250_class);
di->bas.chan = 0;
di->bas.bst = &ar71xx_bus_space_reversed;
di->bas.bst = ar71xx_bus_space_reversed;
di->bas.regshft = 2;
/* TODO: calculate proper AHB freq using PLL registers */
di->bas.rclk = 85000000;
@ -66,7 +66,7 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di)
/* TODO: check if uart_bus_space_io mandatory to set */
uart_bus_space_io = NULL;
uart_bus_space_mem = &ar71xx_bus_space_reversed;
uart_bus_space_mem = ar71xx_bus_space_reversed;
/*
* FIXME:
* 3 is to compensate big endian, uart operates