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>
This commit is contained in:
Kyösti Mälkki 2021-01-15 11:48:01 +02:00
parent a39c577257
commit 4ff99a2655
1 changed files with 16 additions and 0 deletions

View File

@ -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)
}