typedef uint32_t uint32 ;
-#define DDR3_DDR2_DLL_DISABLE_FREQ (125) //lvddr3 ƵÂÊÌ«µÍʱdll²»ÄÜÕý³£¹¤×÷
+#define DDR3_DDR2_DLL_DISABLE_FREQ (300)
#define DDR3_DDR2_ODT_DISABLE_FREQ (333)
#define SR_IDLE (0x1) //unit:32*DDR clk cycle, and 0 for disable auto self-refresh
#define PD_IDLE (0x40) //unit:DDR clk cycle, and 0 for disable auto power-down
{
tmp = 3;
}
- cl = ddr3_cl_cwl[ddr_speed_bin][tmp] >> 16;
- cwl = ddr3_cl_cwl[ddr_speed_bin][tmp] & 0x0ff;
+ if(nMHz < DDR3_DDR2_DLL_DISABLE_FREQ) //when dll bypss cl = cwl = 6;
+ {
+ cl = 6;
+ cwl = 6;
+ }
+ else
+ {
+ cl = ddr3_cl_cwl[ddr_speed_bin][tmp] >> 16;
+ cwl = ddr3_cl_cwl[ddr_speed_bin][tmp] & 0x0ff;
+ }
if(cl == 0)
{
ret = -4; //³¬¹ý¿ÅÁ£µÄ×î´óƵÂÊ