add a condition before rank_to_row15_en,because LPDDR2 used rank1, to resolve LPDDR2 power-up failed

This commit is contained in:
hecanyang
2012-05-03 11:35:26 +08:00
parent 0c1ffdc369
commit df1329453f

View File

@@ -1285,7 +1285,10 @@ static __sramfunc void ddr_adjust_config(uint32_t dram_type)
move_to_Config_state();
//extend capability for debug
pGRF_Reg->GRF_SOC_CON[2] = rank_to_row15_en;
if(pGRF_Reg->GRF_SOC_CON[2] & (0x1<<1))
{
pGRF_Reg->GRF_SOC_CON[2] = rank_to_row15_en;
}
//set data training address
pPHY_Reg->DTAR = value;