summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hemp <c.hemp@phytec.de>2013-10-04 09:34:43 +0200
committerJustin Waters <justin.waters@timesys.com>2013-11-12 11:44:11 -0500
commit3f40d1c6b46d5cfc32c3a1ee2cde42b2ebe12b75 (patch)
tree12a6864eda66803ba73d305532a516748e6608e1
parent0f2ee3494a3d8d3bc78166a9641a5ab0a31f225f (diff)
imx6: set ethernet phy timings only with mod rev 2
Signed-off-by: Christian Hemp <c.hemp@phytec.de>
-rw-r--r--arch/arm/mach-mx6/board-mx6q_phyflex.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/arm/mach-mx6/board-mx6q_phyflex.c b/arch/arm/mach-mx6/board-mx6q_phyflex.c
index 019f0240331e..e22a1a4ebfde 100644
--- a/arch/arm/mach-mx6/board-mx6q_phyflex.c
+++ b/arch/arm/mach-mx6/board-mx6q_phyflex.c
@@ -194,11 +194,12 @@ static int mx6_phyflex_fec_phy_init(struct phy_device *phydev)
printk("FEC ID: 0x%X, 0x%X\n", phy_read(phydev, 0x02), phy_read(phydev, 0x03));
-
- phy_write(phydev, 0x0d, 2);
- phy_write(phydev, 0x0e, 8);
- phy_write(phydev, 0x0d, (1 << 14) | 2);
- phy_write(phydev, 0x0e, 0x039F);
+ if (module_rev == PHYFLEX_MODULE_REV_2) {
+ phy_write(phydev, 0x0d, 2);
+ phy_write(phydev, 0x0e, 8);
+ phy_write(phydev, 0x0d, (1 << 14) | 2);
+ phy_write(phydev, 0x0e, 0x039F);
+ }
/* enable all interrupts */
phy_write(phydev, 0x1b, 0xff00);