summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include/x86
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2020-10-31 21:57:54 +0100
committerPatrick Georgi <pgeorgi@google.com>2020-11-02 06:24:10 +0000
commit5c9d82bd7337a73f67c7ca83d0d7489e636d1b7b (patch)
treeb045e430f5d9dd9ae52ffe058024d3b9f985a780 /payloads/libpayload/include/x86
parentd0d445564cc8acc328e4761f59618ea917d37c3b (diff)
libpayload/x86: Add enumeration of Intel family 6 models
The list is incomplete and only contains what we need in the follow-up commit. It can be extended at will. Change-Id: Ibf8ddaf510eb513ee74af3e78da46b04802a91b9 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47059 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'payloads/libpayload/include/x86')
-rw-r--r--payloads/libpayload/include/x86/arch/cpuid.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/payloads/libpayload/include/x86/arch/cpuid.h b/payloads/libpayload/include/x86/arch/cpuid.h
index c77be9cff2..ddd606a072 100644
--- a/payloads/libpayload/include/x86/arch/cpuid.h
+++ b/payloads/libpayload/include/x86/arch/cpuid.h
@@ -64,4 +64,20 @@ static inline unsigned int cpuid_model(void)
return (eax & 0xf0000) >> (16 - 4) | (eax & 0xf0) >> 4;
}
+enum intel_fam6_model {
+ NEHALEM = 0x25,
+ SANDYBRIDGE = 0x2a,
+ IVYBRIDGE = 0x3a,
+ HASWELL = 0x3c,
+ BROADWELL_U = 0x3d,
+ HASWELL_U = 0x45,
+ HASWELL_GT3E = 0x46,
+ BROADWELL = 0x47,
+ SKYLAKE_U_Y = 0x4e,
+ APOLLOLAKE = 0x5c,
+ SKYLAKE_S_H = 0x5e,
+ KABYLAKE_U_Y = 0x8e,
+ KABYLAKE_S_H = 0x9e,
+};
+
#endif