From 4ff99a26551d9e18f4c4b43380e12203bdada8a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Fri, 15 Jan 2021 11:48:01 +0200 Subject: [PATCH] sb,soc/intel: Add HPTS() for HPET visibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Based on the detected OS the HPET ACPI device needs to be hidden sometimes. Change-Id: I4c6f87f30ea0de5c073b1fcf57794bb9e19d4d91 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/49483 Reviewed-by: Arthur Heymans Tested-by: build bot (Jenkins) --- src/southbridge/intel/common/acpi/platform.asl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/southbridge/intel/common/acpi/platform.asl b/src/southbridge/intel/common/acpi/platform.asl index 342a4eff94..b5da2b4af4 100644 --- a/src/southbridge/intel/common/acpi/platform.asl +++ b/src/southbridge/intel/common/acpi/platform.asl @@ -76,3 +76,19 @@ Method(GOS, 0) } } } + +/* Arg0 is state of HPET hardware enablement. */ +Method (HPTS, 1) +{ + /* HPET hardware disabled. */ + If (!Arg0) { + Return (0x0) + } + + /* Ancient versions of Windows don't want to see the HPET. */ + If (OSYS < 2001) { + Return (0xb) + } + + Return (0xf) +}