summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/google/brya/acpi/nvjt.asl2
-rw-r--r--src/mainboard/google/brya/acpi/nvop.asl2
-rw-r--r--src/mainboard/google/brya/acpi/power.asl17
3 files changed, 9 insertions, 12 deletions
diff --git a/src/mainboard/google/brya/acpi/nvjt.asl b/src/mainboard/google/brya/acpi/nvjt.asl
index 64de3a7396..17011ec2dd 100644
--- a/src/mainboard/google/brya/acpi/nvjt.asl
+++ b/src/mainboard/google/brya/acpi/nvjt.asl
@@ -69,7 +69,7 @@ Method (NVJT, 2, Serialized)
/* Get GCU GCx Sleep Status */
Case (NVJT_GPC_GSS)
{
- If (^_STA () != 0)
+ If (PSTA () != 0)
{
CGPS = 1
CGCS = 1
diff --git a/src/mainboard/google/brya/acpi/nvop.asl b/src/mainboard/google/brya/acpi/nvop.asl
index 2cf84c697d..ecf962e180 100644
--- a/src/mainboard/google/brya/acpi/nvop.asl
+++ b/src/mainboard/google/brya/acpi/nvop.asl
@@ -36,7 +36,7 @@ Method (NVOP, 2, Serialized)
}
/* Current GPU Control Status */
- If (\_SB.PCI0.PEG0.PGPR._STA == 1)
+ If (PSTA () == 1)
{
Local0 = 3
}
diff --git a/src/mainboard/google/brya/acpi/power.asl b/src/mainboard/google/brya/acpi/power.asl
index fa5429d7bc..2654394389 100644
--- a/src/mainboard/google/brya/acpi/power.asl
+++ b/src/mainboard/google/brya/acpi/power.asl
@@ -405,23 +405,20 @@ Method (_PS3, 0, NotSerialized)
}
}
-/*
- * Normally, _ON and _OFF of the power resources listed in _PRx will be
- * evaluated before entering D0/D3. However, for Optimus, the package
- * should refer to the PCIe controller itself, not a dependent device.
- */
-Name (_PR0, Package() { \_SB.PCI0.PEG0 })
-Name (_PR3, Package() { \_SB.PCI0.PEG0 })
-
-Method (_STA, 0, Serialized)
+Method (PSTA, 0, Serialized)
{
If (GC6E == GC6_STATE_EXITED &&
\_SB.PCI0.GTXS(GPIO_GPU_ALLRAILS_PG) == 1)
{
- Return (0xF)
+ Return (1)
}
Else
{
Return (0)
}
}
+
+Method (_STA, 0, Serialized)
+{
+ Return (0xF)
+}