summaryrefslogtreecommitdiff
path: root/common/image.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-09-07 21:31:00 +0300
committerTom Rini <trini@konsulko.com>2020-09-07 21:31:00 +0300
commit314b9b4a38befd120ce1c566d9eea8e0ec9d8336 (patch)
tree928486047400278e4a08469cd61a94aba690e868 /common/image.c
parent96d66a9b8ce11aae9f8bef5244b83b4740b37644 (diff)
parentbac9da46c57511e574aa7e763e17fdd6f55db5bb (diff)
downloadu-boot-314b9b4a38befd120ce1c566d9eea8e0ec9d8336.tar.xz
Merge branch 'remove-config-nr-dram-banks-v9-2020-08-26' of https://gitlab.denx.de/u-boot/custodians/u-boot-marvell into next
Diffstat (limited to 'common/image.c')
-rw-r--r--common/image.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/common/image.c b/common/image.c
index da8bccd400..645bfef169 100644
--- a/common/image.c
+++ b/common/image.c
@@ -685,14 +685,8 @@ phys_size_t env_get_bootm_size(void)
return tmp;
}
-#if (defined(CONFIG_ARM) || defined(CONFIG_MICROBLAZE)) && \
- defined(CONFIG_NR_DRAM_BANKS)
- start = gd->bd->bi_dram[0].start;
- size = gd->bd->bi_dram[0].size;
-#else
- start = gd->bd->bi_memstart;
- size = gd->bd->bi_memsize;
-#endif
+ start = gd->ram_base;
+ size = gd->ram_size;
if (start + size > gd->ram_top)
size = gd->ram_top - start;