From: Simon Glass Date: Fri, 26 Apr 2019 03:59:08 +0000 (-0600) Subject: x86: Support PCI VGA ROM when TPL is used X-Git-Tag: v2019.07-rc2~14^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c456516e24fb23eee01245097ef26885bc8842c;p=platform%2Fkernel%2Fu-boot.git x86: Support PCI VGA ROM when TPL is used 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 Reviewed-by: Bin Meng --- diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c index 7d9b75c..2cede12 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,