diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2021-01-15 11:48:01 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2021-02-13 06:27:21 +0000 |
commit | 4ff99a26551d9e18f4c4b43380e12203bdada8a1 (patch) | |
tree | 41b08fe56e03e449cf89ee0a93975c98afbf060c /src/southbridge/intel/common/acpi | |
parent | a39c5772572dff6f324ef5437d36223afa0f7f69 (diff) |
sb,soc/intel: Add HPTS() for HPET visibility
Based on the detected OS the HPET ACPI device needs to
be hidden sometimes.
Change-Id: I4c6f87f30ea0de5c073b1fcf57794bb9e19d4d91
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49483
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/southbridge/intel/common/acpi')
-rw-r--r-- | src/southbridge/intel/common/acpi/platform.asl | 16 |
1 files changed, 16 insertions, 0 deletions
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) +} |