From: Jassi Brar Date: Mon, 12 Sep 2022 17:05:15 +0000 (-0500) Subject: board: developerbox: use identity mapping for >4GB X-Git-Tag: v2025.01-rc5-pxa1908~1261^2~11 X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20%24image.RelPermalink%20%7D%7D?a=commitdiff_plain;h=41b535ce78a06fee11eb048f3886e3c7608e301b;p=u-boot.git board: developerbox: use identity mapping for >4GB Identity-map the second and later memory banks which are located >4GB. Signed-off-by: Jassi Brar --- diff --git a/board/socionext/developerbox/developerbox.c b/board/socionext/developerbox/developerbox.c index f5a5fe0121..e14bb7f929 100644 --- a/board/socionext/developerbox/developerbox.c +++ b/board/socionext/developerbox/developerbox.c @@ -160,11 +160,11 @@ int dram_init(void) ri = DDR_REGION_INDEX(i); mem_map[ri].phys = ent[i].base; mem_map[ri].size = ent[i].size; + mem_map[ri].virt = mem_map[ri].phys; if (i == 0) continue; mr = &mem_map[DDR_REGION_INDEX(0)]; - mem_map[ri].virt = mr->virt + mr->size; mem_map[ri].attrs = mr->attrs; }