diff options
author | Ramon Fried <ramon.fried@gmail.com> | 2018-07-22 08:12:14 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-07-28 11:58:10 -0400 |
commit | 2a1f4f1758b55589395f90f583aacb07ae6fcafe (patch) | |
tree | 58ebe6c6ed100a0bbcadcf9274c915f3d1ed493d /common/fdt_support.c | |
parent | 725dcf5a67a09f2a13a1ff0341d9e08d2b3242fb (diff) |
Revert "fdt_support: Use CONFIG_NR_DRAM_BANKS if defined"
This reverts commit 5e5745465c94605720295fab942eacbdd215db90.
The reverted commit didn't support the scenario where there are less
DRAM banks in U-Boot than in Linux.
Also, it didn't introduce any new functionality, only limitaion.
User could just increase MEMORY_BANKS_MAX if it's too small.
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/fdt_support.c')
-rw-r--r-- | common/fdt_support.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/common/fdt_support.c b/common/fdt_support.c index 3b31f3d7d5..1bdd03fdda 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -409,11 +409,7 @@ static int fdt_pack_reg(const void *fdt, void *buf, u64 *address, u64 *size, return p - (char *)buf; } -#ifdef CONFIG_NR_DRAM_BANKS -#define MEMORY_BANKS_MAX CONFIG_NR_DRAM_BANKS -#else #define MEMORY_BANKS_MAX 4 -#endif int fdt_fixup_memory_banks(void *blob, u64 start[], u64 size[], int banks) { int err, nodeoffset; |