pci: tegra: actually program REFCLK_CFG* on recent SoCs
authorStephen Warren <swarren@nvidia.com>
Fri, 24 Jun 2016 14:36:04 +0000 (08:36 -0600)
committerTom Warren <twarren@nvidia.com>
Tue, 5 Jul 2016 18:14:32 +0000 (11:14 -0700)
commitf39a6a327721285aa68f7e4d57b887c165ed3f14
treeae9f09bbd8d3eef6e6e8103512d8141e3d9d51ee
parent3cfc6be4a85c722e9e0a657c7696f5fa1ac2ed48
pci: tegra: actually program REFCLK_CFG* on recent SoCs

On recent SoCs, tegra_pcie_phy_enable() isn't called; but instead
tegra_pcie_enable_controller() calls tegra_xusb_phy_enable(). However,
part of tegra_pcie_phy_enable() needs to happen in all cases. Move that
code to tegra_pcie_port_enable() instead.

For reference, NVIDIA's downstream Linux kernel performs this operation
in tegra_pcie_enable_rp_features(), which is called immediately after
tegra_pcie_port_enable(). Since that function doesn't exist in the U-Boot
driver, we'll just add it to the tail of tegra_pcie_port_enable() instead.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
drivers/pci/pci_tegra.c