projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e372e90
)
DDR3 ODT reduce from 120ohm to 60ohm
author
hecanyang
<hcy@ubuntu-fs.(none)>
Sat, 28 Apr 2012 07:18:14 +0000
(15:18 +0800)
committer
hecanyang
<hcy@ubuntu-fs.(none)>
Sat, 28 Apr 2012 07:20:30 +0000
(15:20 +0800)
arch/arm/mach-rk30/ddr.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rk30/ddr.c
b/arch/arm/mach-rk30/ddr.c
index bbbd6b27bb7fe59038a83040a6825eff6f2976f1..9945246f3958ae1fd42650e58648a83742440285 100755
(executable)
--- a/
arch/arm/mach-rk30/ddr.c
+++ b/
arch/arm/mach-rk30/ddr.c
@@
-1284,6
+1284,9
@@
static __sramfunc void ddr_adjust_config(uint32_t dram_type)
idle_port();
move_to_Config_state();
+ //extend capability for debug
+ pGRF_Reg->GRF_SOC_CON[2] = rank_to_row15_en;
+
//set data training address
pPHY_Reg->DTAR = value;
@@
-1293,7
+1296,7
@@
static __sramfunc void ddr_adjust_config(uint32_t dram_type)
//adjust DRV and ODT
if(dram_type == DDR3)
{
- pPHY_Reg->ZQ0CR[1] = 0x
1B; //DS=40ohm,ODT=12
0ohm
+ pPHY_Reg->ZQ0CR[1] = 0x
5B; //DS=40ohm,ODT=6
0ohm
pPHY_Reg->ZQ0CR[0] |= (1<<30); //trigger
}
if (dram_type == DDR2)