x86: baytrail: Support operation as an EFI payload
authorSimon Glass <sjg@chromium.org>
Tue, 4 Aug 2015 18:34:02 +0000 (12:34 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 5 Aug 2015 14:44:08 +0000 (08:44 -0600)
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>
arch/x86/cpu/baytrail/Kconfig
arch/x86/cpu/baytrail/cpu.c
arch/x86/cpu/baytrail/valleyview.c
board/intel/minnowmax/Kconfig

index e86cc01115b29597531d31e69ab0478381449edd..407feb214bf864dd3ed51e451e746ce90fdc0579 100644 (file)
@@ -6,4 +6,4 @@
 
 config INTEL_BAYTRAIL
        bool
-       select HAVE_FSP
+       select HAVE_FSP if !EFI
index a0117308aeb4d2ec3ed88a0f73ad33b464b422b4..b1faf8ca32607e7da0e55df203b8cf954d44ce6b 100644 (file)
@@ -45,6 +45,8 @@ static void set_max_freq(void)
 
 static int cpu_x86_baytrail_probe(struct udevice *dev)
 {
+       if (!ll_boot_init())
+               return 0;
        debug("Init BayTrail core\n");
 
        /*
index d8d2b8d418bee24b255d9fb910d96dffa59f83f2..610e9d9b1d8a4237e02cf5e36b2c04f03d58c8bf 100644 (file)
@@ -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
index f2a0b71c442c8d482fe24fc9f144fb8af23edae5..7e975f9c3ae71606459d0316a7521eba43500d12 100644 (file)
@@ -13,11 +13,12 @@ config SYS_CONFIG_NAME
        default "minnowmax"
 
 config SYS_TEXT_BASE
-       default 0xfff00000
+       default 0xfff00000 if !EFI_STUB
+       default 0x01110000 if EFI_STUB
 
 config BOARD_SPECIFIC_OPTIONS # dummy
        def_bool y
-       select X86_RESET_VECTOR
+       select X86_RESET_VECTOR if !EFI_STUB
        select INTEL_BAYTRAIL
        select BOARD_ROMSIZE_KB_8192