x86: baytrail: Support running as an EFI payload

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>
This commit is contained in:
Simon Glass 2015-08-10 07:05:12 -06:00
parent 46f8efee70
commit c8896ee481
1 changed files with 2 additions and 0 deletions

View 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;