Do not configure Altera PIO device on ARM startup.

PIO is a device implemented in soft-core and becomes
available after flashing FPGA only.
This commit is contained in:
Ruslan Bukin 2015-01-04 23:14:04 +00:00
parent dd2b763aa5
commit 2499610b9a
2 changed files with 0 additions and 4 deletions

View File

@ -178,8 +178,6 @@ pio_attach(device_t dev)
sc->bst = rman_get_bustag(sc->res[0]);
sc->bsh = rman_get_bushandle(sc->res[0]);
WRITE4(sc, PIO_DATA, 0);
if ((node = ofw_bus_get_node(sc->dev)) == -1)
return (ENXIO);

View File

@ -211,8 +211,6 @@ setup_pio(device_t dev, char *name, device_t *pio_dev)
SLIST_FOREACH(ic, &fdt_ic_list_head, fdt_ics) {
if (ic->iph == pio_node) {
*pio_dev = ic->dev;
PIO_CONFIGURE(*pio_dev, PIO_OUT_ALL,
PIO_UNMASK_ALL);
return (0);
}
}