diff options
author | gonzo <gonzo@FreeBSD.org> | 2010-09-28 03:34:51 +0000 |
---|---|---|
committer | gonzo <gonzo@FreeBSD.org> | 2010-09-28 03:34:51 +0000 |
commit | 2451920d9872c75b7c2c7d3c85890a25ed2ac3c0 (patch) | |
tree | f0e663e72d3962b7edb3cec093f43e9617830236 /sys/mips | |
parent | 59f1565a72659177aae9e4ba975a20d03a1628dc (diff) | |
download | FreeBSD-src-2451920d9872c75b7c2c7d3c85890a25ed2ac3c0.zip FreeBSD-src-2451920d9872c75b7c2c7d3c85890a25ed2ac3c0.tar.gz |
Add GPIO bus to config and hints. Also add sample gpioled device.
Diffstat (limited to 'sys/mips')
-rw-r--r-- | sys/mips/conf/AR71XX | 3 | ||||
-rw-r--r-- | sys/mips/conf/AR71XX.hints | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/sys/mips/conf/AR71XX b/sys/mips/conf/AR71XX index 12c73da..bec8120 100644 --- a/sys/mips/conf/AR71XX +++ b/sys/mips/conf/AR71XX @@ -74,6 +74,9 @@ options USB_EHCI_BIG_ENDIAN_DESC # handle big-endian byte order device ohci device ehci +device gpio +device gpioled + device spibus device ar71xx_spi device mx25l diff --git a/sys/mips/conf/AR71XX.hints b/sys/mips/conf/AR71XX.hints index c68d6bc..6719d16 100644 --- a/sys/mips/conf/AR71XX.hints +++ b/sys/mips/conf/AR71XX.hints @@ -47,6 +47,18 @@ hint.arge.1.fduplex=1 # Uncomment this hint for RS (not PRO) # hint.arge.0.phymask=70000 +# GPIO +hint.gpio.0.at="apb0" +hint.gpio.0.maddr=0x18040000 +hint.gpio.0.msize=0x1000 +hint.gpio.0.irq=2 + +# RF led +hint.gpioled.0.at="gpiobus0" +hint.gpioled.0.name="rf" +# pin 2 +hint.gpioled.0.pins=0x0004 + # SPI flash hint.spi.0.at="nexus0" hint.spi.0.maddr=0x1f000000 |