diff options
author | adrian <adrian@FreeBSD.org> | 2012-05-12 17:41:42 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2012-05-12 17:41:42 +0000 |
commit | 23da137723dde20b8bede686d6eca3c4bab0592c (patch) | |
tree | c78aba85c6395c1e025cfa2f598d6beba2ea08a6 /sys/mips | |
parent | cac97f16fe32500a0f8e1344c2878de08fa4b4fa (diff) | |
download | FreeBSD-src-23da137723dde20b8bede686d6eca3c4bab0592c.zip FreeBSD-src-23da137723dde20b8bede686d6eca3c4bab0592c.tar.gz |
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@lassitu.de>
Diffstat (limited to 'sys/mips')
-rw-r--r-- | sys/mips/conf/AR91XX_BASE | 2 | ||||
-rw-r--r-- | sys/mips/conf/TP-WN1043ND | 16 | ||||
-rw-r--r-- | sys/mips/conf/TP-WN1043ND.hints | 22 |
3 files changed, 35 insertions, 5 deletions
diff --git a/sys/mips/conf/AR91XX_BASE b/sys/mips/conf/AR91XX_BASE index 12e8d3f..4b52eb8 100644 --- a/sys/mips/conf/AR91XX_BASE +++ b/sys/mips/conf/AR91XX_BASE @@ -35,7 +35,7 @@ options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions # PMC options HWPMC_HOOKS -device hwpmc +#device hwpmc # options NFS_LEGACYRPC # Debugging for use in -current diff --git a/sys/mips/conf/TP-WN1043ND b/sys/mips/conf/TP-WN1043ND index d81a6f6..4cf80de6 100644 --- a/sys/mips/conf/TP-WN1043ND +++ b/sys/mips/conf/TP-WN1043ND @@ -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 diff --git a/sys/mips/conf/TP-WN1043ND.hints b/sys/mips/conf/TP-WN1043ND.hints index 1e04ab2..01c5a8f 100644 --- a/sys/mips/conf/TP-WN1043ND.hints +++ b/sys/mips/conf/TP-WN1043ND.hints @@ -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 |