Add the basic GPIO pin mapping to the hints file.

Tested:

* AP121 board, tested USB/jumpstart LEDs
This commit is contained in:
adrian 2013-04-05 02:15:10 +00:00
parent 13e31c8950
commit 7d7f55d53d

View File

@ -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.0.at="gpiobus0"
hint.gpioled.0.name="wlan"
hint.gpioled.0.pins=0x0001
#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.1.at="gpiobus0"
hint.gpioled.1.name="usb"
hint.gpioled.1.pins=0x0002