summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx6
diff options
context:
space:
mode:
authorChristian Hemp <c.hemp@phytec.de>2013-08-13 14:37:39 +0200
committerJustin Waters <justin.waters@timesys.com>2013-11-07 12:19:36 -0500
commit2cd7f1ecd019438897e6baf149ca1c1242bfd83b (patch)
tree396368cece76866aa898ec0e2d09d4340bda63b2 /arch/arm/mach-mx6
parente216ae3f8830d3bb69675c6cb82984d05dda43ea (diff)
phyflex:imx6: Add delay for RX lines
For the DL we need a delay on the RX lines. Without the delay we loos all packages. Signed-off-by: Christian Hemp <c.hemp@phytec.de>
Diffstat (limited to 'arch/arm/mach-mx6')
-rw-r--r--arch/arm/mach-mx6/board-mx6q_phyflex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-mx6/board-mx6q_phyflex.c b/arch/arm/mach-mx6/board-mx6q_phyflex.c
index 1d85892a6947..390b22147065 100644
--- a/arch/arm/mach-mx6/board-mx6q_phyflex.c
+++ b/arch/arm/mach-mx6/board-mx6q_phyflex.c
@@ -192,6 +192,11 @@ 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);
+
/* enable all interrupts */
phy_write(phydev, 0x1b, 0xff00);