mb/google/brya/acpi: Update GPIO polling method
commit7c97e1255c9cdff4f0cf64f5215b4fe2dfa4b37e
authorTim Wawrzynczak <twawrzynczak@chromium.org>
Tue, 28 Jun 2022 18:06:22 +0000 (28 12:06 -0600)
committerTim Wawrzynczak <twawrzynczak@chromium.org>
Wed, 13 Jul 2022 16:08:56 +0000 (13 16:08 +0000)
tree805ebac8f8a63e955c24ac5664586fe48a955ffc
parent58f80bac479d5d34c1b4f7f15b8ebf4e6996b3bb
mb/google/brya/acpi: Update GPIO polling method

The preferred way of polling in ACPI I've seen is usually to just
divide the sleep into N chunks, and ignore the time taken in between.
This works in practice (validated with Timer calls before and after).

Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Change-Id: I4a2cd82cea05c539eff30b9b9d6ef18550d17686
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65484
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Robert Zieba <robertzieba@google.com>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
src/mainboard/google/brya/acpi/utility.asl