diff mbox

[U-Boot,v3,10/10] x86: baytrail: Support running as an EFI payload

Message ID 1439211912-10085-11-git-send-email-sjg@chromium.org
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass Aug. 10, 2015, 1:05 p.m. UTC
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>
---

Changes in v3: None
Changes in v2:
- Add new patch to support running as an EFI payload

 arch/x86/cpu/baytrail/valleyview.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Simon Glass Aug. 12, 2015, 3:55 a.m. UTC | #1
On 10 August 2015 at 07:05, Simon Glass <sjg@chromium.org> wrote:
> 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>
> ---
>
> Changes in v3: None
> Changes in v2:
> - Add new patch to support running as an EFI payload
>
>  arch/x86/cpu/baytrail/valleyview.c | 2 ++
>  1 file changed, 2 insertions(+)

Applied to u-boot-x86
diff mbox

Patch

diff --git a/arch/x86/cpu/baytrail/valleyview.c b/arch/x86/cpu/baytrail/valleyview.c
index 2d5a0eb..6c3dfe8 100644
--- a/arch/x86/cpu/baytrail/valleyview.c
+++ b/arch/x86/cpu/baytrail/valleyview.c
@@ -43,6 +43,8 @@  int arch_misc_init(void)
 {
 	int ret;
 
+	if (!ll_boot_init())
+		return 0;
 	ret = pirq_init();
 	if (ret)
 		return ret;