mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-19 11:27:59 +07:00

Tegra XUSB host, device mode driver requires the USB 3 companion port number for corresponding USB 2 port. Add API to retrieve the same. Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com> Reviewed-by: JC Kuo <jckuo@nvidia.com> Acked-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
27 lines
942 B
C
27 lines
942 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
|
|
*/
|
|
|
|
#ifndef PHY_TEGRA_XUSB_H
|
|
#define PHY_TEGRA_XUSB_H
|
|
|
|
struct tegra_xusb_padctl;
|
|
struct device;
|
|
|
|
struct tegra_xusb_padctl *tegra_xusb_padctl_get(struct device *dev);
|
|
void tegra_xusb_padctl_put(struct tegra_xusb_padctl *padctl);
|
|
|
|
int tegra_xusb_padctl_usb3_save_context(struct tegra_xusb_padctl *padctl,
|
|
unsigned int port);
|
|
int tegra_xusb_padctl_hsic_set_idle(struct tegra_xusb_padctl *padctl,
|
|
unsigned int port, bool idle);
|
|
int tegra_xusb_padctl_usb3_set_lfps_detect(struct tegra_xusb_padctl *padctl,
|
|
unsigned int port, bool enable);
|
|
int tegra_xusb_padctl_set_vbus_override(struct tegra_xusb_padctl *padctl,
|
|
bool val);
|
|
int tegra_phy_xusb_utmi_port_reset(struct phy *phy);
|
|
int tegra_xusb_padctl_get_usb3_companion(struct tegra_xusb_padctl *padctl,
|
|
unsigned int port);
|
|
#endif /* PHY_TEGRA_XUSB_H */
|