]> git.dujemihanovic.xyz Git - u-boot.git/commit
pci: tegra: introduce weak tegra_pcie_board_port_reset() function
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>
Tue, 8 May 2018 15:34:09 +0000 (17:34 +0200)
committerTom Warren <twarren@nvidia.com>
Thu, 10 May 2018 23:34:21 +0000 (16:34 -0700)
commit355560d5883ea0188ddb28dd2da9b54e629bd132
tree057eaeb4aaa919fe3280a485a0833ca6f8dc01fa
parent4616e33b6a01b2f12c422d0d27afbbbbee2985e8
pci: tegra: introduce weak tegra_pcie_board_port_reset() function

Introduce a weak tegra_pcie_board_port_reset() function by default
calling the existing tegra_pcie_port_reset() function. Additionally add
a tegra_pcie_port_index_of_port() function to retrieve the specific PCIe
port index if required. This allows overriding the PCIe port reset
functionality from board specific code as e.g. required for Apalis T30
and Apalis TK1.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
drivers/pci/pci_tegra.c
include/pci_tegra.h [new file with mode: 0644]