summaryrefslogtreecommitdiff
path: root/include/ti-usb-phy-uboot.h
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2015-02-23 18:40:12 +0530
committerMarek Vasut <marex@denx.de>2015-04-14 05:48:10 +0200
commit6900aeda528bdeeeb44bde6433ff928506e30d6f (patch)
tree935ef3cfe2ca9b384004084baf503c6c26fbcf8f /include/ti-usb-phy-uboot.h
parent53de33fc00afd41fd0fd8fb9f5ab0d01df3a64a4 (diff)
downloadu-boot-imx-6900aeda528bdeeeb44bde6433ff928506e30d6f.zip
u-boot-imx-6900aeda528bdeeeb44bde6433ff928506e30d6f.tar.gz
u-boot-imx-6900aeda528bdeeeb44bde6433ff928506e30d6f.tar.bz2
usb: dwc3: TI PHY: PHY driver for dwc3 in TI platforms
Added a single driver for both USB2 PHY programming and USB3 PHY programming. USB3 PHY is taken from drivers/phy/phy-ti-pipe3.c in linux kernel. commit 56042e : phy: ti-pipe3: Fix suspend/resume and module reload. USB2 PHY is taken from drivers/phy/phy-omap-usb2.c in linux kernel. commit eb82a3 : phy: omap-usb2: Balance pm_runtime_enable() on probe failure and remove. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'include/ti-usb-phy-uboot.h')
-rw-r--r--include/ti-usb-phy-uboot.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/ti-usb-phy-uboot.h b/include/ti-usb-phy-uboot.h
new file mode 100644
index 0000000..93f7101
--- /dev/null
+++ b/include/ti-usb-phy-uboot.h
@@ -0,0 +1,22 @@
+/* include/ti_usb_phy_uboot.h
+ *
+ * Copyright (c) 2014 Texas Instruments Incorporated - http://www.ti.com
+ *
+ * USB2 and USB3 PHY uboot init
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef __TI_USB_PHY_UBOOT_H_
+#define __TI_USB_PHY_UBOOT_H_
+
+struct ti_usb_phy_device {
+ void *pll_ctrl_base;
+ void *usb2_phy_power;
+ void *usb3_phy_power;
+ int index;
+};
+
+int ti_usb_phy_uboot_init(struct ti_usb_phy_device *dev);
+void ti_usb_phy_uboot_exit(int index);
+#endif /* __TI_USB_PHY_UBOOT_H_ */