]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitf5e2f238e960c86261017f42ded00ee38d5b4a10
treebb3cd9e4dbab39b498a1744cc930324bfdbc2ebd
parent0e7f40574c07220ec0864d96f844d09c7f5f1499
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