summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAbel Vesa <abel.vesa@nxp.com>2018-10-04 11:06:10 +0300
committerAbel Vesa <abel.vesa@nxp.com>2018-10-16 09:52:40 +0300
commit80d961517f7394a2a36e3b9df44c4df046111ba3 (patch)
tree4eabcbe46f1499efa34157d285b73deb146c38e7 /common
parentadc4d93e6e1726f111e86ca74fb76215215dbc86 (diff)
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>
Diffstat (limited to 'common')
-rw-r--r--common/spl/spl_mmc.c2
1 files changed, 1 insertions, 1 deletions
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 */