aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFugang Duan <B38611@freescale.com>2012-01-11 13:34:40 +0800
committerFrank Li <Frank.Li@freescale.com>2012-01-12 09:07:12 +0800
commit3a6c81d7fae75f46f8f47a921247887a2e3c213a (patch)
treee4e58b28cff23b6aa41307ffb3e226c593dfc5f9
parent352139385517e62885cb9f7a48c89f12572bd719 (diff)
downloadlinux-linaro-3a6c81d7fae75f46f8f47a921247887a2e3c213a.tar.gz
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: Fugang Duan <B38611@freescale.com>
-rwxr-xr-xarch/arm/mach-mx6/board-mx6q_sabrelite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-mx6/board-mx6q_sabrelite.c b/arch/arm/mach-mx6/board-mx6q_sabrelite.c
index f723048d4f5..cb22baae013 100755
--- a/arch/arm/mach-mx6/board-mx6q_sabrelite.c
+++ b/arch/arm/mach-mx6/board-mx6q_sabrelite.c
@@ -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);