Skip to content

Commit

Permalink
added more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jad13041 committed Jan 13, 2020
1 parent cb8c169 commit eac05c8
Show file tree
Hide file tree
Showing 2 changed files with 4 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 @@ -911,7 +911,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;
ddr->ddr_data_init = CONFIG_MEM_INIT_VALUE;
ddr->ddr_data_init = 0x22221111;//CONFIG_MEM_INIT_VALUE;
debug("DDR: ddr_data_init = 0x%08x\n", ddr->ddr_data_init);
#else
/* Memory will be initialized via DMA, or not at all. */
Expand Down Expand Up @@ -1813,7 +1813,7 @@ static void set_ddr_data_init(fsl_ddr_cfg_regs_t *ddr)
unsigned int init_value; /* Initialization value */

#ifdef CONFIG_MEM_INIT_VALUE
init_value = CONFIG_MEM_INIT_VALUE;
init_value = 0x22222222;//CONFIG_MEM_INIT_VALUE;
#else
init_value = 0xDEADBEEF;
#endif
Expand Down
3 changes: 2 additions & 1 deletion drivers/ddr/fsl/mpc85xx_ddr_gen1.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ ddr_enable_ecc(unsigned int dram_size)
struct ccsr_ddr __iomem *ddr =
(struct ccsr_ddr __iomem *)(CONFIG_SYS_FSL_DDR_ADDR);

dma_meminit(CONFIG_MEM_INIT_VALUE, dram_size);
//dma_meminit(CONFIG_MEM_INIT_VALUE, dram_size);
dma_meminit(0x55555555, dram_size);

/*
* Enable errors for ECC.
Expand Down

0 comments on commit eac05c8

Please sign in to comment.