mb/google/brya/acpi/peg: Fix Power Resource _ON and _OFF

The _ON and _OFF methods for the root port's power resource were
calling the _ON and _OFF in the PEGP namespace, which was the
incorrect method, it should have been NPON/NPOF, so this patch
updates that.

BUG=b:236676400

Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Change-Id: Ia3653996329473f133e3f0d53306882dc3213b6b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65487
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Reviewed-by: Ivy Jian <ivy.jian@quanta.corp-partner.google.com>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Tim Wawrzynczak 2022-06-28 12:12:48 -06:00
parent 5fefcd59a8
commit ef886f3034
1 changed files with 4 additions and 5 deletions

View File

@ -1,8 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
External (\_SB.PCI0.DGPU, DeviceObj)
External (\_SB.PCI0.PEG0.PEGP._OFF, MethodObj)
External (\_SB.PCI0.PEG0.PEGP._ON, MethodObj)
External (\_SB.PCI0.PEG0.PEGP.NPON, MethodObj)
External (\_SB.PCI0.PEG0.PEGP.NPOF, MethodObj)
OperationRegion (PCIC, PCI_Config, 0x00, 0x100)
Field (PCIC, AnyAcc, NoLock, Preserve)
@ -78,14 +77,14 @@ PowerResource (PGPR, 0, 0)
Method (_ON, 0, Serialized)
{
/* Power up GPU from GCOFF (or GC6 exit if deferred) */
\_SB.PCI0.PEG0.PEGP._ON ()
\_SB.PCI0.PEG0.PEGP.NPON ()
_STA = 1
}
Method (_OFF, 0, Serialized)
{
/* Power down GPU to GCOFF (or GC6 entry if deferred) */
_STA = 0
\_SB.PCI0.PEG0.PEGP._OFF ()
\_SB.PCI0.PEG0.PEGP.NPOF ()
}
Name (_STA, 0)
}