]> git.sur5r.net Git - u-boot/commitdiff
powerpc/corenet_ds: Fix RCW overriding for RDIMM
authorYork Sun <yorksun@freescale.com>
Mon, 27 Jun 2011 20:39:15 +0000 (13:39 -0700)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 11 Jul 2011 18:24:20 +0000 (13:24 -0500)
Allow overriding RCW for all RDIMM, not only quad-rank ones.

Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
board/freescale/corenet_ds/ddr.c

index 98024c72d7f02ed8f347d6720403f16a9a967a4b..f2b716d4ae1dce6eac26f0153140150efce72677 100644 (file)
@@ -219,7 +219,7 @@ void fsl_ddr_board_options(memctl_options_t *popts,
        popts->ddr_cdr1 = DDR_CDR1_DHC_EN;
 
        /* override SPD values. rcw_2 should vary at differnt speed */
-       if (pdimm[0].n_ranks == 4) {
+       if (pdimm[0].registered_dimm == 1) {
                popts->rcw_override = 1;
                popts->rcw_1 = 0x000a5a00;
                if (ddr_freq <= 800)