projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa3c609
)
bootm: use new common function lmb_init_and_reserve
author
Simon Goldschmidt
<
[email protected]
>
Mon, 14 Jan 2019 21:38:20 +0000
(22:38 +0100)
committer
Tom Rini
<
[email protected]
>
Wed, 16 Jan 2019 21:37:06 +0000
(16:37 -0500)
This reduces duplicate code only.
Signed-off-by: Simon Goldschmidt <
[email protected]
>
Reviewed-by: Simon Glass <
[email protected]
>
common/bootm.c
patch
|
blob
|
history
diff --git
a/common/bootm.c
b/common/bootm.c
index 80f304ce9f1e2cd893c28ed8be05201eef905ce9..a4618b6d2e176cd4dc46a828299c697af79bfc1f 100644
(file)
--- a/
common/bootm.c
+++ b/
common/bootm.c
@@
-56,15
+56,11
@@
static void boot_start_lmb(bootm_headers_t *images)
ulong mem_start;
phys_size_t mem_size;
- lmb_init(&images->lmb);
-
mem_start = env_get_bootm_low();
mem_size = env_get_bootm_size();
- lmb_add(&images->lmb, (phys_addr_t)mem_start, mem_size);
-
- arch_lmb_reserve(&images->lmb);
- board_lmb_reserve(&images->lmb);
+ lmb_init_and_reserve(&images->lmb, (phys_addr_t)mem_start, mem_size,
+ NULL);
}
#else
#define lmb_reserve(lmb, base, size)