summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2021-01-15 11:49:42 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2021-02-13 06:28:32 +0000
commit4797bb9be0bb1059989bb456f33b163ac1e24c04 (patch)
tree2cc8e9d8c5dc8440d23cf4947c7c004df5b3dca5 /src
parent9a056000042bda32b7b4f5d21d26f80b39c501a9 (diff)
intel/broadwell,lynxpoint: Use HPTS() for HPET visibility
Platforms do not initialise OSYS so HPET is always hidden. Change-Id: I5f030b156355ea407d37cdb2eda8a3161085436f Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49485 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/broadwell/pch/acpi/lpc.asl12
-rw-r--r--src/southbridge/intel/lynxpoint/acpi/lpc.asl12
2 files changed, 2 insertions, 22 deletions
diff --git a/src/soc/intel/broadwell/pch/acpi/lpc.asl b/src/soc/intel/broadwell/pch/acpi/lpc.asl
index ae54ce3c23..e37c6d0682 100644
--- a/src/soc/intel/broadwell/pch/acpi/lpc.asl
+++ b/src/soc/intel/broadwell/pch/acpi/lpc.asl
@@ -69,17 +69,7 @@ Device (LPCB)
Method (_STA, 0) // Device Status
{
- If (HPTE) {
- // Note: Ancient versions of Windows don't want
- // to see the HPET in order to work right
- If (OSYS >= 2001) {
- Return (0xf) // Enable and show device
- } Else {
- Return (0xb) // Enable and don't show device
- }
- }
-
- Return (0x0) // Not enabled, don't show.
+ Return (\HPTS(HPTE))
}
Method (_CRS, 0, Serialized) // Current resources
diff --git a/src/southbridge/intel/lynxpoint/acpi/lpc.asl b/src/southbridge/intel/lynxpoint/acpi/lpc.asl
index 2e230ea47d..51d777ee41 100644
--- a/src/southbridge/intel/lynxpoint/acpi/lpc.asl
+++ b/src/southbridge/intel/lynxpoint/acpi/lpc.asl
@@ -71,17 +71,7 @@ Device (LPCB)
Method (_STA, 0) // Device Status
{
- If (HPTE) {
- // Note: Ancient versions of Windows don't want
- // to see the HPET in order to work right
- If (OSYS >= 2001) {
- Return (0xf) // Enable and show device
- } Else {
- Return (0xb) // Enable and don't show device
- }
- }
-
- Return (0x0) // Not enabled, don't show.
+ Return (\HPTS(HPTE))
}
Method (_CRS, 0, Serialized) // Current resources