diff options
Diffstat (limited to 'include/linux/phy')
| -rw-r--r-- | include/linux/phy/tegra_phy.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/include/linux/phy/tegra_phy.h b/include/linux/phy/tegra_phy.h new file mode 100644 index 000000000..eff76ee8a --- /dev/null +++ b/include/linux/phy/tegra_phy.h | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | /* | ||
| 2 | * tegra_phy.h -- Tegra generic phy extensions | ||
| 3 | * | ||
| 4 | * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms and conditions of the GNU General Public License, | ||
| 8 | * version 2, as published by the Free Software Foundation. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
| 11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 13 | * more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 17 | */ | ||
| 18 | |||
| 19 | #ifndef __DRIVERS_TEGRA_PHY_H | ||
| 20 | #define __DRIVERS_TEGRA_PHY_H | ||
| 21 | |||
| 22 | #include <linux/phy/phy.h> | ||
| 23 | #include <linux/usb.h> | ||
| 24 | |||
| 25 | #if IS_ENABLED(CONFIG_GENERIC_PHY) | ||
| 26 | int tegra_phy_xusb_enable_sleepwalk(struct phy *phy, | ||
| 27 | enum usb_device_speed speed); | ||
| 28 | int tegra_phy_xusb_disable_sleepwalk(struct phy *phy); | ||
| 29 | #else | ||
| 30 | static inline int tegra_phy_xusb_enable_sleepwalk(struct phy *phy, | ||
| 31 | enum usb_device_speed speed) | ||
| 32 | { | ||
| 33 | return -ENOSYS; | ||
| 34 | } | ||
| 35 | static inline int tegra_phy_xusb_disable_sleepwalk(struct phy *phy) | ||
| 36 | { | ||
| 37 | return -ENOSYS; | ||
| 38 | } | ||
| 39 | #endif | ||
| 40 | |||
| 41 | #endif /* __DRIVERS_TEGRA_PHY_H */ | ||
