]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
T4240/eth: fix SGMII card PHY address
authorShaohui Xie <Shaohui.Xie@freescale.com>
Mon, 25 Mar 2013 07:39:38 +0000 (07:39 +0000)
committerAndy Fleming <afleming@freescale.com>
Tue, 14 May 2013 21:13:25 +0000 (16:13 -0500)
commitf63d638dad5dd13f445d1e87ce824d4a7cd61f79
tree44e48604cfa3e39370cdee264eaf5c8ba517187d
parent9c0a6de21d58fe5976202ee82c500c1182ac2dc7
T4240/eth: fix SGMII card PHY address

QSGMII card assumed to be used by default, but if SGMII card is used,
it will use different PHY address, but we don't know which card is used
until we access PHY on the card. So we check the card type slot by slot,
if we can read a PHY ID by reading a SGMII PHY address on a slot, then
the slot must have a SGMII card pluged, we mark all ports on that slot,
and fix dts to use the SGMII card PHY address when doing dts fixup
for the marked ports.

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