mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
lmb: remove the lmb_init_and_reserve() function
With the changes to make the LMB reservations persistent, the common memory regions are being added during board init. Remove the now superfluous lmb_init_and_reserve() function. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
f4fb154f0a
commit
c7ce26cb36
10 changed files with 0 additions and 29 deletions
13
lib/lmb.c
13
lib/lmb.c
|
@ -227,19 +227,6 @@ static void lmb_reserve_common(void *fdt_blob)
|
|||
efi_lmb_reserve();
|
||||
}
|
||||
|
||||
/* Initialize the struct, add memory and call arch/board reserve functions */
|
||||
void lmb_init_and_reserve(struct bd_info *bd, void *fdt_blob)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) {
|
||||
if (bd->bi_dram[i].size)
|
||||
lmb_add(bd->bi_dram[i].start, bd->bi_dram[i].size);
|
||||
}
|
||||
|
||||
lmb_reserve_common(fdt_blob);
|
||||
}
|
||||
|
||||
/* Initialize the struct, add memory and call arch/board reserve functions */
|
||||
void lmb_init_and_reserve_range(phys_addr_t base, phys_size_t size,
|
||||
void *fdt_blob)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue