svn commit: r235345 - head/sys/mips/conf
Adrian Chadd
adrian at FreeBSD.org
Sat May 12 17:41:43 UTC 2012
Author: adrian
Date: Sat May 12 17:41:42 2012
New Revision: 235345
URL: http://svn.freebsd.org/changeset/base/235345
Log:
Flip on WN1043ND switch PHY support.
* Add the i2c bitbang bus;
* Add the etherswitch/rtl8366rb drivers;
* "fix" the USB GPIO configuration so USB actually works.
Submitted by: Stefan Bethke <stb at lassitu.de>
Modified:
head/sys/mips/conf/AR91XX_BASE
head/sys/mips/conf/TP-WN1043ND
head/sys/mips/conf/TP-WN1043ND.hints
Modified: head/sys/mips/conf/AR91XX_BASE
==============================================================================
--- head/sys/mips/conf/AR91XX_BASE Sat May 12 17:14:55 2012 (r235344)
+++ head/sys/mips/conf/AR91XX_BASE Sat May 12 17:41:42 2012 (r235345)
@@ -35,7 +35,7 @@ options _KPOSIX_PRIORITY_SCHEDULING #Po
# PMC
options HWPMC_HOOKS
-device hwpmc
+#device hwpmc
# options NFS_LEGACYRPC
# Debugging for use in -current
Modified: head/sys/mips/conf/TP-WN1043ND
==============================================================================
--- head/sys/mips/conf/TP-WN1043ND Sat May 12 17:14:55 2012 (r235344)
+++ head/sys/mips/conf/TP-WN1043ND Sat May 12 17:41:42 2012 (r235345)
@@ -15,6 +15,18 @@ hints "TP-WN1043ND.hints"
# Force the board memory - 32mb
options AR71XX_REALMEM=32*1024*1024
+# i2c GPIO bus
+device gpioiic
+device iicbb
+device iicbus
+device iic
+
+# ethernet switch device
+device etherswitch
+
+# RTL8366RB support
+device rtl8366rb
+
# read MSDOS formatted disks - USB
options MSDOSFS
options GEOM_PART_BSD
@@ -33,3 +45,7 @@ device geom_map
# Boot off of the rootfs, as defined in the geom_map setup.
options ROOTDEVNAME=\"ufs:map/rootfs.uzip\"
+
+# Etherswitch support
+device etherswitch
+device rtl8366rb
Modified: head/sys/mips/conf/TP-WN1043ND.hints
==============================================================================
--- head/sys/mips/conf/TP-WN1043ND.hints Sat May 12 17:14:55 2012 (r235344)
+++ head/sys/mips/conf/TP-WN1043ND.hints Sat May 12 17:41:42 2012 (r235345)
@@ -82,7 +82,7 @@ hint.map.4.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=0x00000000
+hint.gpio.0.function_set=0x00002000
hint.gpio.0.function_clear=0x00000000
# These are the GPIO LEDs and buttons which can be software controlled.
@@ -102,9 +102,9 @@ hint.gpio.0.pinmask=0x001c02ae
# Pin 20 - "GPIO20"
# 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="usb"
+#hint.gpioled.0.pins=0x0002
hint.gpioled.1.at="gpiobus0"
hint.gpioled.1.name="system"
@@ -117,3 +117,17 @@ hint.gpioled.2.pins=0x0020
hint.gpioled.3.at="gpiobus0"
hint.gpioled.3.name="wlan"
hint.gpioled.3.pins=0x0200
+
+# GPIO I2C bus
+hint.gpioiic.0.at="gpiobus0"
+hint.gpioiic.0.pins=0xc0000
+hint.gpioiic.0.scl=1
+hint.gpioiic.0.sda=0
+
+# I2C bus
+# Don't be strict about I2C protocol - the relaxed semantics are required
+# by the realtek switch PHY.
+hint.iicbus.0.strict=0
+
+# Bit bang bus - override default delay
+#hint.iicbb.0.udelay=3
More information about the svn-src-head
mailing list