Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
debugging initdram
  • Loading branch information
jad13041 committed Feb 5, 2020
1 parent 3744d2f commit b5a6448
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions board/freescale/t104xrdb/ddr.c
Expand Up @@ -125,21 +125,30 @@ 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();
printf("fsl ddr sdram\n");
mdelay(2500);
#else
dram_size = fsl_ddr_sdram_size();
printf("fsl ddr sdram size\n");
mdelay(2500);
#endif
dram_size = setup_ddr_tlbs(dram_size / 0x100000);
printf("fsl ddr sdram tlbs\n");
mdelay(2500);
dram_size *= 0x100000;
printf("fsl ddr sdram *=\n");
mdelay(2500);

#if defined(CONFIG_DEEP_SLEEP) && !defined(CONFIG_SPL_BUILD)
fsl_dp_resume();

#endif
printf("initdram end\n");m
mdelay(2500); */
mdelay(2500);

return dram_size;
}

0 comments on commit b5a6448

Please sign in to comment.