TL-WR1043: switch

Marc Balmer mbalmer at NetBSD.org
Mon Nov 28 22:23:27 UTC 2011


Am 28.11.11 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.

Maybe take a look at NetBSD -current.  It has all that you want.  It is
a pity FreeBSD did not take theNetBSD GPIO framework, but shoehorned its
own (although they cleary took code and concepts from them).


More information about the freebsd-embedded mailing list