]> git.kernelconcepts.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:23:20 +0000 (10:23 +0200)
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;