]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: Support PCI VGA ROM when TPL is used
authorSimon Glass <sjg@chromium.org>
Fri, 26 Apr 2019 03:59:08 +0000 (21:59 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 8 May 2019 05:02:16 +0000 (13:02 +0800)
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>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci_rom.c

index 7d9b75c2c457aa2b6502990fb449dca579e07d6c..2cede1211bbed341986d6bd1d999c3b83a052bbd 100644 (file)
@@ -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,