summaryrefslogtreecommitdiff
path: root/src/soc/intel/alderlake/cpu.c
diff options
context:
space:
mode:
authorTim Crawford <tcrawford@system76.com>2023-07-07 09:59:56 -0600
committerFelix Held <felix-coreboot@felixheld.de>2023-07-14 14:31:24 +0000
commit53c6eea2d42fb4b5f3a6d31bc4bdf538767e815b (patch)
tree34dbd201e87b760a89514e02e63d50bcc1c5bf08 /src/soc/intel/alderlake/cpu.c
parent0bde1829e767f4cc9c0789514d1e243c53f94075 (diff)
soc/intel/adl: Add Raptor Lake-HX definitions
Tested by booting System76 Adder WS 3 (addw3) and Serval WS 13 (serw13) to edk2 payload and then OS. Ref: Intel Raptor Lake EDS, Volume 1 (#640555, rev. 2.8) Change-Id: I6098e9121a3afc4160c8a0c96d597e88095fd65d Signed-off-by: Tim Crawford <tcrawford@system76.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/72926 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src/soc/intel/alderlake/cpu.c')
-rw-r--r--src/soc/intel/alderlake/cpu.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/soc/intel/alderlake/cpu.c b/src/soc/intel/alderlake/cpu.c
index 2f5deea208..fafd54d9f1 100644
--- a/src/soc/intel/alderlake/cpu.c
+++ b/src/soc/intel/alderlake/cpu.c
@@ -242,6 +242,17 @@ enum adl_cpu_type get_adl_cpu_type(void)
PCI_DID_INTEL_ADL_N_ID_4,
};
+ const uint16_t rpl_hx_mch_ids[] = {
+ PCI_DID_INTEL_RPL_HX_ID_1,
+ PCI_DID_INTEL_RPL_HX_ID_2,
+ PCI_DID_INTEL_RPL_HX_ID_3,
+ PCI_DID_INTEL_RPL_HX_ID_4,
+ PCI_DID_INTEL_RPL_HX_ID_5,
+ PCI_DID_INTEL_RPL_HX_ID_6,
+ PCI_DID_INTEL_RPL_HX_ID_7,
+ PCI_DID_INTEL_RPL_HX_ID_8,
+ };
+
const uint16_t rpl_s_mch_ids[] = {
PCI_DID_INTEL_RPL_S_ID_1,
PCI_DID_INTEL_RPL_S_ID_2,
@@ -287,6 +298,11 @@ enum adl_cpu_type get_adl_cpu_type(void)
return ADL_N;
}
+ for (size_t i = 0; i < ARRAY_SIZE(rpl_hx_mch_ids); i++) {
+ if (rpl_hx_mch_ids[i] == mchid)
+ return RPL_HX;
+ }
+
for (size_t i = 0; i < ARRAY_SIZE(rpl_p_mch_ids); i++) {
if (rpl_p_mch_ids[i] == mchid)
return RPL_P;
@@ -306,6 +322,7 @@ uint8_t get_supported_lpm_mask(void)
return LPM_S0i2_0 | LPM_S0i3_0;
case ADL_S:
case RPL_S:
+ case RPL_HX:
return LPM_S0i2_0 | LPM_S0i2_1;
default:
printk(BIOS_ERR, "Unknown ADL CPU type: %d\n", type);