diff mbox series

[1/2] board: developerbox: use identity mapping for >4GB

Message ID 20220912170515.718989-1-jassisinghbrar@gmail.com
State New
Headers show
Series [1/2] board: developerbox: use identity mapping for >4GB | expand

Commit Message

Jassi Brar Sept. 12, 2022, 5:05 p.m. UTC
From: Jassi Brar <jaswinder.singh@linaro.org>

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini Oct. 7, 2022, 3:47 p.m. UTC | #1
On Mon, Sep 12, 2022 at 12:05:15PM -0500, jassisinghbrar@gmail.com wrote:

> From: Jassi Brar <jaswinder.singh@linaro.org>
> 
> Identity-map the second and later memory banks which are located >4GB.
> 
> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/board/socionext/developerbox/developerbox.c b/board/socionext/developerbox/developerbox.c
index 9552bfcdc3..b680f77d80 100644
--- a/board/socionext/developerbox/developerbox.c
+++ b/board/socionext/developerbox/developerbox.c
@@ -127,11 +127,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;
 	}