Hi
On 13 March 2010 18:31, Joerg Albert <[email protected]> wrote:
> I guess we need swconfig support for the built-in switch (if possible). I'll
> try to adapt the 8216
> code.
I am currently adapting the ar8216 driver to support the ar8316[1],
and therefore it probably the best to combine the effort (and there
won't be a race whose patch gets accepted first ;-).
As far as I can see, the internal switch of the ar7240 is basically an
ar8216, but with a gigabit mii connection on the cpu port.
I am currently identifying the chip through the version and revision
fields of the control register (0x0000), where the ar8216 is 1/1, the
ar8316 is 16/1.
As far as I can see in the dsa driver, the version of the ar7240 is
also 1, but I lack the revision information.
('Though it could be "assumed" through the phy_device being connected
with a gigabit mii connection).
OTOH, the DSA switching architecture looks like the "right way" to do
it, but currently lacks too many features.
There is a patch for hardware bridging support for DSA[2], but its
already over a year old, and got never applied. But this might be
worth a shot to try to add that to OpenWRT and adapt the ar7240 dsa
driver to it.
Best regards,
Jonas Gorski
[1] <https://forum.openwrt.org/viewtopic.php?pid=104435#p104435> and
following posts
[2] <http://patchwork.ozlabs.org/patch/16578/>
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel