]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
powerpc/p5040: fix mdio mux for 10G port
authorShaohui Xie <Shaohui.Xie@freescale.com>
Mon, 25 Mar 2013 07:40:21 +0000 (07:40 +0000)
committerAndy Fleming <afleming@freescale.com>
Fri, 24 May 2013 21:54:14 +0000 (16:54 -0500)
commite14cdc0a695d4cdb40843e1e7c6ee29c471a3fcc
treeb0e8c5704f0c16f4b7cdf0c84b77e65b2ac9c468
parent8fa0102bcfd67203e44b656fb478bc358e102ee2
powerpc/p5040: fix mdio mux for 10G port

Current driver of p5040 assumes 10G port follows 1G port DTSEC5 in
eth port enum structure, it will assign mdio mux depend on this assumption.
This is not true with Fman V3, which added more 1G ports after port DTSEC5
in eth port enum structure, then 10G ports on p5040 will have wrong mdio mux.
So we use dynamic index for 10G ports instead of hardcoded enum value
when doing mdio mux for 10G ports.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
board/freescale/corenet_ds/eth_superhydra.c