projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d100d3e
)
board: developerbox: use identity mapping for >4GB
author
Jassi Brar
<jaswinder.singh@linaro.org>
Mon, 12 Sep 2022 17:05:15 +0000
(12:05 -0500)
committer
Tom Rini
<trini@konsulko.com>
Fri, 7 Oct 2022 01:05:17 +0000
(21:05 -0400)
Identity-map the second and later memory banks which are located >4GB.
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
board/socionext/developerbox/developerbox.c
patch
|
blob
|
history
diff --git
a/board/socionext/developerbox/developerbox.c
b/board/socionext/developerbox/developerbox.c
index
f5a5fe0
..
e14bb7f
100644
(file)
--- 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;
}