c66x: Use DDR3 PLL driver
[keystone-rtos/ibl.git] / src / device / c66x / c66xinit.c
index a9d72a0e36ae72426463f2e11630efc19a0b05a0..4321dd5aa93728406dd6d0df135351168ab71813 100644 (file)
@@ -48,27 +48,6 @@ void devicePllConfig (void)
                      ibl.pllConfig[ibl_MAIN_PLL].postdiv);
 
 
-
-        /* 1333 MHz data rate */
-        /***************** 2.2 DDR3 PLL Configuration ************/
-        DDR3PLLCTL1 |= 0x00000040;      //Set ENSAT bit = 1
-       DDR3PLLCTL0 |= 0x00800000;      // Set BYPASS = 1
-        DDR3PLLCTL1 |= 0x00002000;      //Set RESET bit = 1
-
-        DDR3PLLCTL0 = 0x090804C0;       //Configure CLKR, CLKF, CLKOD, BWADJ
-
-       for (i = 0;i < 20;i++)
-               ddr3_delay(1000);                //Wait for reset to complete
-
-        DDR3PLLCTL1 &= ~(0x00002000);   //Clear RESET bit
-
-       for (i = 0;i < 500;i++)
-               ddr3_delay(1000);                //Wait for PLL lock
-
-       DDR3PLLCTL0 &= ~(0x00800000);      // Set BYPASS = 0
-
-#if 0
-
     if (ibl.pllConfig[ibl_DDR_PLL].doEnable == TRUE)
         hwPllSetCfg2Pll (DEVICE_PLL_BASE(DDR_PLL),
                          ibl.pllConfig[ibl_DDR_PLL].prediv,
@@ -77,7 +56,6 @@ void devicePllConfig (void)
                          ibl.pllConfig[ibl_MAIN_PLL].pllOutFreqMhz,
                          ibl.pllConfig[ibl_DDR_PLL].pllOutFreqMhz);
 
-#endif
 
     if (ibl.pllConfig[ibl_NET_PLL].doEnable == TRUE)
         hwPllSetCfgPll (DEVICE_PLL_BASE(NET_PLL),
@@ -87,7 +65,6 @@ void devicePllConfig (void)
                         ibl.pllConfig[ibl_MAIN_PLL].pllOutFreqMhz,
                         ibl.pllConfig[ibl_NET_PLL].pllOutFreqMhz);
 
-
 }