diff options
author | Marc Jones <marcj303@gmail.com> | 2009-09-14 17:00:04 +0000 |
---|---|---|
committer | Marc Jones <marc.jones@amd.com> | 2009-09-14 17:00:04 +0000 |
commit | fd9c9b8ff8326c07bd63b39ab85bd68f6fb6a011 (patch) | |
tree | 84bb8e63c198de79c05b7d31d1ee4ae8ccb012ea /src/northbridge | |
parent | fea8a4f8d32112d7dfa002583fa1da2de2c10f3f (diff) | |
download | coreboot-staging-fd9c9b8ff8326c07bd63b39ab85bd68f6fb6a011.zip coreboot-staging-fd9c9b8ff8326c07bd63b39ab85bd68f6fb6a011.tar.gz |
Use the coreboot pci config read/write functions instead of direct cf8/cfc
access. The fam10 pci functions will use mmio and do not have SMP pci access
issues.
Signed-off-by: Marc Jones <marcj303@gmail.com>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4633 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge')
-rw-r--r-- | src/northbridge/amd/amdmct/mct/mct_d.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/northbridge/amd/amdmct/mct/mct_d.c b/src/northbridge/amd/amdmct/mct/mct_d.c index 1a10caf..22e9902 100644 --- a/src/northbridge/amd/amdmct/mct/mct_d.c +++ b/src/northbridge/amd/amdmct/mct/mct_d.c @@ -2472,22 +2472,13 @@ static u8 mct_setMode(struct MCTStatStruc *pMCTstat, u32 Get_NB32(u32 dev, u32 reg) { - u32 addr; - - addr = (dev>>4) | (reg & 0xFF) | ((reg & 0xf00)<<16); - outl((1<<31) | (addr & ~3), 0xcf8); - - return inl(0xcfc); + return pci_read_config32(dev, reg); } void Set_NB32(u32 dev, u32 reg, u32 val) { - u32 addr; - - addr = (dev>>4) | (reg & 0xFF) | ((reg & 0xf00)<<16); - outl((1<<31) | (addr & ~3), 0xcf8); - outl(val, 0xcfc); + pci_write_config32(dev, reg, val); } |