summaryrefslogtreecommitdiff
path: root/src/cpu/x86
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2022-05-25 01:25:55 +0530
committerMartin L Roth <gaumless@tutanota.com>2022-05-29 14:54:00 +0000
commit64c04e0da9663d12348a4753fe66bd30d1a8aa0c (patch)
treef4c42a2197715b27a74407c44445e6f04767d746 /src/cpu/x86
parent5ca882fa9085c997831c9e9d3f1a33256e400bc8 (diff)
cpu/x86: Allow SoC to select the LAPIC access mode
Intel Meteor Lake SoC expects to select x2APIC for accessing LAPIC hence, this patch provides an option where SoC code choose the correct LAPIC access mode using choice selection. Signed-off-by: Subrata Banik <subratabanik@google.com> Change-Id: I39c99ba13ad6e489c300bd0d4ef7274feeca9d4f Reviewed-on: https://review.coreboot.org/c/coreboot/+/64647 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Wonkyu Kim <wonkyu.kim@intel.com> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/cpu/x86')
-rw-r--r--src/cpu/x86/Kconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cpu/x86/Kconfig b/src/cpu/x86/Kconfig
index f34a2626f8..5b9279511d 100644
--- a/src/cpu/x86/Kconfig
+++ b/src/cpu/x86/Kconfig
@@ -21,8 +21,20 @@ config PARALLEL_MP_AP_WORK
config LEGACY_SMP_INIT
bool
+config DEFAULT_X2APIC
+ def_bool n
+ help
+ Allow SoC code to set LAPIC_ACCESS_MODE to X2APIC.
+
+config DEFAULT_X2APIC_RUNTIME
+ def_bool n
+ help
+ Allow SoC code to set LAPIC_ACCESS_MODE to X2APIC_RUNTIME.
+
choice LAPIC_ACCESS_MODE
prompt "APIC operation mode"
+ default X2APIC_ONLY if DEFAULT_X2APIC
+ default X2APIC_RUNTIME if DEFAULT_X2APIC_RUNTIME
default XAPIC_ONLY
config XAPIC_ONLY