mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
5a40fc4b93
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>
26 lines
942 B
C
26 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 */
|