mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
Fix vga initialization for qemu virtual graphics adapter.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Myles Watson <mylesgw@gmail.com> git-svn-id: svn://coreboot.org/repository/coreboot-v3@666 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
df60eea846
commit
479ca87df3
2 changed files with 7 additions and 2 deletions
|
@ -61,7 +61,13 @@ struct rom_header *pci_rom_probe(struct device *dev)
|
|||
rom_address = 0xc0000;
|
||||
|
||||
} else {
|
||||
rom_address = pci_read_config32(dev, PCI_ROM_ADDRESS);
|
||||
if (dev->rom_address) {
|
||||
/* Override in place? */
|
||||
rom_address = dev->rom_address;
|
||||
} else {
|
||||
rom_address = pci_read_config32(dev, PCI_ROM_ADDRESS) & 0xfffffffe;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (rom_address == 0x00000000 || rom_address == 0xffffffff) {
|
||||
|
|
|
@ -33,7 +33,6 @@ static void setup_onboard(struct device *dev)
|
|||
|
||||
printk(BIOS_INFO, "Init VGA device\n");
|
||||
|
||||
dev->on_mainboard = 1;
|
||||
dev->rom_address = 0xc0000;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue