Tell vgabios code in a couple of boards/chipsets about CBFS
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4713 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
6768f39a4b
commit
689a720485
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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 = 0xfff80000;
|
||||
rom = cbfs_load_optionrom(dev->vendor, dev->device, 0);
|
||||
pci_write_config32(dev, PCI_ROM_ADDRESS, rom|1);
|
||||
printk_debug("VGA BIOS ROM base address: %x\n", rom);
|
||||
|
||||
|
|
|
@ -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 = 0xfff80000;
|
||||
rom = 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);
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
#undef __KERNEL__
|
||||
#include <arch/io.h>
|
||||
#include <string.h>
|
||||
#include <cbfs.h>
|
||||
|
||||
void write_protect_vgabios(void);
|
||||
|
||||
|
@ -323,7 +324,7 @@ void do_vgabios(void)
|
|||
* of core LXB stuff */
|
||||
|
||||
#warning ROM address hardcoded to 512K
|
||||
rom = 0xfff80000;
|
||||
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);
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include <arch/io.h>
|
||||
#include <string.h>
|
||||
#include "vgachip.h"
|
||||
#include <cbfs.h>
|
||||
|
||||
/* vgabios.c. Derived from: */
|
||||
|
||||
|
@ -319,7 +320,7 @@ void do_vgabios(void)
|
|||
/* declare rom address here - keep any config data out of the way
|
||||
* of core LXB stuff */
|
||||
|
||||
rom = 0xffffffff - CONFIG_ROM_SIZE + 1;
|
||||
rom = cbfs_load_optionrom(dev->vendor, dev->device, 0);
|
||||
pci_write_config32(dev, PCI_ROM_ADDRESS, rom | 1);
|
||||
printk_debug("rom base: %x\n", rom);
|
||||
buf = (unsigned char *)rom;
|
||||
|
|
Loading…
Reference in New Issue