coreboot/src/soc/intel
Sridahr Siricilla cd1cd8d117 soc/intel/alderlake: Add method to determine the cpu type
set_cpu_type(): It determines the CPU type (big or small) that
is executing the function, and marks the global_cpu_type's array slot
which is corresponds to the executing CPU's index if the CPU type is
big core.

get_cpu_index(): It determines the index from LAPIC Ids. This is
required to expose CPPC3 package in ascending order of CPUs' LAPIC ids.
So, the function returns CPU's position from the ascending order list
of LAPIC ids.

TEST=Tested CPU index calculation, core type determination on Brya

Signed-off-by: Sridhar Siricilla <sridhar.siricilla@intel.com>
Change-Id: If4ceb24d9bb1e808750bf618c29b2b9ea6d4191b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/59360
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
2022-01-19 21:01:13 +00:00
..
alderlake soc/intel/common/cpu: Use SoC overrides to get CPU privilege level 2022-01-19 09:57:47 +00:00
apollolake soc/intel/common/cpu: Use SoC overrides to get CPU privilege level 2022-01-19 09:57:47 +00:00
baytrail src: Use 'stdint.h' when appropriate 2022-01-01 14:58:44 +00:00
braswell Rename ECAM-specific MMCONF Kconfigs 2021-11-10 17:24:16 +00:00
broadwell sb/intel: Use bool for PCIe coalescing option 2022-01-04 11:48:19 +00:00
cannonlake soc/intel/common/cpu: Use SoC overrides to get CPU privilege level 2022-01-19 09:57:47 +00:00
common soc/intel/alderlake: Add method to determine the cpu type 2022-01-19 21:01:13 +00:00
denverton_ns soc/intel/common/cpu: Use SoC overrides to get CPU privilege level 2022-01-19 09:57:47 +00:00
elkhartlake soc/intel/common/cpu: Use SoC overrides to get CPU privilege level 2022-01-19 09:57:47 +00:00
icelake soc/intel/common/cpu: Use SoC overrides to get CPU privilege level 2022-01-19 09:57:47 +00:00
jasperlake soc/intel/common/cpu: Use SoC overrides to get CPU privilege level 2022-01-19 09:57:47 +00:00
quark Rename ECAM-specific MMCONF Kconfigs 2021-11-10 17:24:16 +00:00
skylake soc/intel/common/cpu: Use SoC overrides to get CPU privilege level 2022-01-19 09:57:47 +00:00
tigerlake soc/intel/common/cpu: Use SoC overrides to get CPU privilege level 2022-01-19 09:57:47 +00:00
xeon_sp soc/intel/common/cpu: Use SoC overrides to get CPU privilege level 2022-01-19 09:57:47 +00:00
Kconfig
Makefile.inc soc/intel/common/cse: Add support for stitching CSE components 2021-10-19 16:09:08 +00:00