projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f5bf09
)
ARM: uniphier: skip memreserve of unused DRAM bank of LD20
author
Masahiro Yamada
<
[email protected]
>
Mon, 20 Feb 2017 08:13:32 +0000
(17:13 +0900)
committer
Masahiro Yamada
<
[email protected]
>
Wed, 22 Feb 2017 23:37:56 +0000
(08:37 +0900)
Now the "for" loop here iterates on the detected memory banks.
It must skip unused DRAM banks.
Fixes: c995f3a3c526 ("ARM: uniphier: use gd->bd->bi_dram for memory reserve on LD20 SoC")
Signed-off-by: Masahiro Yamada <
[email protected]
>
arch/arm/mach-uniphier/dram_init.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-uniphier/dram_init.c
b/arch/arm/mach-uniphier/dram_init.c
index df0e73a941722495dc5c5f79f29f689393cc1539..b9b0cd65bdc2973dedbbd4b627daae339717db73 100644
(file)
--- a/
arch/arm/mach-uniphier/dram_init.c
+++ b/
arch/arm/mach-uniphier/dram_init.c
@@
-256,6
+256,9
@@
int ft_board_setup(void *fdt, bd_t *bd)
return 0;
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 -= rsv_size;