summaryrefslogtreecommitdiff
path: root/src/mainboard/google/mancomb/bootblock.c
diff options
context:
space:
mode:
authorEric Lai <ericr_lai@compal.corp-partner.google.com>2021-03-15 15:52:03 +0800
committerPatrick Georgi <pgeorgi@google.com>2021-03-18 08:17:11 +0000
commitd807c806b39d26c24d51ae7542b6f9785070eb2c (patch)
treeb7d9aebc0a98d4c1c15321afac185a931f413a81 /src/mainboard/google/mancomb/bootblock.c
parenta906918ae01ba1cb2fd876ef89e94a9b4fa9d6ec (diff)
mb/google/mancomb: Configure early GPIOs in earliest stage
Configure early GPIOs in verstage if it is run in PSP otherwise configure them in bootblock. BUG=b:182211161 TEST=builds Signed-off-by: Eric Lai <ericr_lai@compal.corp-partner.google.com> Change-Id: Ic1faeea59462319c1652c69034b4dde01669e13b Reviewed-on: https://review.coreboot.org/c/coreboot/+/51493 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Mathew King <mathewk@chromium.org>
Diffstat (limited to 'src/mainboard/google/mancomb/bootblock.c')
-rw-r--r--src/mainboard/google/mancomb/bootblock.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mainboard/google/mancomb/bootblock.c b/src/mainboard/google/mancomb/bootblock.c
index b57ab3c5bb..11391efd1e 100644
--- a/src/mainboard/google/mancomb/bootblock.c
+++ b/src/mainboard/google/mancomb/bootblock.c
@@ -7,6 +7,9 @@ void bootblock_mainboard_early_init(void)
{
size_t num_gpios;
const struct soc_amd_gpio *gpios;
- gpios = variant_bootblock_gpio_table(&num_gpios);
- program_gpios(gpios, num_gpios);
+
+ if (!CONFIG(VBOOT_STARTS_BEFORE_BOOTBLOCK)) {
+ gpios = variant_early_gpio_table(&num_gpios);
+ program_gpios(gpios, num_gpios);
+ }
}