Author: adrian
Date: Fri Apr  5 02:15:10 2013
New Revision: 249127
URL: http://svnweb.freebsd.org/changeset/base/249127

Log:
  Add the basic GPIO pin mapping to the hints file.
  
  Tested:
  
  * AP121 board, tested USB/jumpstart LEDs

Modified:
  head/sys/mips/conf/AP121.hints

Modified: head/sys/mips/conf/AP121.hints
==============================================================================
--- head/sys/mips/conf/AP121.hints      Fri Apr  5 02:02:37 2013        
(r249126)
+++ head/sys/mips/conf/AP121.hints      Fri Apr  5 02:15:10 2013        
(r249127)
@@ -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
+hint.gpio.0.pinmask=0x00001803
 
-# 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"
+# gpio0 - WLAN LED
+# gpio1 - USB LED
+# gpio11 - Jumpstart button
+# gpio12 - Reset button
 
 # 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
-
-#hint.gpioled.2.at="gpiobus0"
-#hint.gpioled.2.name="qss"
-#hint.gpioled.2.pins=0x0020
-
-#hint.gpioled.3.at="gpiobus0"
-#hint.gpioled.3.name="wlan"
-#hint.gpioled.3.pins=0x0200
+hint.gpioled.0.at="gpiobus0"
+hint.gpioled.0.name="wlan"
+hint.gpioled.0.pins=0x0001
+
+hint.gpioled.1.at="gpiobus0"
+hint.gpioled.1.name="usb"
+hint.gpioled.1.pins=0x0002
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to