mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-25 23:06:15 +00:00
bootm: use new common function lmb_init_and_reserve
This reduces duplicate code only. Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
aa3c609e2b
commit
5b978dab7b
1 changed files with 2 additions and 6 deletions
|
@ -56,15 +56,11 @@ static void boot_start_lmb(bootm_headers_t *images)
|
||||||
ulong mem_start;
|
ulong mem_start;
|
||||||
phys_size_t mem_size;
|
phys_size_t mem_size;
|
||||||
|
|
||||||
lmb_init(&images->lmb);
|
|
||||||
|
|
||||||
mem_start = env_get_bootm_low();
|
mem_start = env_get_bootm_low();
|
||||||
mem_size = env_get_bootm_size();
|
mem_size = env_get_bootm_size();
|
||||||
|
|
||||||
lmb_add(&images->lmb, (phys_addr_t)mem_start, mem_size);
|
lmb_init_and_reserve(&images->lmb, (phys_addr_t)mem_start, mem_size,
|
||||||
|
NULL);
|
||||||
arch_lmb_reserve(&images->lmb);
|
|
||||||
board_lmb_reserve(&images->lmb);
|
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define lmb_reserve(lmb, base, size)
|
#define lmb_reserve(lmb, base, size)
|
||||||
|
|
Loading…
Add table
Reference in a new issue