mb/google/brya/var/agah: Add GPU power sequencing
commitf9734fc1420a7f3fc7adde26415dfb692e15c314
authorTim Wawrzynczak <twawrzynczak@chromium.org>
Thu, 17 Feb 2022 18:42:34 +0000 (17 11:42 -0700)
committerTim Wawrzynczak <twawrzynczak@chromium.org>
Thu, 5 May 2022 14:45:51 +0000 (5 14:45 +0000)
tree4bfc351f939e0f78d3766086a811ea0621d3915e
parent45789141538030777f302a9c141e9d1a4c9fbd3b
mb/google/brya/var/agah: Add GPU power sequencing

This patch adds support for power sequencing of the Nvidia GN3050 for
agah, which uses PCH GPIOs to control the 5 power rails required for
the GPU. The GPU is power sequenced on during mainboard
initialization, then it is enumerated on the PCI bus and its resources
are assigned. This GPU will be used in a sort of "hybrid graphics"
mode, therefore during finalization, since its PCI BARs are saved into
ACPI memory and the GPU is not required upon initial boot, the GPU is
power sequenced off.

Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Change-Id: I1072be12ef58af5859e2a2d19c4a9c1adc0b0f88
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62384
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
src/mainboard/google/brya/variants/agah/Makefile.inc
src/mainboard/google/brya/variants/agah/gpio.c
src/mainboard/google/brya/variants/agah/overridetree.cb
src/mainboard/google/brya/variants/agah/variant.c [new file with mode: 0644]