Skip to content

Commit

Permalink
trying other changes to ctrl_regs.c
Browse files Browse the repository at this point in the history
  • Loading branch information
jad13041 committed Jan 15, 2020
1 parent 2386ca5 commit 7f74672
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/ddr/fsl/ctrl_regs.c
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ static void set_ddr_sdram_cfg(fsl_ddr_cfg_regs_t *ddr,
unsigned int hse; /* Global half strength override */
unsigned int acc_ecc_en = 0; /* Accumulated ECC enable */
unsigned int mem_halt = 0; /* memory controller halt */
unsigned int bi = 1;//0; /* Bypass initialization */
unsigned int bi = 0; /* Bypass initialization */

mem_en = 1;
sren = popts->self_refresh_in_sleep;
Expand Down Expand Up @@ -818,7 +818,8 @@ static void set_ddr_sdram_cfg(fsl_ddr_cfg_regs_t *ddr,
hse = popts->half_strength_driver_enable;

/* set when ddr bus width < 64 */
acc_ecc_en = (dbw != 0 && ecc_en == 1) ? 1 : 0;
acc_ecc_en = 0;//(dbw != 0 && ecc_en == 1) ? 1 : 0;
ecc_en = 0;

ddr->ddr_sdram_cfg = (0
| ((mem_en & 0x1) << 31)
Expand Down Expand Up @@ -921,6 +922,7 @@ static void set_ddr_sdram_cfg_2(const unsigned int ctrl_num,
#if defined(CONFIG_SYS_FSL_DDR3) || defined(CONFIG_SYS_FSL_DDR4)
md_en = popts->mirrored_dimm;
#endif
d_init = 0;
qd_en = popts->quad_rank_present ? 1 : 0;
ddr->ddr_sdram_cfg_2 = (0
| ((frc_sr & 0x1) << 31)
Expand Down

0 comments on commit 7f74672

Please sign in to comment.