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

ARM: uniphier: set gd->ram_base correctly


gd->ram_base is not set at all if the end address of the DRAM ch0
exceeds the 4GB limit.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 407b01b3
No related branches found
No related tags found
No related merge requests found
...@@ -248,12 +248,7 @@ int dram_init(void) ...@@ -248,12 +248,7 @@ int dram_init(void)
max_size = (1ULL << 32) - dram_map[i].base; max_size = (1ULL << 32) - dram_map[i].base;
if (dram_map[i].size > max_size) { gd->ram_size = min(dram_map[i].size, max_size);
gd->ram_size += max_size;
break;
}
gd->ram_size += dram_map[i].size;
if (!valid_bank_found) if (!valid_bank_found)
gd->ram_base = dram_map[i].base; gd->ram_base = dram_map[i].base;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment