From 436ac49059d67a997849377ce07f1cef56018d8b Mon Sep 17 00:00:00 2001 From: br 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 af610ef25ea..cd95e81c821 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 6921c8a874e..2633c32071d 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); } } -- 2.11.4.GIT