summaryrefslogtreecommitdiffstats
path: root/include/linux/phy
diff options
context:
space:
mode:
authorJC Kuo <jckuo@nvidia.com>2015-07-21 09:53:32 -0400
committerAshutosh Jha <ajha@nvidia.com>2015-08-06 23:43:06 -0400
commit69f3d2953db78d5f773d627c2dcc1bf0ebf2cc13 (patch)
tree78893a41e61c0d26805d7a4410741e7d21d9be87 /include/linux/phy
parent1a34f20a2dc8802db08b41599428f1072fcd5ac6 (diff)
pinctrl: tegra186: padctl_uphy: add XUSB AO
This commit add XUSB AO programming sequence which support UTMI/HSIC sleepwalk. bug 200057796 Change-Id: Id20ec2becfee721a1f2cb83809f7de2d2d5a0992 Signed-off-by: JC Kuo <jckuo@nvidia.com> Reviewed-on: http://git-master/r/772916 Reviewed-by: ChihMin Cheng <ccheng@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Ray Sung <rsung@nvidia.com> Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
Diffstat (limited to 'include/linux/phy')
-rw-r--r--include/linux/phy/tegra_phy.h41
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)
26int tegra_phy_xusb_enable_sleepwalk(struct phy *phy,
27 enum usb_device_speed speed);
28int tegra_phy_xusb_disable_sleepwalk(struct phy *phy);
29#else
30static inline int tegra_phy_xusb_enable_sleepwalk(struct phy *phy,
31 enum usb_device_speed speed)
32{
33 return -ENOSYS;
34}
35static inline int tegra_phy_xusb_disable_sleepwalk(struct phy *phy)
36{
37 return -ENOSYS;
38}
39#endif
40
41#endif /* __DRIVERS_TEGRA_PHY_H */