lmb: introduce a function to add memory to the lmb memory map
Introduce a function lmb_add_memory() to add available memory to the LMB memory map. Call this function during board init once the LMB data structures have been initialised. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -66,6 +66,17 @@ int lmb_init(void);
|
||||
void lmb_init_and_reserve(struct bd_info *bd, void *fdt_blob);
|
||||
void lmb_init_and_reserve_range(phys_addr_t base, phys_size_t size,
|
||||
void *fdt_blob);
|
||||
|
||||
/**
|
||||
* lmb_add_memory() - Add memory range for LMB allocations
|
||||
*
|
||||
* Add the entire available memory range to the pool of memory that
|
||||
* can be used by the LMB module for allocations.
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void lmb_add_memory(void);
|
||||
|
||||
long lmb_add(phys_addr_t base, phys_size_t size);
|
||||
long lmb_reserve(phys_addr_t base, phys_size_t size);
|
||||
/**
|
||||
|
Reference in New Issue
Block a user