mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
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>
This commit is contained in:
parent
dfaf6a5797
commit
4963f63fe6
1 changed files with 2 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue