Jean Lucas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/82000?usp=email )
Change subject: paylods/edk2: Add Kconfig to use LAPIC timer ......................................................................
paylods/edk2: Add Kconfig to use LAPIC timer
GM45 / Core 2 Duo platforms have issues with HPET. Enable support to use the LAPIC driver so machines actually boot and don't hang. Tested on a Lenovo X200.
Change-Id: I33144d6c1c120e7faa47b99e8262b0997c45c9b9 Signed-off-by: Jean Lucas jean@4ray.co --- M payloads/external/edk2/Kconfig M payloads/external/edk2/Makefile M src/northbridge/intel/gm45/Kconfig 3 files changed, 15 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/00/82000/1
diff --git a/payloads/external/edk2/Kconfig b/payloads/external/edk2/Kconfig index 68eb455..e3e00c0 100644 --- a/payloads/external/edk2/Kconfig +++ b/payloads/external/edk2/Kconfig @@ -308,6 +308,13 @@ 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 driver instead of HPET. It is needed for GM45 + platforms which have issues with the HPET on Intel Core 2 Duo. + config EDK2_CUSTOM_BUILD_PARAMS string "edk2 additional custom build parameters" default "-D VARIABLE_SUPPORT=SMMSTORE" if EDK2_REPO_MRCHROMEBOX && SMMSTORE_V2 diff --git a/payloads/external/edk2/Makefile b/payloads/external/edk2/Makefile index e7f11f0..4cb7f0f 100644 --- a/payloads/external/edk2/Makefile +++ b/payloads/external/edk2/Makefile @@ -141,6 +141,10 @@ ifeq ($(CONFIG_EDK2_PCO_MMIO_EMMC),y) BUILD_STR += -D USE_PCO_MMIO_EMMC=TRUE endif +# TIMER_SUPPORT = HPET +ifeq ($(CONFIG_EDK2_USE_LAPIC_TIMER),y) +BUILD_STR += -D TIMER_SUPPORT=LAPIC +endif
endif
diff --git a/src/northbridge/intel/gm45/Kconfig b/src/northbridge/intel/gm45/Kconfig index 4fe20ee..baeb209 100644 --- a/src/northbridge/intel/gm45/Kconfig +++ b/src/northbridge/intel/gm45/Kconfig @@ -49,4 +49,8 @@ config FIXED_EPBAR_MMIO_BASE default 0xfed19000
+config EDK2_USE_LAPIC_TIMER + bool + default y + endif