Port persimmon r6574 to e350m1: MMCONF size
authorMarshall Buschman <mbuschman@lucidmachines.com>
Sat, 4 Jun 2011 15:43:56 +0000 (15:43 +0000)
committerPeter Stuge <peter@stuge.se>
Sat, 4 Jun 2011 15:43:56 +0000 (15:43 +0000)
Size mmconf according to CONFIG_MMCONF_BUS_NUMBER.

Signed-off-by: Marshall Buschman <mbuschman@lucidmachines.com>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6623 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/mainboard/asrock/e350m1/agesawrapper.c

index e946a3bd0a3531c44d0c992810b5f3b03565ced9..4e3819a6c6eeaf6a21d942c971c4318dd4ad65d0 100644 (file)
@@ -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);
   
   /*