Commit aa8ac43645243b69faf0e81fab5f0d6fcf4285cf
Committed by
Tom Rini
1 parent
89831112d4
Exists in
v2017.01-smarct4x
and in
37 other branches
ARM: DRA72x: DDR3: Fix EMIF timings for 666MHz clock
DDR3 timing and latency paramenters were not configured correctly for 666MHz. Fixing the timing and latency values according to Data sheet. This fixes the random crashes seen on DRA72-evm. Signed-off-by: Angela Stegmaier <angelabaker@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Showing 1 changed file with 8 additions and 8 deletions Side-by-side Diff
arch/arm/cpu/armv7/omap5/sdram.c
... | ... | @@ -186,18 +186,18 @@ |
186 | 186 | }; |
187 | 187 | |
188 | 188 | const struct emif_regs emif_1_regs_ddr3_666_mhz_1cs_dra_es1 = { |
189 | - .sdram_config_init = 0x61851AB2, | |
190 | - .sdram_config = 0x61851AB2, | |
189 | + .sdram_config_init = 0x61862B32, | |
190 | + .sdram_config = 0x61862B32, | |
191 | 191 | .sdram_config2 = 0x08000000, |
192 | - .ref_ctrl = 0x00001035, | |
193 | - .sdram_tim1 = 0xCCCF36B3, | |
194 | - .sdram_tim2 = 0x308F7FDA, | |
195 | - .sdram_tim3 = 0x027F88A8, | |
192 | + .ref_ctrl = 0x0000144A, | |
193 | + .sdram_tim1 = 0xD113781C, | |
194 | + .sdram_tim2 = 0x308F7FE3, | |
195 | + .sdram_tim3 = 0x009F86A8, | |
196 | 196 | .read_idle_ctrl = 0x00050000, |
197 | 197 | .zq_config = 0x0007190B, |
198 | 198 | .temp_alert_config = 0x00000000, |
199 | - .emif_ddr_phy_ctlr_1_init = 0x0024400A, | |
200 | - .emif_ddr_phy_ctlr_1 = 0x0024400A, | |
199 | + .emif_ddr_phy_ctlr_1_init = 0x0E24400D, | |
200 | + .emif_ddr_phy_ctlr_1 = 0x0E24400D, | |
201 | 201 | .emif_ddr_ext_phy_ctrl_1 = 0x10040100, |
202 | 202 | .emif_ddr_ext_phy_ctrl_2 = 0x00A400A4, |
203 | 203 | .emif_ddr_ext_phy_ctrl_3 = 0x00A900A9, |