diff options
author | loos <loos@FreeBSD.org> | 2013-08-28 14:43:04 +0000 |
---|---|---|
committer | loos <loos@FreeBSD.org> | 2013-08-28 14:43:04 +0000 |
commit | 0bca027965fc5b6f13992edc4293148be0b23ff3 (patch) | |
tree | ae05670ebc4a884ec5639169229df90f8832a250 | |
parent | 975aacab92f859de9651ecb0d11aebfb1b52a4ad (diff) | |
download | FreeBSD-src-0bca027965fc5b6f13992edc4293148be0b23ff3.zip FreeBSD-src-0bca027965fc5b6f13992edc4293148be0b23ff3.tar.gz |
Add the default hints to make the GPIO pins, rf led and reset switch work
out of the box on RouterStation.
PR: 177832
Submitted by: Petko Bordjukov (bordjukov@gmail.com)
Approved by: adrian (mentor)
-rw-r--r-- | sys/mips/conf/ROUTERSTATION.hints | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sys/mips/conf/ROUTERSTATION.hints b/sys/mips/conf/ROUTERSTATION.hints index be21280..7b35b22 100644 --- a/sys/mips/conf/ROUTERSTATION.hints +++ b/sys/mips/conf/ROUTERSTATION.hints @@ -23,6 +23,24 @@ hint.arge.1.mdio=mdioproxy1 # .. off of the switch mdiobus hint.ukswitch.0.at="mdio0" hint.ukswitch.0.phymask=0x30000 +# 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" |