projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07252f6
)
ARM: socfpga: Pull DRAM size from DT
author
Marek Vasut
<marex@denx.de>
Mon, 28 May 2018 15:09:45 +0000
(17:09 +0200)
committer
Marek Vasut
<marex@denx.de>
Thu, 12 Jul 2018 07:22:13 +0000
(09:22 +0200)
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>
arch/arm/mach-socfpga/misc.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-socfpga/misc.c
b/arch/arm/mach-socfpga/misc.c
index 6f71e2096b75930557918bce9ba1dba2b55cfd5c..77628e11818d6b74aa2a2f502187d91e2a9f3a31 100644
(file)
--- 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;
}