mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-03 07:54:24 +01:00
ipq807x: Add PCIE reset sequence
Some cards are not working due to pcie reset. So doing pcie reset with pcie reset gpio. Change-Id: I0c631b116923b90bf94223d09e5662900a31244e Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
This commit is contained in:
parent
af7feada2e
commit
4c38761167
1 changed files with 3 additions and 0 deletions
|
|
@ -483,6 +483,8 @@ void pcie_linkup(struct ipq_pcie *pcie)
|
|||
|
||||
writel(LTSSM_EN, pcie->parf.start + PCIE_0_PCIE20_PARF_LTSSM);
|
||||
|
||||
if (pcie->version == PCIE_V2)
|
||||
gpio_set_value(pcie->rst_gpio, GPIO_OUT_HIGH);
|
||||
mdelay(200);
|
||||
|
||||
for (j = 0; j < 400; j++) {
|
||||
|
|
@ -822,6 +824,7 @@ static int pci_ipq_ofdata_to_platdata(int id, struct ipq_pcie *pcie)
|
|||
pcie_linkup(pcie);
|
||||
break;
|
||||
case PCIE_V2:
|
||||
gpio_set_value(pcie->rst_gpio, GPIO_OUT_LOW);
|
||||
pcie_phy_init(pcie);
|
||||
pcie_linkup(pcie);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue