TL-WR1043: switch

Stefan Bethke stb at lassitu.de
Mon Nov 28 22:29:33 UTC 2011


Am 28.11.2011 um 23:18 schrieb Stefan Bethke:

> So with the GPIOs working, the next step would be to attach a bit-banging I2C device to GPIO 18 and 19.  My kernel foo is probably not up to creating the appropriate newbus attachment myself.  Anybody want to give me a hint?  I'd start by copying lpbb, replacing the parallel port code with appropirate gpio calls.
> 
> I haven't taken a detailed look at the OpenWrt code, but the datasheet for the RTL8366 can be googled, including a full register map and a description of the VLAN configuration (which I'm most interested in). With a working I2C bus, that shouldn't be too hard, I'd think.

Further looking around, we already have dev/gpio/gpioiic.c.  I'll see if I can get it to attach.


Stefan

-- 
Stefan Bethke <stb at lassitu.de>   Fon +49 151 14070811





More information about the freebsd-embedded mailing list