]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: baytrail: Support running as an EFI payload
authorSimon Glass <sjg@chromium.org>
Mon, 10 Aug 2015 13:05:12 +0000 (07:05 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 14 Aug 2015 09:24:21 +0000 (03:24 -0600)
We should not fiddle with interrupts or the FSP when running as an EFI
payload. Detect this and skip this code.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/baytrail/valleyview.c

index 2d5a0eb35e1f0d4deb5c0d70d546ffad9b4f583f..6c3dfe894f171da584c9efd4b1c092335346538c 100644 (file)
@@ -43,6 +43,8 @@ int arch_misc_init(void)
 {
        int ret;
 
+       if (!ll_boot_init())
+               return 0;
        ret = pirq_init();
        if (ret)
                return ret;