Commit 21a92676 authored by Marcel Ziswiler's avatar Marcel Ziswiler Committed by Lorenzo Pieralisi

PCI: tegra: Fix afi_pex2_ctrl reg offset for Tegra30

Fix AFI_PEX2_CTRL reg offset for Tegra30 by moving it from the Tegra20
SoC struct where it erroneously got added. This fixes the AFI_PEX2_CTRL
reg offset being uninitialised subsequently failing to bring up the
third PCIe port.

Fixes: adb2653b ("PCI: tegra: Add AFI_PEX2_CTRL reg offset as part of SoC struct")
Signed-off-by: default avatarMarcel Ziswiler <marcel@ziswiler.com>
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: default avatarAndrew Murray <andrew.murray@arm.com>
Acked-by: default avatarThierry Reding <treding@nvidia.com>
parent 88519914
...@@ -2499,7 +2499,6 @@ static const struct tegra_pcie_soc tegra20_pcie = { ...@@ -2499,7 +2499,6 @@ static const struct tegra_pcie_soc tegra20_pcie = {
.num_ports = 2, .num_ports = 2,
.ports = tegra20_pcie_ports, .ports = tegra20_pcie_ports,
.msi_base_shift = 0, .msi_base_shift = 0,
.afi_pex2_ctrl = 0x128,
.pads_pll_ctl = PADS_PLL_CTL_TEGRA20, .pads_pll_ctl = PADS_PLL_CTL_TEGRA20,
.tx_ref_sel = PADS_PLL_CTL_TXCLKREF_DIV10, .tx_ref_sel = PADS_PLL_CTL_TXCLKREF_DIV10,
.pads_refclk_cfg0 = 0xfa5cfa5c, .pads_refclk_cfg0 = 0xfa5cfa5c,
...@@ -2528,6 +2527,7 @@ static const struct tegra_pcie_soc tegra30_pcie = { ...@@ -2528,6 +2527,7 @@ static const struct tegra_pcie_soc tegra30_pcie = {
.num_ports = 3, .num_ports = 3,
.ports = tegra30_pcie_ports, .ports = tegra30_pcie_ports,
.msi_base_shift = 8, .msi_base_shift = 8,
.afi_pex2_ctrl = 0x128,
.pads_pll_ctl = PADS_PLL_CTL_TEGRA30, .pads_pll_ctl = PADS_PLL_CTL_TEGRA30,
.tx_ref_sel = PADS_PLL_CTL_TXCLKREF_BUF_EN, .tx_ref_sel = PADS_PLL_CTL_TXCLKREF_BUF_EN,
.pads_refclk_cfg0 = 0xfa5cfa5c, .pads_refclk_cfg0 = 0xfa5cfa5c,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment