Skip to content
Snippets Groups Projects
Commit 061aad4d authored by Dave Liu's avatar Dave Liu Committed by Kim Phillips
Browse files

mpc83xx: Fix the bug of 266MHz data rate DDR


The DDR doesn't work on the 266MHz data rate,
the patch fix the bug.

Signed-off-by: default avatarDave Liu <daveliu@freescale.com>
Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
parent ded08317
No related branches found
No related tags found
No related merge requests found
...@@ -574,9 +574,9 @@ long int spd_sdram() ...@@ -574,9 +574,9 @@ long int spd_sdram()
*/ */
cpo = 0; cpo = 0;
if (spd.mem_type == SPD_MEMTYPE_DDR2) { if (spd.mem_type == SPD_MEMTYPE_DDR2) {
if (effective_data_rate == 266 || effective_data_rate == 333) { if (effective_data_rate == 266) {
cpo = 0x7; /* READ_LAT + 5/4 */ cpo = 0x4; /* READ_LAT + 1/2 */
} else if (effective_data_rate == 400) { } else if (effective_data_rate == 333 || effective_data_rate == 400) {
cpo = 0x7; /* READ_LAT + 5/4 */ cpo = 0x7; /* READ_LAT + 5/4 */
} else { } else {
/* Automatic calibration */ /* Automatic calibration */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment