summaryrefslogtreecommitdiffstats
path: root/sys/mips/conf
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2012-08-26 09:21:59 +0000
committerrwatson <rwatson@FreeBSD.org>2012-08-26 09:21:59 +0000
commit5b348c0d216b555a1eebeecb755b6a30764154f8 (patch)
tree1c4feba7fc520429710a82a95fa744b4972c75bb /sys/mips/conf
parentc789e6f653a3b31b2a687d229588c7f140ea2846 (diff)
downloadFreeBSD-src-5b348c0d216b555a1eebeecb755b6a30764154f8.zip
FreeBSD-src-5b348c0d216b555a1eebeecb755b6a30764154f8.tar.gz
Add terasic_de4led, a led(4) driver for the on-board 8-element LED on the
Terasic DE-4 board. Allow LED configuration to be set using loader tunables, not just from userspace, and preconfigure LED 8 as a kernel heartbeat. For now, this is a Nexus-attached, BERI-only driver, but it could be used with other hard and soft cores on Altera FPGAs as well, in principle. Sponsored by: DARPA, AFRL
Diffstat (limited to 'sys/mips/conf')
-rw-r--r--sys/mips/conf/BERI_DE4.hints8
-rw-r--r--sys/mips/conf/BERI_DE4_MDROOT1
-rw-r--r--sys/mips/conf/BERI_DE4_SDROOT1
3 files changed, 10 insertions, 0 deletions
diff --git a/sys/mips/conf/BERI_DE4.hints b/sys/mips/conf/BERI_DE4.hints
index b2a0e0a..4f787b9 100644
--- a/sys/mips/conf/BERI_DE4.hints
+++ b/sys/mips/conf/BERI_DE4.hints
@@ -25,6 +25,14 @@ hint.altera_sdcardc.0.maddr=0x7f008000
hint.altera_sdcardc.0.msize=0x400
#
+# On-board DE4 8-element LED
+#
+hint.terasic_de4led.0.at="nexus0"
+hint.terasic_de4led.0.maddr=0x7f006000
+hint.terasic_de4led.0.msize=1
+hint.terasic_de4led.0.de4led_0_cmd="f9"
+
+#
# Terasic Multi-touch LCD (MTL), an optional feature in DE-4 configurations.
#
hint.terasic_mtl.0.at="nexus0"
diff --git a/sys/mips/conf/BERI_DE4_MDROOT b/sys/mips/conf/BERI_DE4_MDROOT
index 75d9b4e..37acf4b 100644
--- a/sys/mips/conf/BERI_DE4_MDROOT
+++ b/sys/mips/conf/BERI_DE4_MDROOT
@@ -24,6 +24,7 @@ options ROOTDEVNAME=\"ufs:md0\"
device altera_avgen
device altera_jtag_uart
device altera_sdcard
+device terasic_de4led
device terasic_mtl
device isf
diff --git a/sys/mips/conf/BERI_DE4_SDROOT b/sys/mips/conf/BERI_DE4_SDROOT
index a638e46..304cce5 100644
--- a/sys/mips/conf/BERI_DE4_SDROOT
+++ b/sys/mips/conf/BERI_DE4_SDROOT
@@ -17,6 +17,7 @@ options ROOTDEVNAME=\"ufs:altera_sdcard0\"
device altera_avgen
device altera_jtag_uart
device altera_sdcard
+device terasic_de4led
device terasic_mtl
device isf
OpenPOWER on IntegriCloud