From: hecanyang Date: Thu, 3 May 2012 03:35:26 +0000 (+0800) Subject: add a condition before rank_to_row15_en,because LPDDR2 used rank1, to resolve LPDDR... X-Git-Tag: firefly_0821_release~9264 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=df1329453f773d265546bce4655019a2227fd0e8;p=firefly-linux-kernel-4.4.55.git add a condition before rank_to_row15_en,because LPDDR2 used rank1, to resolve LPDDR2 power-up failed --- diff --git a/arch/arm/mach-rk30/ddr.c b/arch/arm/mach-rk30/ddr.c index 9945246f3958..de456ffedcbd 100755 --- a/arch/arm/mach-rk30/ddr.c +++ b/arch/arm/mach-rk30/ddr.c @@ -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;