From df1329453f773d265546bce4655019a2227fd0e8 Mon Sep 17 00:00:00 2001 From: hecanyang Date: Thu, 3 May 2012 11:35:26 +0800 Subject: [PATCH] add a condition before rank_to_row15_en,because LPDDR2 used rank1, to resolve LPDDR2 power-up failed --- arch/arm/mach-rk30/ddr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.34.1