From a60bf67b32090ef97cfb78e7968f5ece9e344063 Mon Sep 17 00:00:00 2001 From: Li-Ta Lo Date: Mon, 10 May 2004 19:33:27 +0000 Subject: fixed minor bug in APG bridge code. Use AGP_APERTURE_SIZE instead of IOMMU_APERTURE_SIZE git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1553 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/southbridge/amd/amd8151/amd8151_agp3.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/southbridge/amd/amd8151') diff --git a/src/southbridge/amd/amd8151/amd8151_agp3.c b/src/southbridge/amd/amd8151/amd8151_agp3.c index a4d4dce1a1..b58f7926d4 100644 --- a/src/southbridge/amd/amd8151/amd8151_agp3.c +++ b/src/southbridge/amd/amd8151/amd8151_agp3.c @@ -12,15 +12,17 @@ static void agp3bridge_init(device_t dev) { uint8_t byte; - + + /* Enable BM and IO */ byte = pci_read_config32(dev, 0x04); byte |= 0x07; pci_write_config8(dev, 0x04, byte); - - byte = pci_read_config32(dev, 0xce); + + /* Eable VGA/ISA decoding */ + byte = pci_read_config32(dev, 0x3e); byte |= 3<<2; - pci_write_config8(dev, 0xce, byte); - + pci_write_config8(dev, 0x3e, byte); + return; } @@ -38,7 +40,6 @@ static struct pci_driver agp3bridge_driver __pci_driver = { .device = 0x7455, // AGP Bridge }; - static void agp3dev_enable(device_t dev) { uint32_t value; -- cgit v1.2.3