spl: mtd_blk: load rk firmware when load fit failed
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com> Change-Id: Ic8b0a397e9193e62f7349bbd2230d34b6485b58a
This commit is contained in:
parent
2206b10747
commit
44da3fa18e
|
|
@ -137,8 +137,12 @@ int spl_mtd_load_image(struct spl_image_info *spl_image,
|
||||||
CONFIG_SYS_NAND_U_BOOT_OFFS,
|
CONFIG_SYS_NAND_U_BOOT_OFFS,
|
||||||
header);
|
header);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} else if (IS_ENABLED(CONFIG_SPL_LOAD_RKFW)) {
|
if (!ret)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
if (IS_ENABLED(CONFIG_SPL_LOAD_RKFW)) {
|
||||||
#ifdef CONFIG_SPL_LOAD_RKFW
|
#ifdef CONFIG_SPL_LOAD_RKFW
|
||||||
ret = spl_mtd_load_rkfw(spl_image, desc);
|
ret = spl_mtd_load_rkfw(spl_image, desc);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue