Author: br
Date: Sun Jan  4 23:14:04 2015
New Revision: 276670
URL: https://svnweb.freebsd.org/changeset/base/276670

Log:
  Do not configure Altera PIO device on ARM startup.
  PIO is a device implemented in soft-core and becomes
  available after flashing FPGA only.

Modified:
  head/sys/dev/altera/pio/pio.c
  head/sys/dev/beri/virtio/virtio.c

Modified: head/sys/dev/altera/pio/pio.c
==============================================================================
--- head/sys/dev/altera/pio/pio.c       Sun Jan  4 22:37:44 2015        
(r276669)
+++ head/sys/dev/altera/pio/pio.c       Sun Jan  4 23:14:04 2015        
(r276670)
@@ -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);
 

Modified: head/sys/dev/beri/virtio/virtio.c
==============================================================================
--- head/sys/dev/beri/virtio/virtio.c   Sun Jan  4 22:37:44 2015        
(r276669)
+++ head/sys/dev/beri/virtio/virtio.c   Sun Jan  4 23:14:04 2015        
(r276670)
@@ -211,8 +211,6 @@ setup_pio(device_t dev, char *name, devi
        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);
                }
        }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to