per discussion w/AMD, remove all conditionals based on REV_F.
It's all REV_F now and we're wasting time pretending otherwise. This change simplifies the code and will continue to simplify the code. Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://coreboot.org/repository/coreboot-v3@788 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
c407b9e1e0
commit
44d1585458
8 changed files with 16 additions and 142 deletions
|
|
@ -306,60 +306,16 @@
|
|||
#ifndef ASSEMBLY
|
||||
|
||||
/* Steppings of the K8 cpu */
|
||||
enum steppings {
|
||||
A0,
|
||||
A1,
|
||||
A2,
|
||||
B0,
|
||||
C0,
|
||||
CG,
|
||||
enum {
|
||||
A0= 0x0f00,
|
||||
B3= 0x0f41,
|
||||
C0= 0x0f48,
|
||||
CG, /* value not yet known */
|
||||
D0= 0x10f00,
|
||||
E0= 0x20f00,
|
||||
F0= 0x40f00,
|
||||
F2= 0x40f02,
|
||||
};
|
||||
/* cpu version -- no support for f0 yet */
|
||||
static inline int is_cpu_rev_a0(void)
|
||||
{
|
||||
return (cpuid_eax(1) & 0xfffef) == 0x0f00;
|
||||
}
|
||||
static inline int is_cpu_pre_c0(void)
|
||||
{
|
||||
return (cpuid_eax(1) & 0xfffef) < 0x0f48;
|
||||
}
|
||||
|
||||
static inline int is_cpu_c0(void)
|
||||
{
|
||||
return (cpuid_eax(1) & 0xfffef) == 0x0f48;
|
||||
}
|
||||
|
||||
static inline int is_cpu_pre_b3(void)
|
||||
{
|
||||
return (cpuid_eax(1) & 0xfffef) < 0x0f41;
|
||||
}
|
||||
|
||||
static inline int is_cpu_b3(void)
|
||||
{
|
||||
return (cpuid_eax(1) & 0xfffef) == 0x0f41;
|
||||
}
|
||||
//AMD_D0_SUPPORT
|
||||
static inline int is_cpu_pre_d0(void)
|
||||
{
|
||||
return (cpuid_eax(1) & 0xfff0f) < 0x10f00;
|
||||
}
|
||||
|
||||
static inline int is_cpu_d0(void)
|
||||
{
|
||||
return (cpuid_eax(1) & 0xfff0f) == 0x10f00;
|
||||
}
|
||||
|
||||
//AMD_E0_SUPPORT
|
||||
static inline int is_cpu_pre_e0(void)
|
||||
{
|
||||
return (cpuid_eax(1) & 0xfff0f) < 0x20f00;
|
||||
}
|
||||
|
||||
static inline int is_cpu_e0(void)
|
||||
{
|
||||
return (cpuid_eax(1) & 0xfff00) == 0x20f00;
|
||||
}
|
||||
|
||||
|
||||
/* note: we'd like to have this sysinfo common to all K8, there's no need to
|
||||
* have one different kind per different kind of k8 at this point.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue