aboutsummaryrefslogtreecommitdiff
path: root/common/image.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2020-08-12 12:57:18 +0200
committerStefan Roese <sr@denx.de>2020-08-26 09:19:23 +0200
commit4963f63fe61f15329d77472a762b1d8bf754d24b (patch)
treef063efa5ab0760d1b10874021e8c66addcef3569 /common/image.c
parentdfaf6a57974f5b4bcdc2a2a347b192573ffb5135 (diff)
downloadu-boot-4963f63fe61f15329d77472a762b1d8bf754d24b.zip
u-boot-4963f63fe61f15329d77472a762b1d8bf754d24b.tar.gz
u-boot-4963f63fe61f15329d77472a762b1d8bf754d24b.tar.bz2
image: Use gd->ram_base/_size in env_get_bootm_size()
Use only gd->ram_base/_size in env_get_bootm_size() instead of bi_dram[] in some cases and bi_memstart in others. Signed-off-by: Stefan Roese <sr@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/image.c')
-rw-r--r--common/image.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/common/image.c b/common/image.c
index 2ed46f7..6f68b13 100644
--- a/common/image.c
+++ b/common/image.c
@@ -685,13 +685,8 @@ phys_size_t env_get_bootm_size(void)
return tmp;
}
-#if defined(CONFIG_ARM) || defined(CONFIG_MICROBLAZE)
- 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;
s = env_get("bootm_low");
if (s)