switch: ROBO Switch Gigabit MII Support
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 3 Jan 2013 01:58:01 +0000 (01:58 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 3 Jan 2013 01:58:01 +0000 (01:58 +0000)
commit870e645f7a62d4bed902e5405bf7c9b976f43a14
tree147de1ffcec01ad83efa5ca17d804386368c7103
parentfe515b248a562b6f8d9d92ece62e5f7597a000b5
switch: ROBO Switch Gigabit MII Support

I wrote this patch some time ago because I had a need for one of the
Gigabit ports (Linksys E3000) to be forced to 100FD.  This is based
on the robocfg sources included w/ the RT-N16 sources from ASUS.
Since work is progressing on a BGMAC driver that could be included in
OpenWRT, this may be useful to someone else.

In testing, forcing the speed to 10/100 or 1000 worked fine; however,
when trying to force full-duplex mode, the result was always
half-duplex.  I was not able to isolate the source of the problem
(this patch, driver or H/W limitation).  The only way I could get it
to work was to set the port to Auto, but then only advertise 100FD
(not included in this patch).

I have a modified version of the robocfg package as well, I'd have to
clean it up a little first (remove the full-duplex hack) before
submitting it if there is interest.

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>
SVN-Revision: 34992
package/switch/Makefile
package/switch/src/etc53xx.h
package/switch/src/switch-adm.c
package/switch/src/switch-core.c
package/switch/src/switch-core.h
package/switch/src/switch-robo.c