Skip to content
Snippets Groups Projects
Commit ecc7cedd authored by seedshope's avatar seedshope Committed by Albert Aribaud
Browse files

SMDK6400: Fixup dram_init for relocation support

parent 9a3a49fb
No related branches found
No related tags found
No related merge requests found
...@@ -78,10 +78,16 @@ int board_init(void) ...@@ -78,10 +78,16 @@ int board_init(void)
return 0; return 0;
} }
int dram_init(void) void dram_init_banksize(void)
{ {
gd->bd->bi_dram[0].start = PHYS_SDRAM_1; gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE; gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
}
int dram_init(void)
{
gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
PHYS_SDRAM_1_SIZE);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment