summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/zork/variants/baseboard/gpio_baseboard_dalboz.c
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2020-06-24 00:03:06 -0700
committerFurquan Shaikh <furquan@google.com>2020-07-01 17:54:51 +0000
commit9f47a053a35ea11f0906760bca023f4f99241635 (patch)
treeaffd826774e619f6926a17ee7f7b8296b8b1634d /src/mainboard/google/zork/variants/baseboard/gpio_baseboard_dalboz.c
parent7340efcf1998e4197bb2403657efed16e5e4e620 (diff)
downloadcoreboot-9f47a053a35ea11f0906760bca023f4f99241635.tar.gz
coreboot-9f47a053a35ea11f0906760bca023f4f99241635.tar.bz2
coreboot-9f47a053a35ea11f0906760bca023f4f99241635.zip
mb/google/zork: Move PCIE_RST1_L deassertion to happen early for dalboz
This change moves PCIE_RST1_L deassertion to happen as part of variant_pcie_power_reset_configure() instead of variant_romstage_entry() since romstage is guaranteed to run 100ms+ after PP3300_NVME is enabled. This is one of the first things that coreboot on x86 does as part of early mainboard configuration. Additionally, this change also drops deassertion of PCIE_RST0_L on bid 1 for dalboz since PCIE_RST0_L is already deasserted much earlier in the boot flow. BUG=b:152582706 Signed-off-by: Furquan Shaikh <furquan@google.com> Change-Id: Ib734aa6ff664268e68388b1997ddce676504f8d2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/coreboot/+/2261996 Reviewed-by: Aaron Durbin <adurbin@google.com> Commit-Queue: Aaron Durbin <adurbin@google.com> Tested-by: Aaron Durbin <adurbin@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42936 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard/google/zork/variants/baseboard/gpio_baseboard_dalboz.c')
-rw-r--r--src/mainboard/google/zork/variants/baseboard/gpio_baseboard_dalboz.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mainboard/google/zork/variants/baseboard/gpio_baseboard_dalboz.c b/src/mainboard/google/zork/variants/baseboard/gpio_baseboard_dalboz.c
index 5874e89c069e..c2438768c877 100644
--- a/src/mainboard/google/zork/variants/baseboard/gpio_baseboard_dalboz.c
+++ b/src/mainboard/google/zork/variants/baseboard/gpio_baseboard_dalboz.c
@@ -268,6 +268,9 @@ __weak void variant_pcie_power_reset_configure(void)
{
uint32_t board_version;
+ /* Deassert PCIE_RST1_L */
+ gpio_set(GPIO_27, 1);
+
if (!google_chromeec_cbi_get_board_version(&board_version) &&
(board_version >= CONFIG_VARIANT_MIN_BOARD_ID_V3_SCHEMATICS))
wifi_power_reset_configure_v3();