From 37e7888570648a7880ebb226b587254e9d5302c6 Mon Sep 17 00:00:00 2001 From: yangkai Date: Tue, 11 Oct 2011 15:55:00 +0800 Subject: [PATCH] ddr port priority change for mobile ddr --- arch/arm/mach-rk29/ddr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-rk29/ddr.c b/arch/arm/mach-rk29/ddr.c index d665fa909a68..181c02e4cad1 100755 --- a/arch/arm/mach-rk29/ddr.c +++ b/arch/arm/mach-rk29/ddr.c @@ -1359,7 +1359,10 @@ static void inline ddr_change_host_priority(void) [7:6]: GPU (host 3) [9:8]: VCODEC (host 4) */ - pGRF_Reg->GRF_MEM_CON = (pGRF_Reg->GRF_MEM_CON & ~0x3FF) | ((2<<0)|(1<<2)|(0<<4)|(1<<6)|(2<<8)); + if(mem_type == Mobile_DDR) + pGRF_Reg->GRF_MEM_CON = (pGRF_Reg->GRF_MEM_CON & ~0x3FF) | ((2<<0)|(2<<2)|(0<<4)|(2<<6)|(2<<8)); + else + pGRF_Reg->GRF_MEM_CON = (pGRF_Reg->GRF_MEM_CON & ~0x3FF) | ((2<<0)|(1<<2)|(0<<4)|(1<<6)|(2<<8)); } typedef struct _dtt_cnt_t -- 2.34.1