From a3811fe5e74575cc6173f8e2fc153c6f9884f89c Mon Sep 17 00:00:00 2001 From: Raul E Rangel Date: Mon, 1 Nov 2021 13:40:14 -0600 Subject: device/pci_rom: Add vga_oprom_preload This method will allow preloading the VGA_BIOS_FILE. By preloading the file, into cbfs_cache we reduce boot time. In the future we can also add support for loading the second VGA_BIOS_FILE and the DGPU VGA_BIOS_FILE. BUG=b:179699789 TEST=Boot guybrush to OS and verify 12 ms reduction in boot time Signed-off-by: Raul E Rangel Change-Id: Icb54fe3a942e9507ff6f1173ba5620a8f4ce6549 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56581 Tested-by: build bot (Jenkins) Reviewed-by: Rob Barnes --- src/include/device/pci_rom.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include/device') diff --git a/src/include/device/pci_rom.h b/src/include/device/pci_rom.h index 8b04d09987..25bca4003a 100644 --- a/src/include/device/pci_rom.h +++ b/src/include/device/pci_rom.h @@ -35,6 +35,7 @@ struct pci_data { uint16_t reserved_2; }; +void vga_oprom_preload(void); struct rom_header *pci_rom_probe(const struct device *dev); struct rom_header *pci_rom_load(struct device *dev, struct rom_header *rom_header); -- cgit v1.2.3