Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify it |
| 5 | * under the terms and conditions of the GNU General Public License, |
| 6 | * version 2, as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope it will be useful, but WITHOUT |
| 9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| 11 | * more details. |
| 12 | */ |
| 13 | |
| 14 | #ifndef PHY_TEGRA_XUSB_H |
| 15 | #define PHY_TEGRA_XUSB_H |
| 16 | |
| 17 | struct tegra_xusb_padctl; |
| 18 | struct device; |
| 19 | |
| 20 | struct tegra_xusb_padctl *tegra_xusb_padctl_get(struct device *dev); |
| 21 | void tegra_xusb_padctl_put(struct tegra_xusb_padctl *padctl); |
| 22 | |
| 23 | int tegra_xusb_padctl_usb3_save_context(struct tegra_xusb_padctl *padctl, |
| 24 | unsigned int port); |
| 25 | int tegra_xusb_padctl_hsic_set_idle(struct tegra_xusb_padctl *padctl, |
| 26 | unsigned int port, bool idle); |
| 27 | int tegra_xusb_padctl_usb3_set_lfps_detect(struct tegra_xusb_padctl *padctl, |
| 28 | unsigned int port, bool enable); |
| 29 | |
| 30 | #endif /* PHY_TEGRA_XUSB_H */ |