Merge tag 'mips_fixes_5.5_1' of git://git.kernel.org/pub/scm/linux/kernel/git/mips...
[linux-block.git] / include / linux / phy / tegra / xusb.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (c) 2016, NVIDIA CORPORATION.  All rights reserved.
4  */
5
6 #ifndef PHY_TEGRA_XUSB_H
7 #define PHY_TEGRA_XUSB_H
8
9 struct tegra_xusb_padctl;
10 struct device;
11
12 struct tegra_xusb_padctl *tegra_xusb_padctl_get(struct device *dev);
13 void tegra_xusb_padctl_put(struct tegra_xusb_padctl *padctl);
14
15 int tegra_xusb_padctl_usb3_save_context(struct tegra_xusb_padctl *padctl,
16                                         unsigned int port);
17 int tegra_xusb_padctl_hsic_set_idle(struct tegra_xusb_padctl *padctl,
18                                     unsigned int port, bool idle);
19 int tegra_xusb_padctl_usb3_set_lfps_detect(struct tegra_xusb_padctl *padctl,
20                                            unsigned int port, bool enable);
21 int tegra_xusb_padctl_set_vbus_override(struct tegra_xusb_padctl *padctl,
22                                         bool val);
23 int tegra_phy_xusb_utmi_port_reset(struct phy *phy);
24 #endif /* PHY_TEGRA_XUSB_H */