Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Sep 2010 03:34:51 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r213240 - head/sys/mips/conf
Message-ID:  <201009280334.o8S3YpPd058385@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gonzo
Date: Tue Sep 28 03:34:51 2010
New Revision: 213240
URL: http://svn.freebsd.org/changeset/base/213240

Log:
  Add GPIO bus to config and hints. Also add sample gpioled device.

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

Modified: head/sys/mips/conf/AR71XX
==============================================================================
--- head/sys/mips/conf/AR71XX	Tue Sep 28 03:31:34 2010	(r213239)
+++ head/sys/mips/conf/AR71XX	Tue Sep 28 03:34:51 2010	(r213240)
@@ -74,6 +74,9 @@ options		USB_EHCI_BIG_ENDIAN_DESC       
 device		ohci
 device		ehci
 
+device		gpio
+device		gpioled
+
 device		spibus
 device		ar71xx_spi
 device		mx25l

Modified: head/sys/mips/conf/AR71XX.hints
==============================================================================
--- head/sys/mips/conf/AR71XX.hints	Tue Sep 28 03:31:34 2010	(r213239)
+++ head/sys/mips/conf/AR71XX.hints	Tue Sep 28 03:34:51 2010	(r213240)
@@ -47,6 +47,18 @@ hint.arge.1.fduplex=1
 # Uncomment this hint for RS (not PRO)
 # hint.arge.0.phymask=70000
 
+# GPIO
+hint.gpio.0.at="apb0"
+hint.gpio.0.maddr=0x18040000
+hint.gpio.0.msize=0x1000
+hint.gpio.0.irq=2
+
+# RF led
+hint.gpioled.0.at="gpiobus0"
+hint.gpioled.0.name="rf"
+# pin 2
+hint.gpioled.0.pins=0x0004
+
 # SPI flash
 hint.spi.0.at="nexus0"
 hint.spi.0.maddr=0x1f000000



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009280334.o8S3YpPd058385>