diff options
author | Matt DeVillier <matt.devillier@gmail.com> | 2023-01-29 15:36:45 -0600 |
---|---|---|
committer | Paul Fagerburg <pfagerburg@chromium.org> | 2023-02-01 14:59:44 +0000 |
commit | 985acc218bf9e3f5ed6a386cf43feecd432365fb (patch) | |
tree | 8d87a5b0941841a6da4570eaeb2e68c49bd6a29b /src | |
parent | 3fe067f650c479585126e28b45c69fca383aa304 (diff) |
ec/google/wilco/acpi: Add DPTF RCDP() method
The Windows DPTF drivers expect this method, and if not present appear
to hang. Adding this method fixes DPTF under Windows on drallion.
Modeled after existing method used by chrome-ec.
TEST=build/boot Win11 on google/drallion, verify DPTF functional.
Change-Id: I6570345379da413273251ecf5209c4997aac9b11
Original-patch-by: Coolstar <coolstarorganization@gmail.com>
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72578
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Reviewed-by: Caveh Jalali <caveh@chromium.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/ec/google/wilco/acpi/dptf.asl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ec/google/wilco/acpi/dptf.asl b/src/ec/google/wilco/acpi/dptf.asl index 6de72e817d..1b2bf80c2e 100644 --- a/src/ec/google/wilco/acpi/dptf.asl +++ b/src/ec/google/wilco/acpi/dptf.asl @@ -116,3 +116,18 @@ Method (PATX, 0, Serialized) /* Clear sensor events */ W (DWTQ, Local0) } + +#ifdef EC_ENABLE_MULTIPLE_DPTF_PROFILES +/* + * Read current Device DPTF Profile Number + */ +Method (RCDP, 0, NotSerialized) +{ + Local0 = R(DRTI) + If (Local0 == 0) { + Return (R(OTBL)) + } else { + Return (Local0 - 1) + } +} +#endif |