Skip to content

Commit

Permalink
Add CPU_MODEL_ALDERLAKE_ULT & CPU_MODEL_RAPTORLAKE_B
Browse files Browse the repository at this point in the history
  • Loading branch information
jief666 committed Jan 2, 2024
1 parent d4c41a0 commit faf88fc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Include/Intel/IndustryStandard/ProcessorInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,15 @@ typedef enum {
#define CPU_MODEL_COMETLAKE_S 0xA5 /* desktop CometLake */
#define CPU_MODEL_COMETLAKE_Y 0xA5 /* aka 10th generation Amber Lake Y */
#define CPU_MODEL_COMETLAKE_U 0xA6
#define CPU_MODEL_ROCKETLAKE_S 0xA7/* desktop RocketLake */
#define CPU_MODEL_ROCKETLAKE_S 0xA7/* 11h desktop RocketLake */
#define CPU_MODEL_TIGERLAKE_U 0x8C
#define CPU_MODEL_ALDERLAKE_S 0x97
//from Clover
#define CPU_MODEL_ALDERLAKE_ULT 0x9A /* 12h generation Alder Lake, i5-12500h */
#define CPU_MODEL_RAPTORLAKE 0xB7 /* 13h Raptor Lake */
#define CPU_MODEL_METEORLAKE 0xAA
#define CPU_MODEL_RAPTORLAKE_B 0xBF /* 13h Raptor Lake, i5-13400h */
#define CPU_MODEL_METEORLAKE 0xAA /* 14h Meteor Lake */


#define AMD_CPU_FAMILY 0xF
#define AMD_CPU_EXT_FAMILY_15H 0x6
Expand Down
2 changes: 2 additions & 0 deletions Library/OcCpuLib/AppleCpuSupport.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,8 @@ InternalDetectAppleProcessorType (
case CPU_MODEL_ICELAKE_SP: // 0x9F FIXME - unknown, for now
case CPU_MODEL_TIGERLAKE_U: // 0x8C FIXME - unknown, for now
case CPU_MODEL_ALDERLAKE_S: // 0x97 FIXME - unknown, for now
case CPU_MODEL_ALDERLAKE_ULT:
case CPU_MODEL_RAPTORLAKE_B:
case CPU_MODEL_RAPTORLAKE:
case CPU_MODEL_METEORLAKE:
if (AppleMajorType == AppleProcessorMajorM3) {
Expand Down
3 changes: 3 additions & 0 deletions Library/OcCpuLib/OcCpuLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1447,6 +1447,9 @@ InternalDetectIntelProcessorGeneration (
case CPU_MODEL_ALDERLAKE_S:
case CPU_MODEL_RAPTORLAKE:
case CPU_MODEL_METEORLAKE:
case CPU_MODEL_ALDERLAKE_ULT:
case CPU_MODEL_RAPTORLAKE_B:

CpuGeneration = OcCpuGenerationAlderLake;
break;
default:
Expand Down

0 comments on commit faf88fc

Please sign in to comment.