From 80d961517f7394a2a36e3b9df44c4df046111ba3 Mon Sep 17 00:00:00 2001 From: Abel Vesa Date: Thu, 4 Oct 2018 11:06:10 +0300 Subject: [PATCH] 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 --- common/spl/spl_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index 150886c1a8..90935aab1a 100644 --- a/common/spl/spl_mmc.c +++ b/common/spl/spl_mmc.c @@ -68,7 +68,7 @@ int mmc_load_image_raw_sector(struct spl_image_info *spl_image, sizeof(struct image_header)); 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; /* read image header to find the image size & load address */