arm: mvebu: turris_mox: Support 1 GB version of Turris Mox

Use get_ram_size to determine if the RAM size on Turris Mox is 512 MiB
or 1 GiB.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
Marek Behún
2018-12-17 16:10:09 +01:00
committed by Stefan Roese
parent c87b87006b
commit 3b281aca41
2 changed files with 18 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ static void a8k_dram_init_banksize(void)
}
}
int dram_init_banksize(void)
__weak int dram_init_banksize(void)
{
if (CONFIG_IS_ENABLED(ARMADA_8K))
a8k_dram_init_banksize();
@@ -94,7 +94,7 @@ int dram_init_banksize(void)
return 0;
}
int dram_init(void)
__weak int dram_init(void)
{
if (CONFIG_IS_ENABLED(ARMADA_8K)) {
gd->ram_size = a8k_dram_scan_ap_sz();