From d8210d6ee12aa07e6a04bc861a56a9d099180226 Mon Sep 17 00:00:00 2001 From: Tim Van Patten Date: Thu, 15 Sep 2022 17:21:38 -0600 Subject: [PATCH] amd/mendocino/acpi/soc: Add DPTC Support Add support for DPTC by calling SB.DPTC() as part of PNOT(). BRANCH=none BUG=b:217911928 TEST=Boot skyrim Signed-off-by: Tim Van Patten Change-Id: Ifc332bfc4d273031c93b77673224b4f3c2871fb1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/67694 Reviewed-by: Raul Rangel Tested-by: build bot (Jenkins) --- src/soc/amd/mendocino/acpi/soc.asl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/soc/amd/mendocino/acpi/soc.asl b/src/soc/amd/mendocino/acpi/soc.asl index 91b1444c1d..5af6d8c533 100644 --- a/src/soc/amd/mendocino/acpi/soc.asl +++ b/src/soc/amd/mendocino/acpi/soc.asl @@ -35,6 +35,9 @@ Scope(\_SB) { #include "rtc_workaround.asl" +/* Enable DPTC interface with AMD ALIB */ +External(\_SB.DPTC, MethodObj) + /* * Platform Notify * @@ -44,4 +47,8 @@ Method (PNOT) { /* Report AC/DC state to ALIB using WAL1() */ \WAL1 () + + If (CondRefOf (\_SB.DPTC)) { + \_SB.DPTC() + } }