Commit 00aad287 authored by Fugang Duan's avatar Fugang Duan Committed by Jason Liu

ENGR00171622 - FEC : workaround for Gb enet in sabrelite board.

Micrel phy KSZ9021 Gb speed cannot work well in i.MX6 sabrelite
board. Advertise PHY is not 1000Base-T capable.

If nfs boot kernel, phy will work at 100Mbps, or else phy will
work at Gbps mode. And if hot-plugin cable, phy will work at Gbps
mode. Enet can work well in all of them.

But in Gbps mode, uDMA sometime cannot write  frame "L" bit in
exuberate transfer, so driver will print some warning message:
"FEC ENET: rcv is not +last"
Signed-off-by: default avatarFugang Duan  <B38611@freescale.com>
parent 26f9719d
......@@ -428,8 +428,8 @@ static inline void mx6q_sabrelite_init_uart(void)
static int mx6q_sabrelite_fec_phy_init(struct phy_device *phydev)
{
/* prefer master mode, 1000 Base-T capable */
phy_write(phydev, 0x9, 0x0f00);
/* prefer master mode, disable 1000 Base-T capable */
phy_write(phydev, 0x9, 0x1c00);
/* min rx data delay */
phy_write(phydev, 0x0b, 0x8105);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment