add a condition before rank_to_row15_en,because LPDDR2 used rank1, to resolve LPDDR...
authorhecanyang <hcy@ubuntu-fs.(none)>
Thu, 3 May 2012 03:35:26 +0000 (11:35 +0800)
committerhecanyang <hcy@ubuntu-fs.(none)>
Thu, 3 May 2012 03:38:54 +0000 (11:38 +0800)
arch/arm/mach-rk30/ddr.c

index 9945246f3958ae1fd42650e58648a83742440285..de456ffedcbdca3d7dda19e194fb9df6f4ccc87f 100755 (executable)
@@ -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;