From: Dinesh Maniyam <[email protected]> Those functions are required in NAND FIT implementation, so include them in NAND build.
Signed-off-by: Tien Fong Chee <[email protected]> Signed-off-by: Dinesh Maniyam <[email protected]> --- arch/arm/mach-socfpga/spl_a10.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-socfpga/spl_a10.c b/arch/arm/mach-socfpga/spl_a10.c index a6c4ca39f71..06d3d70c164 100644 --- a/arch/arm/mach-socfpga/spl_a10.c +++ b/arch/arm/mach-socfpga/spl_a10.c @@ -286,7 +286,8 @@ void spl_board_prepare_for_boot(void) SYSMGR_A10_ROMCODE_INITSWSTATE); } -#if CONFIG_IS_ENABLED(LOAD_FIT) && CONFIG_IS_ENABLED(SPI_LOAD) +#if CONFIG_IS_ENABLED(LOAD_FIT) && (CONFIG_IS_ENABLED(SPI_LOAD) || \ + CONFIG_IS_ENABLED(NAND_SUPPORT)) struct legacy_img_hdr *spl_get_load_buffer(ssize_t offset, size_t size) { uintptr_t hdr_base, addr; -- 2.43.7
