Skip to content

Commit

Permalink
just d_init set to 0, should be the solution so testing again.
Browse files Browse the repository at this point in the history
  • Loading branch information
jad13041 committed Jan 15, 2020
1 parent 91f0cd7 commit 50e457b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 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,8 +818,7 @@ 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 = 0;//(dbw != 0 && ecc_en == 1) ? 1 : 0;
ecc_en = 0;
acc_ecc_en = (dbw != 0 && ecc_en == 1) ? 1 : 0;

ddr->ddr_sdram_cfg = (0
| ((mem_en & 0x1) << 31)
Expand Down

0 comments on commit 50e457b

Please sign in to comment.