summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/brya/variants/agah/gpio.c
diff options
context:
space:
mode:
authorTim Wawrzynczak <twawrzynczak@chromium.org>2022-02-17 11:42:34 -0700
committerTim Wawrzynczak <twawrzynczak@chromium.org>2022-05-05 14:45:51 +0000
commitf9734fc1420a7f3fc7adde26415dfb692e15c314 (patch)
tree4bfc351f939e0f78d3766086a811ea0621d3915e /src/mainboard/google/brya/variants/agah/gpio.c
parent45789141538030777f302a9c141e9d1a4c9fbd3b (diff)
downloadcoreboot-f9734fc1420a7f3fc7adde26415dfb692e15c314.tar.gz
coreboot-f9734fc1420a7f3fc7adde26415dfb692e15c314.tar.bz2
coreboot-f9734fc1420a7f3fc7adde26415dfb692e15c314.zip
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>
Diffstat (limited to 'src/mainboard/google/brya/variants/agah/gpio.c')
-rw-r--r--src/mainboard/google/brya/variants/agah/gpio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/google/brya/variants/agah/gpio.c b/src/mainboard/google/brya/variants/agah/gpio.c
index 81c9724d5ac1..369e373808e1 100644
--- a/src/mainboard/google/brya/variants/agah/gpio.c
+++ b/src/mainboard/google/brya/variants/agah/gpio.c
@@ -75,8 +75,8 @@ static const struct pad_config override_gpio_table[] = {
/* D16 : ISH_UART0_CTS# ==> NC */
PAD_NC_LOCK(GPP_D16, NONE, LOCK_CONFIG),
- /* E0 : SATAXPCIE0 ==> EN_PPVAR_GPU_NVVDD_X_OD */
- PAD_CFG_GPO(GPP_E0, 0, DEEP),
+ /* E0 : SATAXPCIE0 ==> EN_PPVAR_GPU_NVVDD_X_ODL */
+ PAD_CFG_GPO(GPP_E0, 1, DEEP),
/* E3 : PROC_GP0 ==> NC */
PAD_NC(GPP_E3, NONE),
/* E4 : SATA_DEVSLP0 ==> PG_PPVAR_GPU_FBVDDQ_X_OD */