From e5c0ca30a2c57f7cf841c49fd29e87f4eea9bde1 Mon Sep 17 00:00:00 2001 From: Greg Watson Date: Mon, 22 Nov 2004 21:36:46 +0000 Subject: pci_read using wrong device git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1789 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/northbridge/motorola/mpc107/mpc107_northbridge.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/northbridge') diff --git a/src/northbridge/motorola/mpc107/mpc107_northbridge.c b/src/northbridge/motorola/mpc107/mpc107_northbridge.c index ee9a5e2aee..fec70b0f8c 100644 --- a/src/northbridge/motorola/mpc107/mpc107_northbridge.c +++ b/src/northbridge/motorola/mpc107/mpc107_northbridge.c @@ -41,15 +41,15 @@ static void pci_domain_set_resources(device_t dev) unsigned long start, end, size; /* Find the memory setup */ - memstart1 = pci_read_config32(dev, 0x80); - memstart2 = pci_read_config32(dev, 0x84); - extmemstart1 = pci_read_config32(dev, 0x88); - extmemstart1 = pci_read_config32(dev, 0x8c); - memend1 = pci_read_config32(dev, 0x90); - memend2 = pci_read_config32(dev, 0x94); - extmemend1 = pci_read_config32(dev, 0x98); - extmemend2 = pci_read_config32(dev, 0x9c); - bank_enable = pci_read_config32(dev, 0xa0); + memstart1 = pci_read_config32(mc_dev, 0x80); + memstart2 = pci_read_config32(mc_dev, 0x84); + extmemstart1 = pci_read_config32(mc_dev, 0x88); + extmemstart1 = pci_read_config32(mc_dev, 0x8c); + memend1 = pci_read_config32(mc_dev, 0x90); + memend2 = pci_read_config32(mc_dev, 0x94); + extmemend1 = pci_read_config32(mc_dev, 0x98); + extmemend2 = pci_read_config32(mc_dev, 0x9c); + bank_enable = pci_read_config32(mc_dev, 0xa0); /* Report the memory regions */ idx = 10; -- cgit v1.2.3