summaryrefslogtreecommitdiff
path: root/src/northbridge/amd
diff options
context:
space:
mode:
authorJason Schildt <jschildt@gmail.com>2005-10-25 21:34:06 +0000
committerJason Schildt <jschildt@gmail.com>2005-10-25 21:34:06 +0000
commit74cf993a54fd2d9a5730f415a60bdee0117028f2 (patch)
treed6de4fe3c4b43a1caa5e8dfe27e0ec0f5076af37 /src/northbridge/amd
parenta922bac99c185008a4008c2373093096dd4b776d (diff)
- See Issue Tracker id-10 "lnxi-patch-10".
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2074 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge/amd')
-rw-r--r--src/northbridge/amd/amdk8/cpu_rev.c33
1 files changed, 6 insertions, 27 deletions
diff --git a/src/northbridge/amd/amdk8/cpu_rev.c b/src/northbridge/amd/amdk8/cpu_rev.c
index 1eb47f85f5..c76efa2f39 100644
--- a/src/northbridge/amd/amdk8/cpu_rev.c
+++ b/src/northbridge/amd/amdk8/cpu_rev.c
@@ -3,26 +3,10 @@ static int is_cpu_rev_a0(void)
{
return (cpuid_eax(1) & 0xfffef) == 0x0f00;
}
-//AMD_D0_SUPPORT
-static int is_cpu_pre_d0(void)
-{
- return (cpuid_eax(1) & 0xfff0f) < 0x10f00;
-}
-
-static int is_cpu_d0(void)
-{
- return (cpuid_eax(1) & 0xfff0f) == 0x10f00;
-}
-
-//AMD_E0_SUPPORT
-static int is_cpu_pre_e0(void)
-{
- return (cpuid_eax(1) & 0xfff0f) < 0x20f00;
-}
-static int is_cpu_e0(void)
+static int is_cpu_pre_b3(void)
{
- return (cpuid_eax(1) & 0xfff00) == 0x20f00;
+ return (cpuid_eax(1) & 0xfffef) < 0x0f41;
}
static int is_cpu_pre_c0(void)
@@ -30,17 +14,12 @@ static int is_cpu_pre_c0(void)
return (cpuid_eax(1) & 0xfffef) < 0x0f48;
}
-static int is_cpu_c0(void)
-{
- return (cpuid_eax(1) & 0xfffef) == 0x0f48;
-}
-
-static int is_cpu_pre_b3(void)
+static int is_cpu_pre_d0(void)
{
- return (cpuid_eax(1) & 0xfffef) < 0x0f41;
+ return (cpuid_eax(1) & 0xfff0f) < 0x10000;
}
-static int is_cpu_b3(void)
+static int is_cpu_pre_e0(void)
{
- return (cpuid_eax(1) & 0xfffef) == 0x0f41;
+ return (cpuid_eax(1) & 0xfff0f) < 0x20f00;
}