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:
parent
5ca882fa90
commit
64c04e0da9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue