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:
Abel Vesa 2018-10-04 11:06:10 +03:00
parent adc4d93e6e
commit 80d961517f
1 changed files with 1 additions and 1 deletions

View File

@ -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 */