From ab496bf1770b4b2a1b0f6a99e14e736c43190b44 Mon Sep 17 00:00:00 2001
From: Musse Abdullahi <musse.abdullahi@intel.com>
Date: Mon, 10 Apr 2023 18:07:14 -0700
Subject: soc/intel/meteorlake: Add B0 stepping CPU ID

This patch adds CPU ID for B0 stepping (aka ES2).
DOC=#723567
TEST=Able to boot on B0 rvp and get correct CPU Name in coreboot log.

Signed-off-by: Musse Abdullahi <musse.abdullahi@intel.com>
Change-Id: I8b939ccc8b05e3648c55f8f2a0a391cb08f04184
Signed-off-by: Musse Abdullahi <musse.abdullahi@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74300
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
---
 src/include/cpu/intel/cpu_ids.h                      | 1 +
 src/soc/intel/common/block/cpu/mp_init.c             | 1 +
 src/soc/intel/meteorlake/bootblock/report_platform.c | 1 +
 3 files changed, 3 insertions(+)

diff --git a/src/include/cpu/intel/cpu_ids.h b/src/include/cpu/intel/cpu_ids.h
index 7caafd5886..2d64c5f271 100644
--- a/src/include/cpu/intel/cpu_ids.h
+++ b/src/include/cpu/intel/cpu_ids.h
@@ -71,6 +71,7 @@
 #define CPUID_ALDERLAKE_N_A0		0xb06e0
 #define CPUID_METEORLAKE_A0_1		0xa06a0
 #define CPUID_METEORLAKE_A0_2		0xa06a1
+#define CPUID_METEORLAKE_B0		0xa06a2
 #define CPUID_RAPTORLAKE_P_J0		0xb06a2
 #define CPUID_RAPTORLAKE_P_Q0		0xb06a3
 
diff --git a/src/soc/intel/common/block/cpu/mp_init.c b/src/soc/intel/common/block/cpu/mp_init.c
index 66890476a9..7466ff6851 100644
--- a/src/soc/intel/common/block/cpu/mp_init.c
+++ b/src/soc/intel/common/block/cpu/mp_init.c
@@ -34,6 +34,7 @@ static struct device_operations cpu_dev_ops = {
 static const struct cpu_device_id cpu_table[] = {
 	{ X86_VENDOR_INTEL, CPUID_METEORLAKE_A0_1, CPUID_EXACT_MATCH_MASK },
 	{ X86_VENDOR_INTEL, CPUID_METEORLAKE_A0_2, CPUID_EXACT_MATCH_MASK },
+	{ X86_VENDOR_INTEL, CPUID_METEORLAKE_B0, CPUID_EXACT_MATCH_MASK },
 	{ X86_VENDOR_INTEL, CPUID_SKYLAKE_C0, CPUID_EXACT_MATCH_MASK },
 	{ X86_VENDOR_INTEL, CPUID_SKYLAKE_D0, CPUID_EXACT_MATCH_MASK },
 	{ X86_VENDOR_INTEL, CPUID_SKYLAKE_HQ0, CPUID_EXACT_MATCH_MASK },
diff --git a/src/soc/intel/meteorlake/bootblock/report_platform.c b/src/soc/intel/meteorlake/bootblock/report_platform.c
index a5d32f356e..3e8bc561c1 100644
--- a/src/soc/intel/meteorlake/bootblock/report_platform.c
+++ b/src/soc/intel/meteorlake/bootblock/report_platform.c
@@ -19,6 +19,7 @@ static struct {
 } cpu_table[] = {
 	{ CPUID_METEORLAKE_A0_1, "MeteorLake A0" },
 	{ CPUID_METEORLAKE_A0_2, "MeteorLake A0" },
+	{ CPUID_METEORLAKE_B0,   "MeteorLake B0" },
 };
 
 static struct {
-- 
cgit v1.2.3