diff options
| author | Stefan Roese <[email protected]> | 2020-10-28 15:10:01 +0100 |
|---|---|---|
| committer | Daniel Schwierzeck <[email protected]> | 2020-11-30 18:31:56 +0100 |
| commit | 8bab2c893c33b0245c51a71e91effe3547a73524 (patch) | |
| tree | bb3cd9e4dbab39b498a1744cc930324bfdbc2ebd | |
| parent | 8a138257dd4d6b7de27de9645a868dd56e6018f1 (diff) | |
mips: octeon: Report full DDR size in dram_init() to gd->ram_size
With this patch, gd->ram_size now holds to full RAM size detected by the
DDR init code. It introduces the get_effective_memsize() function to
report the maximum usable RAM size in U-Boot to the system instead.
Signed-off-by: Stefan Roese <[email protected]>
Cc: Aaron Williams <[email protected]>
Cc: Chandrakala Chavva <[email protected]>
Cc: Daniel Schwierzeck <[email protected]>
Reviewed-by: Daniel Schwierzeck <[email protected]>
| -rw-r--r-- | arch/mips/mach-octeon/dram.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/mips/mach-octeon/dram.c b/arch/mips/mach-octeon/dram.c index 6dc08e19da4..4679260f17a 100644 --- a/arch/mips/mach-octeon/dram.c +++ b/arch/mips/mach-octeon/dram.c @@ -33,7 +33,7 @@ int dram_init(void) return ret; } - gd->ram_size = min_t(size_t, ram.size, UBOOT_RAM_SIZE_MAX); + gd->ram_size = ram.size; debug("SDRAM base=%lx, size=%lx\n", (unsigned long)ram.base, (unsigned long)ram.size); } else { @@ -72,6 +72,11 @@ void board_add_ram_info(int use_default) } } +phys_size_t get_effective_memsize(void) +{ + return UBOOT_RAM_SIZE_MAX; +} + ulong board_get_usable_ram_top(ulong total_size) { if (IS_ENABLED(CONFIG_RAM_OCTEON)) { |
