Remove PCI_ROM_RUN option
The main purpose of option rom is to supply int* handlers. But supplying those is outside of coreboot scope and if someone needs those they should run SeaBIOS anyway which runs the option roms wonderfully. Running VGA oprom is kept because they're needed to init graphics. This patch still keeps the options to include the option roms to make them available to SeaBIOS. Change-Id: I646334cf88094d3bf8f527779a68a07e0b4b93ec Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/4545 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -666,15 +666,11 @@ int oprom_is_loaded = 0;
|
||||
/** Default handler: only runs the relevant PCI BIOS. */
|
||||
void pci_dev_init(struct device *dev)
|
||||
{
|
||||
#if CONFIG_PCI_ROM_RUN || CONFIG_VGA_ROM_RUN
|
||||
#if CONFIG_VGA_ROM_RUN
|
||||
struct rom_header *rom, *ram;
|
||||
|
||||
if (CONFIG_PCI_ROM_RUN != 1 && /* Only execute VGA ROMs. */
|
||||
((dev->class >> 8) != PCI_CLASS_DISPLAY_VGA))
|
||||
return;
|
||||
|
||||
if (CONFIG_VGA_ROM_RUN != 1 && /* Only execute non-VGA ROMs. */
|
||||
((dev->class >> 8) == PCI_CLASS_DISPLAY_VGA))
|
||||
/* Only execute VGA ROMs. */
|
||||
if (((dev->class >> 8) != PCI_CLASS_DISPLAY_VGA))
|
||||
return;
|
||||
|
||||
#if CONFIG_CHROMEOS
|
||||
@@ -711,7 +707,7 @@ void pci_dev_init(struct device *dev)
|
||||
oprom_is_loaded = 1;
|
||||
printk(BIOS_DEBUG, "VGA Option ROM has been loaded\n");
|
||||
#endif
|
||||
#endif /* CONFIG_PCI_ROM_RUN || CONFIG_VGA_ROM_RUN */
|
||||
#endif /* CONFIG_VGA_ROM_RUN */
|
||||
}
|
||||
|
||||
/** Default device operation for PCI devices */
|
||||
|
Reference in New Issue
Block a user