Skip to content
Snippets Groups Projects
Commit 7e4db27f authored by York Sun's avatar York Sun Committed by Andy Fleming
Browse files

powerpc/mpc8xxx DDR: Fix CAS latency calculation


Empty slot should be skipped when calculating CAS latency.

Signed-off-by: default avatarYork Sun <yorksun@freescale.com>
Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
parent 45064adc
No related branches found
No related tags found
No related merge requests found
......@@ -27,8 +27,10 @@ compute_cas_latency_ddr3(const dimm_params_t *dimm_params,
/* compute the common CAS latency supported between slots */
tmp = dimm_params[0].caslat_X;
for (i = 1; i < number_of_dimms; i++)
for (i = 1; i < number_of_dimms; i++) {
if (dimm_params[i].n_ranks)
tmp &= dimm_params[i].caslat_X;
}
common_caslat = tmp;
/* compute the max tAAmin tCKmin between slots */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment