x86: kconfig: Let board select BOARD_EARLY_INIT_F
CONFIG_BOARD_EARLY_INIT_F literally indicates board-specific codes and should be not 'default y' for all x86 boards. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
1e452b4686
commit
30b1ecd265
@ -29,11 +29,6 @@ int arch_cpu_init(void)
|
||||
return x86_cpu_init_f();
|
||||
}
|
||||
|
||||
int board_early_init_f(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int checkcpu(void)
|
||||
{
|
||||
return 0;
|
||||
|
@ -13,11 +13,6 @@ int arch_cpu_init(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int board_early_init_f(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int checkcpu(void)
|
||||
{
|
||||
return 0;
|
||||
|
@ -21,6 +21,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
|
||||
select X86_RESET_VECTOR if !EFI_STUB
|
||||
select INTEL_BAYTRAIL
|
||||
select BOARD_ROMSIZE_KB_8192
|
||||
select BOARD_EARLY_INIT_F
|
||||
|
||||
config PCIE_ECAM_BASE
|
||||
default 0xe0000000
|
||||
|
@ -21,6 +21,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
|
||||
select X86_RESET_VECTOR if !EFI_STUB
|
||||
select INTEL_BAYTRAIL
|
||||
select BOARD_ROMSIZE_KB_8192
|
||||
select BOARD_EARLY_INIT_F
|
||||
select BOARD_LATE_INIT
|
||||
|
||||
config PCIE_ECAM_BASE
|
||||
|
@ -21,6 +21,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
|
||||
select X86_RESET_VECTOR if !EFI_STUB
|
||||
select INTEL_BAYTRAIL
|
||||
select BOARD_ROMSIZE_KB_8192
|
||||
select BOARD_EARLY_INIT_F
|
||||
select BOARD_LATE_INIT
|
||||
|
||||
config PCIE_ECAM_BASE
|
||||
|
@ -16,8 +16,3 @@ int arch_early_init_r(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int board_early_init_f(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -11,8 +11,3 @@ int arch_early_init_r(void)
|
||||
{
|
||||
return cpu_run_reference_code();
|
||||
}
|
||||
|
||||
int board_early_init_f(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -11,8 +11,3 @@ int arch_early_init_r(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int board_early_init_f(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -21,5 +21,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
|
||||
select NORTHBRIDGE_INTEL_IVYBRIDGE
|
||||
select HAVE_FSP
|
||||
select BOARD_ROMSIZE_KB_2048
|
||||
select BOARD_EARLY_INIT_F
|
||||
|
||||
endif
|
||||
|
@ -20,5 +20,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
|
||||
select X86_RESET_VECTOR
|
||||
select INTEL_QUEENSBAY
|
||||
select BOARD_ROMSIZE_KB_1024
|
||||
select BOARD_EARLY_INIT_F
|
||||
|
||||
endif
|
||||
|
@ -9,11 +9,6 @@
|
||||
#include <asm/arch/device.h>
|
||||
#include <asm/arch/quark.h>
|
||||
|
||||
int board_early_init_f(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Intel Galileo gen2 board uses GPIO Resume Well bank pin0 as the PERST# pin.
|
||||
*
|
||||
|
@ -888,7 +888,6 @@ config ARCH_MISC_INIT
|
||||
|
||||
config BOARD_EARLY_INIT_F
|
||||
bool "Call board-specific init before relocation"
|
||||
default y if X86
|
||||
help
|
||||
Some boards need to perform initialisation as soon as possible
|
||||
after boot. With this option, U-Boot calls board_early_init_f()
|
||||
|
@ -17,7 +17,6 @@ CONFIG_BOOTSTAGE_REPORT=y
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
# CONFIG_ARCH_EARLY_INIT_R is not set
|
||||
CONFIG_ARCH_MISC_INIT=y
|
||||
# CONFIG_BOARD_EARLY_INIT_F is not set
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_CMD_CPU=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
|
@ -6,7 +6,6 @@ CONFIG_BOOTSTAGE=y
|
||||
CONFIG_BOOTSTAGE_REPORT=y
|
||||
CONFIG_ENV_IS_NOWHERE=y
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
# CONFIG_BOARD_EARLY_INIT_F is not set
|
||||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
CONFIG_CMD_IDE=y
|
||||
|
@ -4,7 +4,6 @@ CONFIG_DEFAULT_DEVICE_TREE="edison"
|
||||
CONFIG_TARGET_EDISON=y
|
||||
CONFIG_SMP=y
|
||||
# CONFIG_ARCH_EARLY_INIT_R is not set
|
||||
# CONFIG_BOARD_EARLY_INIT_F is not set
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_CMD_CPU=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
|
@ -8,7 +8,6 @@ CONFIG_ENV_IS_NOWHERE=y
|
||||
CONFIG_CONSOLE_MUX=y
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
# CONFIG_ARCH_EARLY_INIT_R is not set
|
||||
# CONFIG_BOARD_EARLY_INIT_F is not set
|
||||
CONFIG_HUSH_PARSER=y
|
||||
# CONFIG_CMD_BOOTM is not set
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
|
@ -18,7 +18,6 @@ CONFIG_BOOTSTAGE=y
|
||||
CONFIG_BOOTSTAGE_REPORT=y
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
CONFIG_ARCH_MISC_INIT=y
|
||||
# CONFIG_BOARD_EARLY_INIT_F is not set
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_CMD_CPU=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
|
@ -21,7 +21,6 @@ CONFIG_BOOTSTAGE=y
|
||||
CONFIG_BOOTSTAGE_REPORT=y
|
||||
CONFIG_ENV_IS_NOWHERE=y
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
# CONFIG_BOARD_EARLY_INIT_F is not set
|
||||
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
||||
CONFIG_SPL_CPU_SUPPORT=y
|
||||
CONFIG_SPL_ENV_SUPPORT=y
|
||||
|
@ -10,7 +10,6 @@ CONFIG_BOOTSTAGE=y
|
||||
CONFIG_BOOTSTAGE_REPORT=y
|
||||
CONFIG_ENV_IS_NOWHERE=y
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
# CONFIG_BOARD_EARLY_INIT_F is not set
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_CMD_CPU=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
|
@ -7,7 +7,6 @@ CONFIG_BOOTSTAGE=y
|
||||
CONFIG_BOOTSTAGE_REPORT=y
|
||||
CONFIG_ENV_IS_NOWHERE=y
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
# CONFIG_BOARD_EARLY_INIT_F is not set
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_CMD_CPU=y
|
||||
# CONFIG_CMD_IMLS is not set
|
||||
|
@ -7,7 +7,6 @@ CONFIG_BOOTSTAGE=y
|
||||
CONFIG_BOOTSTAGE_REPORT=y
|
||||
CONFIG_ENV_IS_NOWHERE=y
|
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
||||
# CONFIG_BOARD_EARLY_INIT_F is not set
|
||||
CONFIG_HUSH_PARSER=y
|
||||
CONFIG_CMD_CPU=y
|
||||
# CONFIG_CMD_BOOTEFI_HELLO_COMPILE is not set
|
||||
|
Loading…
Reference in New Issue
Block a user