summaryrefslogtreecommitdiff
path: root/drivers/tsec.c
diff options
context:
space:
mode:
authorAndy Fleming <afleming@freescale.com>2007-05-08 17:23:02 -0500
committerAndrew Fleming-AFLEMING <afleming@freescale.com>2007-07-11 17:52:50 -0500
commit7507d56ccaf7aae1c474342a9a5540165cd7e9d9 (patch)
tree65a1cf0d2b45aa1e821bcae80ed3ded644e0ea3d /drivers/tsec.c
parent4ef218f6fdf8d747f4589da5252b004e7d2c2876 (diff)
downloadu-boot-imx-7507d56ccaf7aae1c474342a9a5540165cd7e9d9.zip
u-boot-imx-7507d56ccaf7aae1c474342a9a5540165cd7e9d9.tar.gz
u-boot-imx-7507d56ccaf7aae1c474342a9a5540165cd7e9d9.tar.bz2
Fix Marvell 88e1145 PHY init code
Fix a bug in the Marvell 88e1145 PHY init code in the TSEC driver where the reset was being done after the errata code instead of before. Signed-off-by: Haiying Wang <haiying.wang@freescale.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'drivers/tsec.c')
-rw-r--r--drivers/tsec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/tsec.c b/drivers/tsec.c
index 1298478..c19d87f 100644
--- a/drivers/tsec.c
+++ b/drivers/tsec.c
@@ -1037,14 +1037,16 @@ static struct phy_info phy_info_M88E1145 = {
"Marvell 88E1145",
4,
(struct phy_cmd[]){ /* config */
+ /* Reset the PHY */
+ {MIIM_CONTROL, MIIM_CONTROL_RESET, NULL},
+
/* Errata E0, E1 */
{29, 0x001b, NULL},
{30, 0x418f, NULL},
{29, 0x0016, NULL},
{30, 0xa2da, NULL},
- /* Reset and configure the PHY */
- {MIIM_CONTROL, MIIM_CONTROL_RESET, NULL},
+ /* Configure the PHY */
{MIIM_GBIT_CONTROL, MIIM_GBIT_CONTROL_INIT, NULL},
{MIIM_ANAR, MIIM_ANAR_INIT, NULL},
{MIIM_88E1011_PHY_SCR, MIIM_88E1011_PHY_MDI_X_AUTO,