summaryrefslogtreecommitdiff
path: root/src/mainboard/google/brya/acpi
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/brya/acpi')
-rw-r--r--src/mainboard/google/brya/acpi/utility.asl20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/mainboard/google/brya/acpi/utility.asl b/src/mainboard/google/brya/acpi/utility.asl
index 4fc03e83e1..1999d33348 100644
--- a/src/mainboard/google/brya/acpi/utility.asl
+++ b/src/mainboard/google/brya/acpi/utility.asl
@@ -8,14 +8,22 @@
*/
Method (GPPL, 3, Serialized)
{
- Local0 = GRXS (Arg0)
- Local7 = Arg2 * 10000
- Local7 = Timer + Local7
- While (Local0 != Arg1 && Timer < Local7)
+ Local0 = 0
+ While (Local0 < Arg2)
{
- Stall (10)
- Local0 = \_SB.PCI0.GRXS (Arg0)
+ If (\_SB.PCI0.GRXS (Arg0) == Arg1) {
+ Return (0)
+ } Else {
+ Local0++
+ }
+ Sleep (1)
}
+
+ If (Local0 == Arg2) {
+ Printf("[ERROR] GPPL for %o timed out", Arg0)
+ }
+
+ Return (0xFF)
}
/* Convert from 32-bit integer to 4-byte buffer (little-endian) */