summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-12-29 06:07:24 +0000
committeradrian <adrian@FreeBSD.org>2011-12-29 06:07:24 +0000
commitddadde122323ddb38bc2b29808de3413c9b06972 (patch)
tree7a427033cd3f79481134ce8a10aec7d957730586
parent577d3885b98451372f19cd5e7c6d815e5d26744a (diff)
downloadFreeBSD-src-ddadde122323ddb38bc2b29808de3413c9b06972.zip
FreeBSD-src-ddadde122323ddb38bc2b29808de3413c9b06972.tar.gz
Flesh out the RSPRO GPIO config, including the RF LED.
-rw-r--r--sys/mips/conf/AR71XX_BASE4
-rw-r--r--sys/mips/conf/RSPRO.hints18
2 files changed, 22 insertions, 0 deletions
diff --git a/sys/mips/conf/AR71XX_BASE b/sys/mips/conf/AR71XX_BASE
index 004ae07..833803d 100644
--- a/sys/mips/conf/AR71XX_BASE
+++ b/sys/mips/conf/AR71XX_BASE
@@ -120,3 +120,7 @@ device gif # ip[46] in ip[46] tunneling protocol
device gre # generic encapsulation - only for IPv4 in IPv4 though atm
options ARGE_DEBUG # Enable if_arge debugging for now
+
+# Enable GPIO
+device gpio
+device gpioled
diff --git a/sys/mips/conf/RSPRO.hints b/sys/mips/conf/RSPRO.hints
index 01ad750..68edb28 100644
--- a/sys/mips/conf/RSPRO.hints
+++ b/sys/mips/conf/RSPRO.hints
@@ -6,6 +6,24 @@ hint.arge.1.media=1000
hint.arge.1.fduplex=1
hint.arge.1.phymask=0x0e
+# Don't flip on anything that isn't already enabled.
+# This includes leaving the SPI CS1/CS2 pins as GPIO pins as they're
+# not used here.
+hint.gpio.0.function_set=0x00000000
+hint.gpio.0.function_clear=0x00000000
+
+# These are the GPIO LEDs and buttons which can be software controlled.
+hint.gpio.0.pinmask=0x000000ff
+
+# GPIO 0: Pin 1
+# GPIO 1: Pin 2
+# GPIO 2: RF LED
+# GPIO 3: Pin 3
+# GPIO 4: Pin 4
+# GPIO 5: Pin 5
+# GPIO 6: Pin 6
+# GPIO 7: Pin 7
+
# RF led
hint.gpioled.0.at="gpiobus0"
hint.gpioled.0.name="rf"
OpenPOWER on IntegriCloud