From owner-svn-src-head@FreeBSD.ORG Fri Apr 5 02:15:10 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E78821AF; Fri, 5 Apr 2013 02:15:10 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id C1B17A8B; Fri, 5 Apr 2013 02:15:10 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r352FAJf093229; Fri, 5 Apr 2013 02:15:10 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r352FAiP093228; Fri, 5 Apr 2013 02:15:10 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201304050215.r352FAiP093228@svn.freebsd.org> From: Adrian Chadd Date: Fri, 5 Apr 2013 02:15:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r249127 - head/sys/mips/conf X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Apr 2013 02:15:11 -0000 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