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>
This commit is contained in:
Jean Lucas
2024-04-19 10:31:43 -04:00
committed by Angel Pons
parent 8d6625a595
commit 63ca402088
5 changed files with 16 additions and 0 deletions

View File

@@ -11,3 +11,4 @@ config CPU_INTEL_MODEL_1067X
select CPU_INTEL_COMMON
select CPU_INTEL_COMMON_TIMEBASE
select SETUP_XIP_CACHE
select EDK2_USE_LAPIC_TIMER if PAYLOAD_EDK2

View File

@@ -12,3 +12,4 @@ config CPU_INTEL_MODEL_6FX
select CPU_INTEL_COMMON
select CPU_INTEL_COMMON_TIMEBASE
select SETUP_XIP_CACHE
select EDK2_USE_LAPIC_TIMER if PAYLOAD_EDK2