diff options
author | Jean Lucas <jean@4ray.co> | 2024-04-19 10:31:43 -0400 |
---|---|---|
committer | Angel Pons <th3fanbus@gmail.com> | 2024-04-20 18:38:55 +0000 |
commit | 63ca402088883a3b89adea1ccd40045dbd4895c1 (patch) | |
tree | 054517d0db2cb066743d212afd73e4dbf545f5a4 /payloads/external/edk2/Kconfig | |
parent | 8d6625a59575caf2041c74690e817d7db4b629f3 (diff) |
payloads/edk2: Add Kconfig to use LAPIC timer
Core 2 platforms have issues with HPET. Enable support to use the LAPIC
driver so those machines actually boot and don't hang.
The LAPIC is actually closer to the CPU than the HPET (on the PCH),
which reduces access latency, leading to higher resolution of the timer.
Tested on a Lenovo X200 with a Core 2 Duo.
Change-Id: I33144d6c1c120e7faa47b99e8262b0997c45c9b9
Signed-off-by: Jean Lucas <jean@4ray.co>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/82000
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'payloads/external/edk2/Kconfig')
-rw-r--r-- | payloads/external/edk2/Kconfig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/payloads/external/edk2/Kconfig b/payloads/external/edk2/Kconfig index 68eb45523e..57e38b94c1 100644 --- a/payloads/external/edk2/Kconfig +++ b/payloads/external/edk2/Kconfig @@ -308,6 +308,15 @@ config EDK2_PCO_MMIO_EMMC It is needed for AMD Picasso boards with eMMC storage, but will conflict with the PCI-based eMMC driver, so should only be enabled for AMD Picasso boards. +config EDK2_USE_LAPIC_TIMER + bool "Use LAPIC timer instead of HPET" + default n + help + Select this option to use the LAPIC timer instead of HPET in edk2. The LAPIC is closer + to the CPU than the HPET (on the PCH), resulting in lower latency / higher resolution. + This setting is at least needed for platforms with Core 2 processors, which are reported + to have issues with HPET. + config EDK2_CUSTOM_BUILD_PARAMS string "edk2 additional custom build parameters" default "-D VARIABLE_SUPPORT=SMMSTORE" if EDK2_REPO_MRCHROMEBOX && SMMSTORE_V2 |