spl: mtd_blk: apply mtd_blk_map_partitions()
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com> Change-Id: I9ed6ff49d5e366797ae1b4d9128432d1ad0e7728
This commit is contained in:
parent
4e2ae7292a
commit
ddb43797d5
|
|
@ -9,6 +9,7 @@
|
|||
#include <errno.h>
|
||||
#include <image.h>
|
||||
#include <malloc.h>
|
||||
#include <mtd_blk.h>
|
||||
#include <part.h>
|
||||
#include <spl.h>
|
||||
#include <spl_ab.h>
|
||||
|
|
@ -125,7 +126,9 @@ int spl_mtd_load_image(struct spl_image_info *spl_image,
|
|||
desc = find_mtd_device(spl_mtd_get_device_index(bootdev->boot_device));
|
||||
if (!desc)
|
||||
return -ENODEV;
|
||||
|
||||
#ifdef CONFIG_SPL_LIBDISK_SUPPORT
|
||||
mtd_blk_map_partitions(desc);
|
||||
#endif
|
||||
if (IS_ENABLED(CONFIG_SPL_LOAD_FIT)) {
|
||||
header = (struct image_header *)(CONFIG_SYS_TEXT_BASE -
|
||||
sizeof(struct image_header));
|
||||
|
|
|
|||
Loading…
Reference in New Issue