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:
parent
dd2b763aa5
commit
2499610b9a
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user