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>
This commit is contained in:
parent
5da4420931
commit
1111c8313a
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user