提交 b4302582 编写于 作者: S Simon Glass

x86: baytrail: Support operation as an EFI payload

Disable a few things which interfere with the EFI init. This allows the
Minnowboard MAX to boot into EFI, load a U-Boot payload then boot to the
U-Boot prompt.
Signed-off-by: NSimon Glass <sjg@chromium.org>
Reviewed-by: NBin Meng <bmeng.cn@gmail.com>
上级 8e366508
...@@ -6,4 +6,4 @@ ...@@ -6,4 +6,4 @@
config INTEL_BAYTRAIL config INTEL_BAYTRAIL
bool bool
select HAVE_FSP select HAVE_FSP if !EFI
...@@ -45,6 +45,8 @@ static void set_max_freq(void) ...@@ -45,6 +45,8 @@ static void set_max_freq(void)
static int cpu_x86_baytrail_probe(struct udevice *dev) static int cpu_x86_baytrail_probe(struct udevice *dev)
{ {
if (!ll_boot_init())
return 0;
debug("Init BayTrail core\n"); debug("Init BayTrail core\n");
/* /*
......
...@@ -21,6 +21,7 @@ int cpu_mmc_init(bd_t *bis) ...@@ -21,6 +21,7 @@ int cpu_mmc_init(bd_t *bis)
ARRAY_SIZE(mmc_supported)); ARRAY_SIZE(mmc_supported));
} }
#ifndef CONFIG_EFI_APP
int arch_cpu_init(void) int arch_cpu_init(void)
{ {
int ret; int ret;
...@@ -43,3 +44,4 @@ int arch_misc_init(void) ...@@ -43,3 +44,4 @@ int arch_misc_init(void)
return 0; return 0;
} }
#endif
...@@ -13,11 +13,12 @@ config SYS_CONFIG_NAME ...@@ -13,11 +13,12 @@ config SYS_CONFIG_NAME
default "minnowmax" default "minnowmax"
config SYS_TEXT_BASE config SYS_TEXT_BASE
default 0xfff00000 default 0xfff00000 if !EFI_STUB
default 0x01110000 if EFI_STUB
config BOARD_SPECIFIC_OPTIONS # dummy config BOARD_SPECIFIC_OPTIONS # dummy
def_bool y def_bool y
select X86_RESET_VECTOR select X86_RESET_VECTOR if !EFI_STUB
select INTEL_BAYTRAIL select INTEL_BAYTRAIL
select BOARD_ROMSIZE_KB_8192 select BOARD_ROMSIZE_KB_8192
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册