From 64c04e0da9663d12348a4753fe66bd30d1a8aa0c Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Wed, 25 May 2022 01:25:55 +0530 Subject: 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 Change-Id: I39c99ba13ad6e489c300bd0d4ef7274feeca9d4f Reviewed-on: https://review.coreboot.org/c/coreboot/+/64647 Tested-by: build bot (Jenkins) Reviewed-by: Wonkyu Kim Reviewed-by: Arthur Heymans --- src/cpu/x86/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/cpu/x86') 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 -- cgit v1.2.3