diff options
author | Marek Vasut <marex@denx.de> | 2018-05-28 17:09:45 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2018-07-12 09:22:13 +0200 |
commit | 297b653bbffe4e3bcc9534d70bd92e11545a7c4a (patch) | |
tree | 12cf9abe1ebcb3f9e684fbf0a9955737c548cc10 /arch/arm/mach-socfpga | |
parent | 07252f6f7e37e23cb43245dcddf8ea8f1d45dec1 (diff) |
ARM: socfpga: Pull DRAM size from DT
Pull the DRAM size from DT instead of hardcoding it into U-Boot.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Chin Liang See <chin.liang.see@intel.com>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Diffstat (limited to 'arch/arm/mach-socfpga')
-rw-r--r-- | arch/arm/mach-socfpga/misc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-socfpga/misc.c b/arch/arm/mach-socfpga/misc.c index 6f71e2096b..77628e1181 100644 --- a/arch/arm/mach-socfpga/misc.c +++ b/arch/arm/mach-socfpga/misc.c @@ -40,7 +40,9 @@ struct bsel bsel_str[] = { int dram_init(void) { - gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE); + if (fdtdec_setup_memory_size() != 0) + return -EINVAL; + return 0; } |