Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added even more waits, shortened to 2.5s
  • Loading branch information
jad13041 committed Jan 30, 2020
1 parent 5df730b commit 5a4496b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion board/freescale/t104xrdb/ddr.c
Expand Up @@ -123,7 +123,8 @@ void board_mem_sleep_setup(void)
phys_size_t initdram(int board_type)
{
phys_size_t dram_size;

printf("init dram start\n");
mdelay(2500);
#if defined(CONFIG_SPL_BUILD) || !defined(CONFIG_RAMBOOT_PBL)
puts("Initializing....using SPD\n");
dram_size = fsl_ddr_sdram();
Expand All @@ -136,6 +137,8 @@ phys_size_t initdram(int board_type)
#if defined(CONFIG_DEEP_SLEEP) && !defined(CONFIG_SPL_BUILD)
fsl_dp_resume();
#endif
printf("initdram end\n");
mdelay(2500);

return dram_size;
}
8 changes: 7 additions & 1 deletion drivers/ddr/fsl/main.c
Expand Up @@ -569,14 +569,17 @@ fsl_ddr_compute(fsl_ddr_info_t *pinfo, unsigned int start_step,
sizeof(fsl_ddr_cfg_regs_t));
continue;
}

printf("Before ctrl_reg\n");
mdelay(2500);
compute_fsl_memctl_config_regs
(i,
&pinfo->memctl_opts[i],
&ddr_reg[i], &timing_params[i],
pinfo->dimm_params[i],
dbw_capacity_adjust[i],
size_only);
printf("After ctrl_reg\n");
mdelay(2500);
}

default:
Expand Down Expand Up @@ -800,6 +803,9 @@ phys_size_t __fsl_ddr_sdram(fsl_ddr_info_t *pinfo)
*/
phys_size_t fsl_ddr_sdram(void)
{
printf("In main, fls_ddr_sdram\n");
mdelay(2500);

fsl_ddr_info_t info;

/* Reset info structure. */
Expand Down

0 comments on commit 5a4496b

Please sign in to comment.