]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/ibl.git/commitdiff
ethboot: Add delay after mdio init
authorSandeep Paulraj <s-paulraj@ti.com>
Thu, 16 Dec 2010 17:04:19 +0000 (12:04 -0500)
committerSandeep Nair <a0875039@gt48xvq51.gt.design.ti.com>
Mon, 7 Mar 2011 20:31:20 +0000 (15:31 -0500)
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
src/ethboot/ethboot.c

index 8042707b125f896ccecae54fa8e77d47f0a1cb0a..56c480e5789fd16ead74da3e50fec6cd6c3ede80 100644 (file)
@@ -114,7 +114,7 @@ void iblEthBoot (Int32 eIdx)
     void    (*exit)();
     uint8   buf[16];
     char    *ext;
-
+    unsigned int i,j;
 
     /* Power up the device. No action is taken if the device is already powered up */
     if (devicePowerPeriph (TARGET_PWR_ETH(ibl.bootModes[eIdx].port)) < 0)
@@ -125,6 +125,8 @@ void iblEthBoot (Int32 eIdx)
         hwMdio (ibl.mdioConfig.nMdioOps, ibl.mdioConfig.mdio, 
                 ibl.mdioConfig.mdioClkDiv, ibl.mdioConfig.interDelay);
 
+    for (j = 0; j < 0x100; j++)
+       for (i = 0; i < 0x1000000; i++);
 
     /* SGMII configuration. If sgmii is not present this statement is defined
      * to void in target.h */