diff options
author | Subrata Banik <subrata.banik@intel.com> | 2021-07-15 15:37:36 +0530 |
---|---|---|
committer | Subrata Banik <subrata.banik@intel.com> | 2021-07-17 09:50:14 +0000 |
commit | f427e8028c1bc90c717661ba6b9ee9dff993d8ae (patch) | |
tree | 39841f1ab74a8aae8465a621130443ed98dba4ad /src/soc/intel/denverton_ns | |
parent | 647a7bb7776c64e63dc3c7d553e733cbdc9f5e1f (diff) |
cpu/intel: Add dedicated file to grow Intel CPUIDs
This patch removes all local `CPUID_` macros from SoC directories and
creates a common cpu_ids.h inside include/cpu/intel/cpu_ids.h. SoC
users are expected to add any new CPUID support into cpu_ids.h and
include 'cpu/intel/cpu_ids.h' into respective files that look for
`CPUID_` macro.
Note: CPUIDs for HSW, BDW and Quark are still inside the respective
directory.
Change-Id: Id88e038c5d8b1ae077c822554582410de6f4a7ca
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56333
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/soc/intel/denverton_ns')
-rw-r--r-- | src/soc/intel/denverton_ns/include/soc/cpu.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/soc/intel/denverton_ns/include/soc/cpu.h b/src/soc/intel/denverton_ns/include/soc/cpu.h index 0f9d3acebc..f4b0d3c42a 100644 --- a/src/soc/intel/denverton_ns/include/soc/cpu.h +++ b/src/soc/intel/denverton_ns/include/soc/cpu.h @@ -3,6 +3,8 @@ #ifndef _CPU_INTEL_DENVERTON_NS_H #define _CPU_INTEL_DENVERTON_NS_H +#include <cpu/intel/cpu_ids.h> + int get_cpu_count(void); #ifndef __ASSEMBLER__ @@ -14,10 +16,6 @@ void denverton_init_cpus(struct device *dev); /* Everything below this line is ignored in the DSDT */ #ifndef __ACPI__ -/* Denverton-NS CPUID */ -#define CPUID_DENVERTON_A0_A1 0x506f0 -#define CPUID_DENVERTON_B0 0x506f1 - #define MSR_CORE_THREAD_COUNT 0x35 #define CORE_BIT_MSK 0x1 #define MCH_BAR_CORE_EXISTS_MASK 0x7164 |