works for PCI vga cards too
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1856 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -378,6 +378,7 @@ static void allocate_vga_resource(void)
|
||||
if (((dev->class >> 16) == PCI_BASE_CLASS_DISPLAY) &&
|
||||
((dev->class >> 8) != PCI_CLASS_DISPLAY_OTHER)) {
|
||||
if (!vga) {
|
||||
printk_debug("Allocating VGA resource %s\n", dev_path(dev));
|
||||
vga = dev;
|
||||
}
|
||||
if (vga == dev) {
|
||||
@@ -394,6 +395,8 @@ static void allocate_vga_resource(void)
|
||||
}
|
||||
/* Now walk up the bridges setting the VGA enable */
|
||||
while (bus) {
|
||||
printk_debug("Setting PCI_BRIDGE_CTL_VGA for bridge %s\n",
|
||||
dev_path(bus->dev));
|
||||
bus->bridge_ctrl |= PCI_BRIDGE_CTL_VGA;
|
||||
bus = (bus == bus->dev->bus)? 0 : bus->dev->bus;
|
||||
}
|
||||
|
Reference in New Issue
Block a user