summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2022-01-27 15:16:53 +0300
committerTom Rini <trini@konsulko.com>2022-02-08 19:00:02 +0300
commitb071a07743d44e58046ee5f52df9b6fab7733654 (patch)
treeced19f36d6865c5ebe3ec60bf1c282f706e16f72 /arch
parent0197909dd1c166dfb2e92b338b72d164e70db36f (diff)
downloadu-boot-b071a07743d44e58046ee5f52df9b6fab7733654.tar.xz
drivers: misc: Makefile: Enable fs_loader compilation at SPL Level
Enable fs_loader compilation at SPL Level. Signed-off-by: Keerthy <j-keerthy@ti.com> [Amjad: fix compilation failures for J721e platform] Signed-off-by: Amjad Ouled-Ameur <aouledameur@baylibre.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-k3/common.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c
index 39d00270b7..b4b75f4e6c 100644
--- a/arch/arm/mach-k3/common.c
+++ b/arch/arm/mach-k3/common.c
@@ -156,13 +156,15 @@ void init_env(void)
#endif
}
-#ifdef CONFIG_FS_LOADER
int load_firmware(char *name_fw, char *name_loadaddr, u32 *loadaddr)
{
struct udevice *fsdev;
char *name = NULL;
int size = 0;
+ if (!IS_ENABLED(CONFIG_FS_LOADER))
+ return 0;
+
*loadaddr = 0;
#ifdef CONFIG_SPL_ENV_SUPPORT
switch (spl_boot_device()) {
@@ -186,12 +188,6 @@ int load_firmware(char *name_fw, char *name_loadaddr, u32 *loadaddr)
return size;
}
-#else
-int load_firmware(char *name_fw, char *name_loadaddr, u32 *loadaddr)
-{
- return 0;
-}
-#endif
__weak void release_resources_for_core_shutdown(void)
{