PERFORCE change 213108 for review
Brooks Davis
brooks at FreeBSD.org
Tue Jun 19 00:30:39 UTC 2012
http://p4web.freebsd.org/@@213108?ac=10
Change 213108 by brooks at brooks_ecr_current on 2012/06/19 00:30:10
Add a de4bsw device to access buttons and switches from userspace.
A real GPIO interface probably makes more sense, but this was easy.
Affected files ...
.. //depot/projects/ctsrd/beribsd/src/sys/mips/conf/BERI_DE4.hints#8 edit
Differences ...
==== //depot/projects/ctsrd/beribsd/src/sys/mips/conf/BERI_DE4.hints#8 (text+ko) ====
@@ -62,6 +62,17 @@
#hint.altera_avgen.0.devname="de4flash"
#
+# Expose the DE4 buttons and switches via an Avalon "generic" device.
+#
+hint.altera_avgen.0.at="nexus0"
+hint.altera_avgen.0.maddr=0x7f009000
+hint.altera_avgen.0.msize=2
+hint.altera_avgen.0.width=1
+hint.altera_avgen.0.fileio="rw"
+hint.altera_avgen.0.mmapio="rwx"
+hint.altera_avgen.0.devname="de4bsw"
+
+#
# General Intel StrataFlash driver
#
hint.isf.0.at="nexus0"
More information about the p4-projects
mailing list