summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2013-04-05 02:15:10 +0000
committeradrian <adrian@FreeBSD.org>2013-04-05 02:15:10 +0000
commit7d7f55d53dee9c37ae83f55e3793720b4921ebad (patch)
treeb8d3369f8d7006a742b47ee9071bf09048898091 /sys/mips
parent13e31c89503c600c12db53b43b47486ba7b4aa94 (diff)
downloadFreeBSD-src-7d7f55d53dee9c37ae83f55e3793720b4921ebad.zip
FreeBSD-src-7d7f55d53dee9c37ae83f55e3793720b4921ebad.tar.gz
Add the basic GPIO pin mapping to the hints file.
Tested: * AP121 board, tested USB/jumpstart LEDs
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/conf/AP121.hints42
1 files changed, 13 insertions, 29 deletions
diff --git a/sys/mips/conf/AP121.hints b/sys/mips/conf/AP121.hints
index 940e871..e7287f1 100644
--- a/sys/mips/conf/AP121.hints
+++ b/sys/mips/conf/AP121.hints
@@ -85,39 +85,23 @@ hint.map.5.readonly=1
# 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=0x00002000
+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=0x001c02ae
-hint.gpio.0.pinmask=0x0
-
-# pin 1 - USB (LED)
-# pin 2 - System (LED)
-# Pin 3 - Reset (input)
-# Pin 5 - QSS (LED)
-# Pin 7 - QSS Button (input)
-# Pin 8 - wired into the chip reset line
-# Pin 9 - WLAN
-# Pin 10 - UART TX (not GPIO)
-# Pin 13 - UART RX (not GPIO)
-# Pin 18 - RTL8366RB switch data line
-# Pin 19 - RTL8366RB switch clock line
-# Pin 20 - "GPIO20"
+hint.gpio.0.pinmask=0x00001803
-# LEDs are configured separately and driven by the LED device
-#hint.gpioled.0.at="gpiobus0"
-#hint.gpioled.0.name="usb"
-#hint.gpioled.0.pins=0x0002
-
-#hint.gpioled.1.at="gpiobus0"
-#hint.gpioled.1.name="system"
-#hint.gpioled.1.pins=0x0004
+# gpio0 - WLAN LED
+# gpio1 - USB LED
+# gpio11 - Jumpstart button
+# gpio12 - Reset button
-#hint.gpioled.2.at="gpiobus0"
-#hint.gpioled.2.name="qss"
-#hint.gpioled.2.pins=0x0020
+# LEDs are configured separately and driven by the LED device
+hint.gpioled.0.at="gpiobus0"
+hint.gpioled.0.name="wlan"
+hint.gpioled.0.pins=0x0001
-#hint.gpioled.3.at="gpiobus0"
-#hint.gpioled.3.name="wlan"
-#hint.gpioled.3.pins=0x0200
+hint.gpioled.1.at="gpiobus0"
+hint.gpioled.1.name="usb"
+hint.gpioled.1.pins=0x0002
OpenPOWER on IntegriCloud