aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJassi Brar2022-09-12 12:05:15 -0500
committerTom Rini2022-10-06 21:05:17 -0400
commit41b535ce78a06fee11eb048f3886e3c7608e301b (patch)
treec0f45e00d58c0f43ababd783757a4d979fd6fbff
parentd100d3e18ea81845eaee34964c6a927dbb8287cc (diff)
board: developerbox: use identity mapping for >4GB
Identity-map the second and later memory banks which are located >4GB. Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
-rw-r--r--board/socionext/developerbox/developerbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/socionext/developerbox/developerbox.c b/board/socionext/developerbox/developerbox.c
index f5a5fe01210..e14bb7f929e 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;
}