Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Nov 2011 23:23:23 +0100
From:      Marc Balmer <mbalmer@NetBSD.org>
To:        freebsd-embedded@freebsd.org
Subject:   Re: TL-WR1043: switch
Message-ID:  <4ED409DB.3000401@NetBSD.org>
In-Reply-To: <68ABED76-CB1F-405A-8036-EC254F7511FA@lassitu.de>
References:  <68ABED76-CB1F-405A-8036-EC254F7511FA@lassitu.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ED409DB.3000401>