lmb: allow lmb module to be used in SPL
With the introduction of separate config symbols for the SPL phase of U-Boot, the condition checks need to be tweaked so that platforms that enable the LMB module in SPL are also able to call the LMB API's. Use the appropriate condition checks to achieve this. 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:
@@ -883,7 +883,7 @@ int image_setup_linux(struct bootm_headers *images)
|
||||
int ret;
|
||||
|
||||
/* This function cannot be called without lmb support */
|
||||
if (!IS_ENABLED(CONFIG_LMB))
|
||||
if (!CONFIG_IS_ENABLED(LMB))
|
||||
return -EFAULT;
|
||||
if (CONFIG_IS_ENABLED(OF_LIBFDT))
|
||||
boot_fdt_add_mem_rsv_regions(*of_flat_tree);
|
||||
|
||||
Reference in New Issue
Block a user