Skip to content

Commit

Permalink
Reverted ddr.c changes, testing where deadbeef is set
Browse files Browse the repository at this point in the history
  • Loading branch information
jad13041 committed Jan 13, 2020
1 parent 94023d9 commit cb8c169
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions board/freescale/t104xrdb/ddr.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ phys_size_t initdram(int board_type)

#if defined(CONFIG_SPL_BUILD) || !defined(CONFIG_RAMBOOT_PBL)
puts("Initializing....using SPD\n");
//dram_size = fsl_ddr_sdram();
dram_size = fsl_ddr_sdram();
#else
//dram_size = fsl_ddr_sdram_size();
dram_size = fsl_ddr_sdram_size();
#endif
//dram_size = setup_ddr_tlbs(dram_size / 0x100000);
//dram_size *= 0x100000;
dram_size = setup_ddr_tlbs(dram_size / 0x100000);
dram_size *= 0x100000;

#if defined(CONFIG_DEEP_SLEEP) && !defined(CONFIG_SPL_BUILD)
fsl_dp_resume();
Expand Down
3 changes: 2 additions & 1 deletion drivers/dma/fsl_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,13 @@ void dma_meminit(uint val, uint size)
{
uint *p = 0;
uint i = 0;
val = 0x11112222;
printf("im in dma_meminit\n");
for (*p = 0; p < (uint *)(8 * 1024); p++) {
if (((uint)p & 0x1f) == 0)
ppcDcbz((ulong)p);

*p = (uint)CONFIG_MEM_INIT_VALUE;
*p = (uint) 0x11111111//CONFIG_MEM_INIT_VALUE;

if (((uint)p & 0x1c) == 0x1c)
ppcDcbf((ulong)p);
Expand Down

0 comments on commit cb8c169

Please sign in to comment.