Make spl_*_load_image() functions return a value instead of hanging if a problem is encountered. This enables main spl code to make the decision whether to hang or not, thus preparing it to support alternative boot devices. Some boot devices (namely nand and spi) do not hang on error....
config SPL_ATF_LOAD_IMAGE_V2 bool "Use the new LOAD_IMAGE_V2 parameter passing" depends on SPL_ATF help Some platforms use the newer LOAD_IMAGE_V2 parameter passing. If you want to load a bl31 image from the SPL and need the new method, say Y. config SPL_ATF_NO_PLATFORM_PARAM bool...
debug("spl: mmc boot mode: fs\n"); @@ -203,6 +204,7 @@ void spl_mmc_load_image(void) #endif #endif #endif break; #ifdef CONFIG_SUPPORT_EMMC_BOOT case MMCSD_MODE_EMMCBOOT: /* @@ -240,15 +242,14 @@ void spl_mmc_load_image(void) if (!err) return; #endif break; #endi...
return spl_ram_load_image(); #endif #ifdef CONFIG_SPL_MMC_SUPPORT case BOOT_DEVICE_MMC1: case BOOT_DEVICE_MMC2: case BOOT_DEVICE_MMC2_2: if (spl_mmc_load_image()) hang(); break; return spl_mmc_load_image(); #endif #ifdef CONFIG_SPL_NAND_SUPPORT ...
config SPL_ATF_LOAD_IMAGE_V2 bool "Use the new LOAD_IMAGE_V2 parameter passing" depends on SPL_ATF help Some platforms use the newer LOAD_IMAGE_V2 parameter passing. If you want to load a bl31 image from the SPL and need the new method, say Y. config SPL_ATF_NO_PLATFORM_PARAM bool...