mb/google/brya/var/agah: Update PEXVDD enable GPIO for next board rev
commit25cc4a210dbfd82e8e25b97859f09b301213b6b2
authorTim Wawrzynczak <twawrzynczak@chromium.org>
Wed, 21 Sep 2022 18:54:03 +0000 (21 12:54 -0600)
committerFelix Held <felix-coreboot@felixheld.de>
Mon, 26 Sep 2022 14:21:18 +0000 (26 14:21 +0000)
tree2b2535f21508a0f46d6bf46eb86b5033eef8d87b
parente7b54bfc36fdb3c9d74d0718e47dd656ab0f22f0
mb/google/brya/var/agah: Update PEXVDD enable GPIO for next board rev

The next rev of this board will move the dGPU PEXVDD enable pin from
GPP_E10 to GPP_F12. This patch handles both the old and newer revisions
by using an ACPI Name to hold the GPIO # for PEXVDD enable. It also
cleans up the GPIO handling a little bit between board revs.

BUG=b:242752623
TEST=dGPU is functional and power sequencing tests still pass on board
rev 2

Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Change-Id: Icc7968777f86ab07561b0a861b7d22ec714d1c34
Reviewed-on: https://review.coreboot.org/c/coreboot/+/67765
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tarun Tuli <taruntuli@google.com>
src/mainboard/google/brya/acpi/power.asl
src/mainboard/google/brya/variants/agah/gpio.c
src/mainboard/google/brya/variants/agah/variant.c