#include <asm/arch/dram.h>
#include <asm/arch/gpio.h>
#include <asm/arch/mmc.h>
+#include <asm/arch/spl.h>
#include <asm/arch/usb_phy.h>
#ifndef CONFIG_ARM64
#include <asm/armv7.h>
#endif
#include <asm/gpio.h>
#include <asm/io.h>
+#include <environment.h>
#include <libfdt.h>
#include <nand.h>
#include <net.h>
}
#endif
-#if !defined(CONFIG_SPL_BUILD)
-#include <asm/arch/spl.h>
-#include <environment.h>
-
/*
* Check the SPL header for the "sunxi" variant. If found: parse values
* that might have been passed by the loader ("fel" utility), and update
/* otherwise assume .scr format (mkimage-type script) */
setenv_hex("fel_scriptaddr", spl->fel_script_address);
}
-#endif
/*
* Note this function gets called multiple times.
}
}
-#ifdef CONFIG_MISC_INIT_R
int misc_init_r(void)
{
__maybe_unused int ret;
-#if !defined(CONFIG_SPL_BUILD)
setenv("fel_booted", NULL);
setenv("fel_scriptaddr", NULL);
/* determine if we are running in FEL mode */
setenv("fel_booted", "1");
parse_spl_header(SPL_ADDR);
}
-#endif
setup_environment(gd->fdt_blob);
return 0;
}
-#endif
int ft_board_setup(void *blob, bd_t *bd)
{