Skip to content
Snippets Groups Projects
Commit 87c3308c authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

ARM: uniphier: skip memreserve of unused DRAM bank of LD20


Now the "for" loop here iterates on the detected memory banks.
It must skip unused DRAM banks.

Fixes: c995f3a3 ("ARM: uniphier: use gd->bd->bi_dram for memory reserve on LD20 SoC")
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 0f5bf09c
No related branches found
No related tags found
No related merge requests found
...@@ -256,6 +256,9 @@ int ft_board_setup(void *fdt, bd_t *bd) ...@@ -256,6 +256,9 @@ int ft_board_setup(void *fdt, bd_t *bd)
return 0; return 0;
for (i = 0; i < ARRAY_SIZE(gd->bd->bi_dram); i++) { for (i = 0; i < ARRAY_SIZE(gd->bd->bi_dram); i++) {
if (!gd->bd->bi_dram[i].size)
continue;
rsv_addr = gd->bd->bi_dram[i].start + gd->bd->bi_dram[i].size; rsv_addr = gd->bd->bi_dram[i].start + gd->bd->bi_dram[i].size;
rsv_addr -= rsv_size; rsv_addr -= rsv_size;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment