diff options
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/artecgroup/dbe61/realmode/vgabios.c | 3 | ||||
-rw-r--r-- | src/mainboard/via/epia-m/vgabios.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/mainboard/artecgroup/dbe61/realmode/vgabios.c b/src/mainboard/artecgroup/dbe61/realmode/vgabios.c index ecf8c2a8e3..944e7c03e0 100644 --- a/src/mainboard/artecgroup/dbe61/realmode/vgabios.c +++ b/src/mainboard/artecgroup/dbe61/realmode/vgabios.c @@ -7,6 +7,7 @@ #include <arch/io.h> #include <string.h> #include "chip.h" +#include <cbfs.h> /* vgabios.c. Derived from: */ @@ -266,7 +267,7 @@ void do_vgabios(device_t dev) { unsigned long busdevfn; - unsigned int rom = dev->rom_address; + unsigned int rom = cbfs_load_optionrom(dev->vendor, dev->device, 0); unsigned char *buf; unsigned int size = 64*1024; int i; diff --git a/src/mainboard/via/epia-m/vgabios.c b/src/mainboard/via/epia-m/vgabios.c index 94aa92b0fa..6954230d55 100644 --- a/src/mainboard/via/epia-m/vgabios.c +++ b/src/mainboard/via/epia-m/vgabios.c @@ -7,6 +7,7 @@ //#include <printk.h> #include <string.h> #include "vgachip.h" +#include <cbfs.h> /* vgabios.c. Derived from: */ @@ -356,7 +357,7 @@ void do_vgabios(void) /* declare rom address here - keep any config data out of the way * of core LXB stuff */ - rom = 0xfffc0000; + rom = (unsigned int)cbfs_load_optionrom(dev->vendor, dev->device, 0); pci_write_config32(dev, PCI_ROM_ADDRESS, rom|1); printk_debug("rom base, size: %x\n", rom); |