@@ -28,6 +28,8 @@
#include <watchdog.h>
#include <asm/arch/pinmux.h>
#include <asm/arch/fpga_manager.h>
+#include <exports.h>
+#include <log.h>
#include <mmc.h>
#include <memalign.h>
#include <linux/delay.h>
@@ -281,3 +283,13 @@ void spl_board_prepare_for_boot(void)
writel(FSBL_IMAGE_IS_VALID, socfpga_get_sysmgr_addr() +
SYSMGR_A10_ROMCODE_INITSWSTATE);
}
+
+#if defined(CONFIG_SPL_LOAD_FIT) && defined(CONFIG_SPL_SPI_LOAD)
+struct image_header *spl_get_load_buffer(int offset, size_t size)
+{
+ if (gd->ram_size)
+ return (struct image_header *)(gd->ram_size / 2);
+ else
+ return NULL;
+}
+#endif