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>
This commit is contained in:
Subrata Banik 2022-05-25 01:25:55 +05:30 committed by Martin L Roth
parent 5ca882fa90
commit 64c04e0da9
1 changed files with 12 additions and 0 deletions

View File

@ -21,8 +21,20 @@ config PARALLEL_MP_AP_WORK
config LEGACY_SMP_INIT config LEGACY_SMP_INIT
bool 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 choice LAPIC_ACCESS_MODE
prompt "APIC operation mode" prompt "APIC operation mode"
default X2APIC_ONLY if DEFAULT_X2APIC
default X2APIC_RUNTIME if DEFAULT_X2APIC_RUNTIME
default XAPIC_ONLY default XAPIC_ONLY
config XAPIC_ONLY config XAPIC_ONLY