summaryrefslogtreecommitdiff
path: root/src/cpu/x86/Kconfig
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2022-07-12 11:06:15 +0000
committerFelix Held <felix-coreboot@felixheld.de>2022-07-18 15:41:12 +0000
commit55d300c11b87334615a81309158c696822c17453 (patch)
tree8cb80d4bd6feb0ee841dfd0b5d074b7052faddcf /src/cpu/x86/Kconfig
parent2125a17c6a749651945a52ff39cbc8e81c3dcbd8 (diff)
cpu/x86: Allow SoC to select the `X2APIC_LATE_WORKAROUND`
Intel Meteor Lake SoC expects to select late x2APIC enablement where AP bring up will use xAPIC and later x2APIC gets enabled using CPU init. This patch provides an option where SoC code choose the correct LAPIC access mode using choice selection. BUG=b:219061518, b:219053812 TEST=Able to build Google/Rex. Signed-off-by: Subrata Banik <subratabanik@google.com> Change-Id: I6b50a0f5e39a95c25cd2c72219d2b402550a6fad Reviewed-on: https://review.coreboot.org/c/coreboot/+/65786 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/cpu/x86/Kconfig')
-rw-r--r--src/cpu/x86/Kconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cpu/x86/Kconfig b/src/cpu/x86/Kconfig
index 1617ad6953..80b9a44c99 100644
--- a/src/cpu/x86/Kconfig
+++ b/src/cpu/x86/Kconfig
@@ -31,10 +31,16 @@ config DEFAULT_X2APIC_RUNTIME
help
Allow SoC code to set LAPIC_ACCESS_MODE to X2APIC_RUNTIME.
+config DEFAULT_X2APIC_LATE_WORKAROUND
+ def_bool n
+ help
+ Allow SoC code to set LAPIC_ACCESS_MODE to X2APIC_LATE_WORKAROUND.
+
choice LAPIC_ACCESS_MODE
prompt "APIC operation mode"
default X2APIC_ONLY if DEFAULT_X2APIC
default X2APIC_RUNTIME if DEFAULT_X2APIC_RUNTIME
+ default X2APIC_LATE_WORKAROUND if DEFAULT_X2APIC_LATE_WORKAROUND
default XAPIC_ONLY
config XAPIC_ONLY