From bd4a3f8cd9ec4c59ad1d33102958e525a9c8c6ef Mon Sep 17 00:00:00 2001 From: Marshall Dawson Date: Tue, 7 Aug 2018 07:27:57 -0600 Subject: cpu/amd: Correct number of MCA banks cleared Use the value discovered in the MCG_CAP[Count] for the number of MCA status registers to clear. The generations should have the following number of banks: * Family 10h: 6 banks * Family 12h: 6 * Family 14h: 6 * Family 15h: 7 * Family 16h: 6 Change-Id: I0fc6d127a200b10fd484e051d84353cc61b27a41 Signed-off-by: Marshall Dawson Reviewed-on: https://review.coreboot.org/27923 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Martin Roth --- src/northbridge/amd/amdmct/amddefs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/northbridge/amd') diff --git a/src/northbridge/amd/amdmct/amddefs.h b/src/northbridge/amd/amdmct/amddefs.h index 03d9bb3477..977fd9c959 100644 --- a/src/northbridge/amd/amdmct/amddefs.h +++ b/src/northbridge/amd/amdmct/amddefs.h @@ -128,6 +128,7 @@ #define CPUID_MODEL 1 #define MCG_CAP 0x00000179 #define MCG_CTL_P 8 + #define MCA_BANKS_MASK 0xff #define MC0_CTL 0x00000400 #define MC0_STA (MC0_CTL + 1) #define MC4_MISC0 0x00000413 -- cgit v1.2.3