From 2499610b9add5038e21e1f69d42e60f739f8823c Mon Sep 17 00:00:00 2001 From: Ruslan Bukin Date: Sun, 4 Jan 2015 23:14:04 +0000 Subject: [PATCH] Do not configure Altera PIO device on ARM startup. PIO is a device implemented in soft-core and becomes available after flashing FPGA only. --- sys/dev/altera/pio/pio.c | 2 -- sys/dev/beri/virtio/virtio.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/sys/dev/altera/pio/pio.c b/sys/dev/altera/pio/pio.c index af610ef25ea5..cd95e81c821f 100644 --- a/sys/dev/altera/pio/pio.c +++ b/sys/dev/altera/pio/pio.c @@ -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); diff --git a/sys/dev/beri/virtio/virtio.c b/sys/dev/beri/virtio/virtio.c index 6921c8a874e5..2633c32071dd 100644 --- a/sys/dev/beri/virtio/virtio.c +++ b/sys/dev/beri/virtio/virtio.c @@ -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); } }