Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jan 2015 23:14:05 +0000 (UTC)
From:      Ruslan Bukin <br@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r276670 - in head/sys/dev: altera/pio beri/virtio
Message-ID:  <201501042314.t04NE5CD016429@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 		}
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501042314.t04NE5CD016429>