From owner-svn-src-all@FreeBSD.ORG Thu Dec 29 06:07:24 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9257B106566C; Thu, 29 Dec 2011 06:07:24 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 7C7B48FC0C; Thu, 29 Dec 2011 06:07:24 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pBT67Obw042297; Thu, 29 Dec 2011 06:07:24 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pBT67OY5042294; Thu, 29 Dec 2011 06:07:24 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201112290607.pBT67OY5042294@svn.freebsd.org> From: Adrian Chadd Date: Thu, 29 Dec 2011 06:07:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r228945 - head/sys/mips/conf X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2011 06:07:24 -0000 Author: adrian Date: Thu Dec 29 06:07:24 2011 New Revision: 228945 URL: http://svn.freebsd.org/changeset/base/228945 Log: Flesh out the RSPRO GPIO config, including the RF LED. Modified: head/sys/mips/conf/AR71XX_BASE head/sys/mips/conf/RSPRO.hints Modified: head/sys/mips/conf/AR71XX_BASE ============================================================================== --- head/sys/mips/conf/AR71XX_BASE Thu Dec 29 05:51:48 2011 (r228944) +++ head/sys/mips/conf/AR71XX_BASE Thu Dec 29 06:07:24 2011 (r228945) @@ -120,3 +120,7 @@ device gif # ip[46] in ip[46] tunnelin device gre # generic encapsulation - only for IPv4 in IPv4 though atm options ARGE_DEBUG # Enable if_arge debugging for now + +# Enable GPIO +device gpio +device gpioled Modified: head/sys/mips/conf/RSPRO.hints ============================================================================== --- head/sys/mips/conf/RSPRO.hints Thu Dec 29 05:51:48 2011 (r228944) +++ head/sys/mips/conf/RSPRO.hints Thu Dec 29 06:07:24 2011 (r228945) @@ -6,6 +6,24 @@ hint.arge.1.media=1000 hint.arge.1.fduplex=1 hint.arge.1.phymask=0x0e +# 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=0x00000000 +hint.gpio.0.function_clear=0x00000000 + +# These are the GPIO LEDs and buttons which can be software controlled. +hint.gpio.0.pinmask=0x000000ff + +# GPIO 0: Pin 1 +# GPIO 1: Pin 2 +# GPIO 2: RF LED +# GPIO 3: Pin 3 +# GPIO 4: Pin 4 +# GPIO 5: Pin 5 +# GPIO 6: Pin 6 +# GPIO 7: Pin 7 + # RF led hint.gpioled.0.at="gpiobus0" hint.gpioled.0.name="rf"