Message ID | 20190130035935.235565-33-sjg@chromium.org |
---|---|
State | Superseded |
Delegated to: | Bin Meng |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="M6fyPCk/"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43q8wm6B6jz9sBQ for <incoming@patchwork.ozlabs.org>; Wed, 30 Jan 2019 15:08:08 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 84C89C21E18; Wed, 30 Jan 2019 04:05:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id E9A9AC21DFF; Wed, 30 Jan 2019 04:01:31 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 077F1C21E68; Wed, 30 Jan 2019 04:01:05 +0000 (UTC) Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by lists.denx.de (Postfix) with ESMTPS id ED1AEC21E39 for <u-boot@lists.denx.de>; Wed, 30 Jan 2019 04:01:01 +0000 (UTC) Received: by mail-qt1-f200.google.com with SMTP id 41so27013730qto.17 for <u-boot@lists.denx.de>; Tue, 29 Jan 2019 20:01:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=LlYQVmbilZ6+Ei+6EB8UvXIcIGiUiuPnqXbswW1zRJs=; b=M6fyPCk/MK0k5MiT96jP8f5t556eR8AOyEhycoMrTtsYwf56HKLFqnoYReBjBEHo6z Z2DHO8dmkbrIeDYpB5L4y17AM1LUu4bQaZ1ygrYUTIJSXZUUZWvmZ0cIeZj0kEgfPoOD maTTM1cf6d1vHJ/FLtseEm1ZYd+T9y1KGdeDA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=LlYQVmbilZ6+Ei+6EB8UvXIcIGiUiuPnqXbswW1zRJs=; b=CIyezuNDkWovFF4B6S1ScqkexBodg2HIOipf3fediVfet5sxvVAl14zFiFjYhcMeIn N/oYh3NFYOm6TgGAn2lYOHVnwT5rOgPxX075jfO1cpo4oQLe2+T0Sj7f/PMo7dKNFYht rEiGiqcyo2HqvgUIIK5TEw7jl92dvs+ugLesKIWpe4srcatB85pQ6Z6j19LL1arjpkKt 2gWTZ3s5cbHA3L0yY6DJtU7B25H+gd9xA3EPE25ZeE5HAVg5ciygmh4Ts+JAm3kjLmhG QdCKiPlcGT6Qoh+SbF0II3kyr73kjuCAvQVh03m2XQIZYQSyqvlxVMVPqNlkVSaq3Liz i02Q== X-Gm-Message-State: AHQUAub7fBc0MxD5MnxVIRVOYOPgWTgBzoWyn2CB00AotVaj893n5+ee +PGAhJvrFkcv5iT+wOiNH0LSqAdq2ngyMPv4 X-Google-Smtp-Source: AHgI3IaFrkwLTxh8XzMCsags+CvqCL++5VAjHUZkpYJ1UbJ+7wA10OCXgw++x1f0jAULES3uyIRqrNl7Ujd+O/UW X-Received: by 2002:a0c:96d7:: with SMTP id b23mr5047128qvd.48.1548820861080; Tue, 29 Jan 2019 20:01:01 -0800 (PST) Date: Tue, 29 Jan 2019 20:59:27 -0700 In-Reply-To: <20190130035935.235565-1-sjg@chromium.org> Message-Id: <20190130035935.235565-33-sjg@chromium.org> Mime-Version: 1.0 References: <20190130035935.235565-1-sjg@chromium.org> X-Mailer: git-send-email 2.20.1.495.gaa96b0ce6b-goog From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Subject: [U-Boot] [PATCH 32/40] x86: Support PCI VGA ROM when TPL is used X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
x86: Add support for booting from TPL
|
expand
|
On Wed, Jan 30, 2019 at 12:01 PM Simon Glass <sjg@chromium.org> wrote: > > When TPL is in use, U-Boot proper should support initing the VGA ROM even > though the 32-bit init portion is in SPL. Update the condition to handle > this. > > Signed-off-by: Simon Glass <sjg@chromium.org> > --- > > drivers/pci/pci_rom.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c index 7d9b75c2c4..2cede1211b 100644 --- a/drivers/pci/pci_rom.c +++ b/drivers/pci/pci_rom.c @@ -306,7 +306,7 @@ int dm_pci_run_vga_bios(struct udevice *dev, int (*int15_handler)(void), goto err; #endif } else { -#if defined(CONFIG_X86) && CONFIG_IS_ENABLED(X86_32BIT_INIT) +#if defined(CONFIG_X86) && (CONFIG_IS_ENABLED(X86_32BIT_INIT) || CONFIG_TPL) bios_set_interrupt_handler(0x15, int15_handler); bios_run_on_x86(dev, (unsigned long)ram, vesa_mode,
When TPL is in use, U-Boot proper should support initing the VGA ROM even though the 32-bit init portion is in SPL. Update the condition to handle this. Signed-off-by: Simon Glass <sjg@chromium.org> --- drivers/pci/pci_rom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)