]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/ibl.git/blobdiff - src/device/c66x/c66x.c
Merge pull request #3 in PROCESSOR-SDK/ibl from PRSDK-5675 to master
[keystone-rtos/ibl.git] / src / device / c66x / c66x.c
index a285ca503f9f97f596e4649cfa93a1220a4b4d71..ba72d9045a489fc06cc7647e70f5c969510da839 100755 (executable)
@@ -141,10 +141,6 @@ void deviceDdrConfig (void)
 #ifdef PLL_REINIT_WORKAROUND
     for (loopcount = 0; loopcount < PLL_DDR_INIT_LOOPMAX; loopcount++)
     {
-       if (ddr3_memory_test() == 0) 
-       {
-           break;
-       }
        /* Calling MAIN, PA, DDR PLL init  */
        if (ibl.pllConfig[ibl_MAIN_PLL].doEnable == TRUE)
             hwPllSetPll (MAIN_PLL, 
@@ -170,6 +166,11 @@ void deviceDdrConfig (void)
          
         if (ibl.ddrConfig.configDdr != 0)
             hwEmif4p0Enable (&ibl.ddrConfig.uEmif.emif4p0);
+                       
+           if (ddr3_memory_test() == 0) 
+           {
+               break;
+           }
     }
     /* Init UART again because we are re-initializing the PLL's */ 
     uart_init();