mb/google/myst: Update PCIe romstage gpios
Update PCIe GPIOs during rom stage to properly initialize the PCIe devices and allow the NVMe/eMMC to be properly detected. BUG=b:284213391 TEST=Boot to OS Change-Id: I24ad6c1addedb414afade2512b6628022d000a47 Signed-off-by: Jon Murphy <jpmurphy@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/75699 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
This commit is contained in:
parent
7866166fb4
commit
86e05e8e73
|
@ -54,8 +54,6 @@ static const fsp_dxio_descriptor emmc_descriptor = {
|
||||||
.function_number = PCI_FUNC(NVME_DEVFN),
|
.function_number = PCI_FUNC(NVME_DEVFN),
|
||||||
.link_speed_capability = GEN_MAX,
|
.link_speed_capability = GEN_MAX,
|
||||||
.turn_off_unused_lanes = true,
|
.turn_off_unused_lanes = true,
|
||||||
/* TODO(b/284213391): Fix PCIe shutdown */
|
|
||||||
.link_hotplug = 3,
|
|
||||||
.clk_req = CLK_REQ3,
|
.clk_req = CLK_REQ3,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -68,8 +66,6 @@ static const fsp_dxio_descriptor nvme_descriptor = {
|
||||||
.function_number = PCI_FUNC(NVME_DEVFN),
|
.function_number = PCI_FUNC(NVME_DEVFN),
|
||||||
.link_speed_capability = GEN_MAX,
|
.link_speed_capability = GEN_MAX,
|
||||||
.turn_off_unused_lanes = true,
|
.turn_off_unused_lanes = true,
|
||||||
/* TODO(b/284213391): Fix PCIe shutdown */
|
|
||||||
.link_hotplug = 3,
|
|
||||||
.clk_req = CLK_REQ3,
|
.clk_req = CLK_REQ3,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -196,8 +196,22 @@ static const struct soc_amd_gpio early_gpio_table[] = {
|
||||||
/* PCIE_RST needs to be brought high before FSP-M runs */
|
/* PCIE_RST needs to be brought high before FSP-M runs */
|
||||||
static const struct soc_amd_gpio romstage_gpio_table[] = {
|
static const struct soc_amd_gpio romstage_gpio_table[] = {
|
||||||
/* Deassert all AUX_RESET lines & PCIE_RST */
|
/* Deassert all AUX_RESET lines & PCIE_RST */
|
||||||
|
/* SD_AUX_RST */
|
||||||
|
PAD_GPO(GPIO_29, LOW),
|
||||||
|
/* SSD_AUX_RESET */
|
||||||
|
PAD_GPO(GPIO_31, LOW),
|
||||||
/* WLAN_AUX_RST_L (ACTIVE LOW) */
|
/* WLAN_AUX_RST_L (ACTIVE LOW) */
|
||||||
PAD_GPO(GPIO_38, HIGH),
|
PAD_GPO(GPIO_38, HIGH),
|
||||||
|
/* WWAN_AUX_RST_L (ACTIVE LOW) */
|
||||||
|
PAD_GPO(GPIO_39, HIGH),
|
||||||
|
/* CLK_REQ0_L / WLAN */
|
||||||
|
PAD_NF(GPIO_92, CLK_REQ0_L, PULL_NONE),
|
||||||
|
/* CLK_REQ1_L / SD */
|
||||||
|
PAD_NF(GPIO_115, CLK_REQ1_L, PULL_NONE),
|
||||||
|
/* CLK_REQ2_L / WWAN */
|
||||||
|
PAD_NF(GPIO_116, CLK_REQ2_L, PULL_NONE),
|
||||||
|
/* CLK_REQ3_L / SSD */
|
||||||
|
PAD_NF(GPIO_131, CLK_REQ3_L, PULL_NONE),
|
||||||
/* PCIE_RST0_L */
|
/* PCIE_RST0_L */
|
||||||
PAD_NFO(GPIO_26, PCIE_RST0_L, HIGH),
|
PAD_NFO(GPIO_26, PCIE_RST0_L, HIGH),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue