mb/google/zork: Move variant_pcie_gpio_configure() to bootblock

On zork, bootblock is part of RW firmware in non-recovery mode, so PCIe
GPIOs can be configured early on in bootblock rather than waiting until
romstage. This change moves the call to variant_pcie_gpio_configure() to
happen in bootblock and drops romstage.c file.

BUG=b:154351731

Signed-off-by: Furquan Shaikh <furquan@google.com>
Change-Id: Ic515304f35fe5623d58d6000efcb11fb9039e137
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43476
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Furquan Shaikh 2020-07-14 18:47:38 -07:00 committed by Aaron Durbin
parent 56f949cd0c
commit bf9eb00c11
2 changed files with 2 additions and 11 deletions

View File

@ -12,4 +12,6 @@ void bootblock_mainboard_early_init(void)
gpios = variant_early_gpio_table(&num_gpios);
program_gpios(gpios, num_gpios);
}
variant_pcie_gpio_configure();
}

View File

@ -1,11 +0,0 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#include <baseboard/variants.h>
#include <soc/gpio.h>
#include <soc/romstage.h>
#include <console/console.h>
void mainboard_romstage_entry_s3(int s3_resume)
{
variant_pcie_gpio_configure();
}