summaryrefslogtreecommitdiff
path: root/arch/x86/cpu/baytrail/valleyview.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-08-04 12:34:02 -0600
committerSimon Glass <sjg@chromium.org>2015-08-05 08:44:08 -0600
commitb4302582f309b49a08c770960a37af6fe1f3afb3 (patch)
tree44a890e542d467cd0265abdc163f2b703602f98f /arch/x86/cpu/baytrail/valleyview.c
parent8e3665087559092ef7fba861e65f633060896ede (diff)
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: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/cpu/baytrail/valleyview.c')
-rw-r--r--arch/x86/cpu/baytrail/valleyview.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/cpu/baytrail/valleyview.c b/arch/x86/cpu/baytrail/valleyview.c
index d8d2b8d418..610e9d9b1d 100644
--- a/arch/x86/cpu/baytrail/valleyview.c
+++ b/arch/x86/cpu/baytrail/valleyview.c
@@ -21,6 +21,7 @@ int cpu_mmc_init(bd_t *bis)
ARRAY_SIZE(mmc_supported));
}
+#ifndef CONFIG_EFI_APP
int arch_cpu_init(void)
{
int ret;
@@ -43,3 +44,4 @@ int arch_misc_init(void)
return 0;
}
+#endif