]> git.sur5r.net Git - u-boot/commitdiff
Fix parameters to support RDIMM for P2020DS
authorYork Sun <yorksun@freescale.com>
Fri, 27 Aug 2010 21:25:56 +0000 (16:25 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 31 Aug 2010 16:23:04 +0000 (11:23 -0500)
Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c
board/freescale/p2020ds/ddr.c

index dccb7aa14b65ef5904940684d156c86064daceb1..e82082e74cdeb9f47087fd0f10fcb726470f4d26 100644 (file)
@@ -613,6 +613,7 @@ static void set_ddr_sdram_cfg_2(fsl_ddr_cfg_regs_t *ddr,
 #if defined(CONFIG_FSL_DDR3)
        md_en = popts->mirrored_dimm;
 #endif
+       rcw_en = popts->registered_dimm_en;
        qd_en = popts->quad_rank_present ? 1 : 0;
        ddr->ddr_sdram_cfg_2 = (0
                | ((frc_sr & 0x1) << 31)
index 30d640fa310d45797ebc9170531fef6850264ca1..9a1b07554feeffcb7961eece77e3dbc3ab88f99c 100644 (file)
@@ -68,7 +68,7 @@ const board_specific_parameters_t board_specific_parameters[][20] = {
                {550, 680,    1,    4,   0x1f,    3,  0},
                {681, 850,    1,    4,   0x1f,    4,  0}
 #else
-               {  0, 850,    2,    4,   0x1f,    4,  0},
+               {  0, 850,    2,    6,   0x1f,    4,  0},
                {  0, 850,    1,    4,   0x1f,    4,  0}
 #endif
        },
@@ -120,7 +120,7 @@ void fsl_ddr_board_options(memctl_options_t *popts,
        /* Write leveling override */
        popts->wrlvl_override = 1;
        popts->wrlvl_sample = 0xa;
-       popts->wrlvl_start = 0x7;
+       popts->wrlvl_start = 0x8;
        /* Rtt and Rtt_WR override */
        popts->rtt_override = 1;
        popts->rtt_override_value = DDR3_RTT_120_OHM;