common: spl_mmc: Allow FIT image raw loading
If SPL is built with CONFIG_SPL_LOAD_FIT make the checking for FIT image. If there is no FIT image go with the raw default mode. Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
This commit is contained in:
parent
adc4d93e6e
commit
80d961517f
|
|
@ -68,7 +68,7 @@ int mmc_load_image_raw_sector(struct spl_image_info *spl_image,
|
||||||
sizeof(struct image_header));
|
sizeof(struct image_header));
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
#if !defined(CONFIG_SPL_RAW_IMAGE_ARM_TRUSTED_FIRMWARE)
|
#if !defined(CONFIG_SPL_RAW_IMAGE_ARM_TRUSTED_FIRMWARE) || defined(CONFIG_SPL_LOAD_FIT)
|
||||||
unsigned long count = 0;
|
unsigned long count = 0;
|
||||||
|
|
||||||
/* read image header to find the image size & load address */
|
/* read image header to find the image size & load address */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue