aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/alderlake/include
diff options
context:
space:
mode:
authorTim Wawrzynczak <twawrzynczak@chromium.org>2021-07-30 10:37:55 -0600
committerTim Wawrzynczak <twawrzynczak@chromium.org>2021-09-10 19:36:07 +0000
commit6cf79d9d14aa6be9bc5594dcf4040da8cbb87544 (patch)
treef8a49e212460652af5ed1aae2e4e13bc86962785 /src/soc/intel/alderlake/include
parent1fc92dee521e2a8169158b7a7a01d954415854a9 (diff)
soc/intel/alderlake: Add get_adl_cpu_type function
This function searches the known MCH device IDs for Alder Lake and returns the appropriate enum value representing ADL-P, ADL-M, ADL-S, or unknown. Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Change-Id: I26354b340e0c5f15ba246c1cb831d7feaf62d2ee Reviewed-on: https://review.coreboot.org/c/coreboot/+/57151 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/soc/intel/alderlake/include')
-rw-r--r--src/soc/intel/alderlake/include/soc/cpu.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/soc/intel/alderlake/include/soc/cpu.h b/src/soc/intel/alderlake/include/soc/cpu.h
index 71c2f47605..b25979d261 100644
--- a/src/soc/intel/alderlake/include/soc/cpu.h
+++ b/src/soc/intel/alderlake/include/soc/cpu.h
@@ -19,4 +19,13 @@
#define C9_POWER 0xc8
#define C10_POWER 0xc8
+enum adl_cpu_type {
+ ADL_UNKNOWN,
+ ADL_M,
+ ADL_P,
+ ADL_S,
+};
+
+enum adl_cpu_type get_adl_cpu_type(void);
+
#endif