From 7d7f55d53dee9c37ae83f55e3793720b4921ebad Mon Sep 17 00:00:00 2001 From: adrian Date: Fri, 5 Apr 2013 02:15:10 +0000 Subject: [PATCH] Add the basic GPIO pin mapping to the hints file. Tested: * AP121 board, tested USB/jumpstart LEDs --- sys/mips/conf/AP121.hints | 40 ++++++++++++--------------------------- 1 file changed, 12 insertions(+), 28 deletions(-) diff --git a/sys/mips/conf/AP121.hints b/sys/mips/conf/AP121.hints index 940e871d0607..e7287f1396ac 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 +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