0
0
mirror of https://github.com/u-boot/u-boot.git synced 2024-12-22 19:23:26 +08:00
u-boot/include/pci_tegra.h
Marcel Ziswiler 355560d588 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>
2018-05-10 16:34:21 -07:00

11 lines
233 B
C

/* 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);