diff options
author | Scott Duplichan <scott@notabs.org> | 2011-05-15 21:11:41 +0000 |
---|---|---|
committer | Marc Jones <marc.jones@amd.com> | 2011-05-15 21:11:41 +0000 |
commit | 6719c23a47bf21acf0d1b45c436e16fdfb05eee0 (patch) | |
tree | a183ccc1625ab7367d492396b0bd6b4d7ec32744 | |
parent | b0b4063d6a5a43ffb2d9fc6cb6caadc21c31af3c (diff) |
Size mmconf according to CONFIG_MMCONF_BUS_NUMBER.
Signed-off-by: Scott Duplichan <scott@notabs.org>
Acked-by: Marc Jones <marcj303@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6574 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r-- | src/mainboard/amd/persimmon/agesawrapper.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainboard/amd/persimmon/agesawrapper.c b/src/mainboard/amd/persimmon/agesawrapper.c index e946a3bd0a..4e3819a6c6 100644 --- a/src/mainboard/amd/persimmon/agesawrapper.c +++ b/src/mainboard/amd/persimmon/agesawrapper.c @@ -138,7 +138,8 @@ agesawrapper_amdinitmmio ( Set the MMIO Configuration Base Address and Bus Range onto MMIO configuration base Address MSR register. */ - MsrReg = CONFIG_MMCONF_BASE_ADDRESS | (8 << 2) | 1; + + MsrReg = CONFIG_MMCONF_BASE_ADDRESS | (LibAmdBitScanReverse (CONFIG_MMCONF_BUS_NUMBER) << 2) | 1; LibAmdMsrWrite (0xC0010058, &MsrReg, &StdHeader); /* |