summaryrefslogtreecommitdiff
path: root/include/pci_tegra.h
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2018-05-08 17:34:09 +0200
committerTom Warren <twarren@nvidia.com>2018-05-10 16:34:21 -0700
commit355560d5883ea0188ddb28dd2da9b54e629bd132 (patch)
tree057eaeb4aaa919fe3280a485a0833ca6f8dc01fa /include/pci_tegra.h
parent4616e33b6a01b2f12c422d0d27afbbbbee2985e8 (diff)
downloadu-boot-355560d5883ea0188ddb28dd2da9b54e629bd132.tar.gz
u-boot-355560d5883ea0188ddb28dd2da9b54e629bd132.tar.bz2
u-boot-355560d5883ea0188ddb28dd2da9b54e629bd132.zip
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>
Diffstat (limited to 'include/pci_tegra.h')
-rw-r--r--include/pci_tegra.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/pci_tegra.h b/include/pci_tegra.h
new file mode 100644
index 0000000000..11e92fc26d
--- /dev/null
+++ b/include/pci_tegra.h
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (c) 2018 Toradex, Inc.
+ */
+
+struct tegra_pcie_port;
+
+int tegra_pcie_port_index_of_port(struct tegra_pcie_port *port);
+
+void tegra_pcie_port_reset(struct tegra_pcie_port *port);