mips: octeon: Report full DDR size in dram_init() to gd->ram_size
authorStefan Roese <sr@denx.de>
Wed, 28 Oct 2020 14:10:01 +0000 (15:10 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Mon, 30 Nov 2020 17:31:56 +0000 (18:31 +0100)
commit8bab2c893c33b0245c51a71e91effe3547a73524
treebb3cd9e4dbab39b498a1744cc930324bfdbc2ebd
parent8a138257dd4d6b7de27de9645a868dd56e6018f1
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 <sr@denx.de>
Cc: Aaron Williams <awilliams@marvell.com>
Cc: Chandrakala Chavva <cchavva@marvell.com>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
arch/mips/mach-octeon/dram.c