public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] common: fdt: set the value of MEMORY_BANKS_MAX to 8
@ 2018-08-10 11:54 Anand Moon
  2018-08-10 16:44 ` Ramon Fried
  0 siblings, 1 reply; 3+ messages in thread
From: Anand Moon @ 2018-08-10 11:54 UTC (permalink / raw)
  To: u-boot

set the value of MEMORY_BANKS_MAX to 8.
Odroid-XU4 fails to boot with following message

fdt_fixup_memory_banks: num banks 8 exceeds hardcoded limit 4.
Recompile with higher MEMORY_BANKS_MAX?
ERROR: arch-specific fdt fixup failed
 - must RESET the board to recover.

Fixes: commit 2a1f4f1758b5 (Revert "fdt_support: Use CONFIG_NR_DRAM_BANKS if defined")

CC: Ramon Fried <ramon.fried@gmail.com>
CC: Simon Glass <sjg@chromium.org>
Signed-off-by: Anand Moon <linux.amoon@gmail.com>
---
 common/fdt_support.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/fdt_support.c b/common/fdt_support.c
index 34d2bd59c4..ad87f31ab3 100644
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
@@ -409,7 +409,7 @@ static int fdt_pack_reg(const void *fdt, void *buf, u64 *address, u64 *size,
 	return p - (char *)buf;
 }
 
-#define MEMORY_BANKS_MAX 4
+#define MEMORY_BANKS_MAX 8
 int fdt_fixup_memory_banks(void *blob, u64 start[], u64 size[], int banks)
 {
 	int err, nodeoffset;
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-08-17 12:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-10 11:54 [U-Boot] [PATCH] common: fdt: set the value of MEMORY_BANKS_MAX to 8 Anand Moon
2018-08-10 16:44 ` Ramon Fried
2018-08-17 12:48   ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox