X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=board%2Fst%2Fnhk8815%2Fnhk8815.c;h=9b62011277a28b0abcf39d5ab0186ee3b45a5574;hb=afba32bcd6ab06293660892b6d3f00fa8c17d107;hp=faef8109db84ce0757e8fb17085ba2d91297ced0;hpb=cb8948ee52f1657250e048a41b75c36c68e344f0;p=karo-tx-uboot.git diff --git a/board/st/nhk8815/nhk8815.c b/board/st/nhk8815/nhk8815.c index faef8109db..9b62011277 100644 --- a/board/st/nhk8815/nhk8815.c +++ b/board/st/nhk8815/nhk8815.c @@ -82,13 +82,18 @@ int board_late_init(void) int dram_init(void) { - /* set dram bank start addr and size */ + gd->ram_size = get_ram_size(CONFIG_SYS_SDRAM_BASE, + CONFIG_SYS_SDRAM_SIZE); + return 0; +} + +void dram_init_banksize(void) +{ gd->bd->bi_dram[0].start = PHYS_SDRAM_1; gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE; gd->bd->bi_dram[1].start = PHYS_SDRAM_2; gd->bd->bi_dram[1].size = PHYS_SDRAM_2_SIZE; - return 0; } #ifdef CONFIG_CMD_NET