Skip to content

Commit

Permalink
set d init to 0 and try to disable ecc
Browse files Browse the repository at this point in the history
  • Loading branch information
jad13041 committed Jan 15, 2020
1 parent 2bd1651 commit 7332f0f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion arch/powerpc/cpu/mpc85xx/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ phys_size_t initdram(int board_type)
/*
* Initialize and enable DDR ECC.
*/
ddr_enable_ecc(dram_size);
//ddr_enable_ecc(dram_size);
#endif

#if defined(CONFIG_FSL_LBC)
Expand Down
4 changes: 2 additions & 2 deletions common/board_f.c
Original file line number Diff line number Diff line change
Expand Up @@ -953,9 +953,9 @@ static init_fnc_t init_sequence_f[] = {
#endif
INIT_FUNC_WATCHDOG_RESET
#if defined(CONFIG_SYS_DRAM_TEST)
//testdram,
testdram,
#endif /* CONFIG_SYS_DRAM_TEST */
//INIT_FUNC_WATCHDOG_RESET
INIT_FUNC_WATCHDOG_RESET

#ifdef CONFIG_POST
init_post,
Expand Down
4 changes: 2 additions & 2 deletions drivers/ddr/fsl/ctrl_regs.c
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ static void set_ddr_sdram_cfg(fsl_ddr_cfg_regs_t *ddr,
sren = popts->self_refresh_in_sleep;
if (common_dimm->all_dimms_ecc_capable) {
/* Allow setting of ECC only if all DIMMs are ECC. */
ecc_en = popts->ecc_mode;
ecc_en = 0;//popts->ecc_mode;
} else {
ecc_en = 0;
}
Expand Down Expand Up @@ -910,7 +910,7 @@ static void set_ddr_sdram_cfg_2(const unsigned int ctrl_num,

#if defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER)
/* Use the DDR controller to auto initialize memory. */
d_init = popts->ecc_init_using_memctl;
d_init = 0;//popts->ecc_init_using_memctl;
ddr->ddr_data_init = 0x22221111;//CONFIG_MEM_INIT_VALUE;
debug("DDR: ddr_data_init = 0x%08x\n", ddr->ddr_data_init);
#else
Expand Down

0 comments on commit 7332f0f

Please sign in to comment.