]> git.ipfire.org Git - thirdparty/u-boot.git/blobdiff - common/image.c
Merge branch 'remove-config-nr-dram-banks-v9-2020-08-26' of https://gitlab.denx.de...
[thirdparty/u-boot.git] / common / image.c
index da8bccd400dd6c17904bf0c9ab8d4ef721a7cd3a..645bfef16906601b6f46aa11e558edda389edef8 100644 (file)
@@ -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;