diff --git a/arch/x86/cpu/baytrail/cpu.c b/arch/x86/cpu/baytrail/cpu.c index 9394eab956ba1fca12e1f08ed9aa13b8396c4838..a9cfcedd81c88e83ab02406e469556890f7fd391 100644 --- a/arch/x86/cpu/baytrail/cpu.c +++ b/arch/x86/cpu/baytrail/cpu.c @@ -8,6 +8,7 @@ #include <common.h> #include <cpu.h> #include <dm.h> +#include <init.h> #include <pci.h> #include <asm/cpu.h> #include <asm/cpu_x86.h> diff --git a/arch/x86/cpu/baytrail/valleyview.c b/arch/x86/cpu/baytrail/valleyview.c index 8882a76eae596f4c00cd7cf4858e6dce26709e95..f2e48f401feec6d34e444f4183482fd6bdd2dacf 100644 --- a/arch/x86/cpu/baytrail/valleyview.c +++ b/arch/x86/cpu/baytrail/valleyview.c @@ -4,6 +4,7 @@ */ #include <common.h> +#include <init.h> #include <mmc.h> #include <pci_ids.h> #include <asm/irq.h> diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c index d626e38fd18f073a91255be8f3064d588a46fefd..dae06949cc6e7899408e98d6ed59dae916caab66 100644 --- a/arch/x86/cpu/cpu.c +++ b/arch/x86/cpu/cpu.c @@ -24,6 +24,7 @@ #include <cpu_func.h> #include <dm.h> #include <errno.h> +#include <init.h> #include <malloc.h> #include <syscon.h> #include <asm/acpi.h> diff --git a/arch/x86/cpu/i386/cpu.c b/arch/x86/cpu/i386/cpu.c index 2b27617ca3a466fdd0c827a28317753f7cf2d6d7..1592b2c9d3b3a503251af4317b6541db89721e29 100644 --- a/arch/x86/cpu/i386/cpu.c +++ b/arch/x86/cpu/i386/cpu.c @@ -20,6 +20,7 @@ #include <common.h> #include <cpu_func.h> +#include <init.h> #include <malloc.h> #include <spl.h> #include <asm/control_regs.h> diff --git a/arch/x86/cpu/i386/interrupt.c b/arch/x86/cpu/i386/interrupt.c index 78aa51a3ea6adb2b5b2ec7617a234df42feff949..991cf5c56bf5b3cc7f572de118e9787572cfab83 100644 --- a/arch/x86/cpu/i386/interrupt.c +++ b/arch/x86/cpu/i386/interrupt.c @@ -13,6 +13,7 @@ #include <common.h> #include <dm.h> #include <efi_loader.h> +#include <init.h> #include <irq_func.h> #include <asm/control_regs.h> #include <asm/i8259.h> diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c index 1d4064e3769281537cbd563f0f903555c5c3e435..90f224b045234ef5b4117da0562b3481e608999b 100644 --- a/drivers/pci/pci_rom.c +++ b/drivers/pci/pci_rom.c @@ -26,6 +26,7 @@ #include <bios_emul.h> #include <dm.h> #include <errno.h> +#include <init.h> #include <malloc.h> #include <pci.h> #include <pci_rom.h> diff --git a/drivers/video/broadwell_igd.c b/drivers/video/broadwell_igd.c index e6df037cb93c653dbe755c7fe558fcc651fcb12e..c23421d25be7057556d542510cef875be7367c4c 100644 --- a/drivers/video/broadwell_igd.c +++ b/drivers/video/broadwell_igd.c @@ -8,6 +8,7 @@ #include <common.h> #include <bios_emul.h> #include <dm.h> +#include <init.h> #include <vbe.h> #include <video.h> #include <asm/cpu.h> diff --git a/include/common.h b/include/common.h index f38dc2ef3fbc4d779f86bd5616bdc3d730b87f5e..a971f75f8bccc1dde5d4e63f0e115058a70f8440 100644 --- a/include/common.h +++ b/include/common.h @@ -114,13 +114,6 @@ int get_serial_clock(void); offsetof(struct structure, member) == offset, \ "`struct " #structure "` offset for `" #member "` is not " #offset) -/* Avoid using CONFIG_EFI_STUB directly as we may boot from other loaders */ -#ifdef CONFIG_EFI_STUB -#define ll_boot_init() false -#else -#define ll_boot_init() true -#endif - /* Pull in stuff for the build system */ #ifdef DO_DEPS_ONLY # include <env_internal.h> diff --git a/include/init.h b/include/init.h index f6105de66609dac6344de071513d8f8b4eea13ed..c5498476f8c61e6ca47ab1b026ee87dc963dd269 100644 --- a/include/init.h +++ b/include/init.h @@ -16,6 +16,13 @@ struct global_data; #ifndef __ASSEMBLY__ /* put C only stuff in this section */ +/* Avoid using CONFIG_EFI_STUB directly as we may boot from other loaders */ +#ifdef CONFIG_EFI_STUB +#define ll_boot_init() false +#else +#define ll_boot_init() true +#endif + /* * Function Prototypes */