[PATCH 1/1] mx53-loco: fix phy reset

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Thu Nov 15 06:51:22 EST 2012


the phy reset neet to be done before the fec driver is registered
as we accesst the phy at the fec probe time

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
 arch/arm/boards/freescale-mx53-loco/board.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/arm/boards/freescale-mx53-loco/board.c b/arch/arm/boards/freescale-mx53-loco/board.c
index 45c05c2..216d26a 100644
--- a/arch/arm/boards/freescale-mx53-loco/board.c
+++ b/arch/arm/boards/freescale-mx53-loco/board.c
@@ -187,6 +187,7 @@ static int loco_devices_init(void)
 {
 
 	imx53_iim_register_fec_ethaddr();
+	loco_fec_reset();
 	imx53_add_fec(&fec_info);
 	imx53_add_mmc0(&loco_sd1_data);
 	imx53_add_mmc2(&loco_sd3_data);
@@ -196,8 +197,6 @@ static int loco_devices_init(void)
 	if (IS_ENABLED(CONFIG_USB_EHCI))
 		loco_ehci_init();
 
-	loco_fec_reset();
-
 	set_silicon_rev(imx_silicon_revision());
 
 	armlinux_set_bootparams((void *)0x70000100);
-- 
1.7.10.4




More information about the barebox mailing list