Skip to content

Commit

Permalink
define CONFIG_ECC_INIT_VIA DDRCONTROLLER
Browse files Browse the repository at this point in the history
  • Loading branch information
jad13041 committed Jan 15, 2020
1 parent 7332f0f commit 3f37103
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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 = 0;//popts->ecc_mode;
ecc_en = 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 = 0;//popts->ecc_init_using_memctl;
d_init = 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
2 changes: 1 addition & 1 deletion include/configs/T104xRDB.h
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
#define CONFIG_BTB /* toggle branch predition */
#define CONFIG_DDR_ECC
#ifdef CONFIG_DDR_ECC
#define CONFIG_ECC_INIT_VIA_DDRCONTROLLER
#define CONFIG_ECC_INIT_VIA_DDRCONTROLLER 0
#define CONFIG_MEM_INIT_VALUE 0xdeaddead //just making sure this is where its set
#endif

Expand Down

0 comments on commit 3f37103

Please sign in to comment.