diff options
author | Marek Vasut <marek.vasut+renesas@gmail.com> | 2018-08-08 14:29:55 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2018-08-28 11:00:18 +0200 |
commit | b43cdf9b3fe246a8920d2b62ee41fc1722315ef0 (patch) | |
tree | cbfbf01c76cc8c26f51489ed219f18ae4901204a /drivers/usb/host/ehci.h | |
parent | a265e5ef426ed224bfd2ee3d05535e6c573a16ba (diff) | |
download | u-boot-b43cdf9b3fe246a8920d2b62ee41fc1722315ef0.tar.gz |
usb: ehci: Make the PHY handling generic
Pull out the EHCI PHY functions into the ehci-hcd.c to let other
EHCI drivers use them.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Diffstat (limited to 'drivers/usb/host/ehci.h')
-rw-r--r-- | drivers/usb/host/ehci.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h index 07de472f91..7945016624 100644 --- a/drivers/usb/host/ehci.h +++ b/drivers/usb/host/ehci.h @@ -9,6 +9,7 @@ #define USB_EHCI_H #include <usb.h> +#include <generic-phy.h> /* Section 2.2.3 - N_PORTS */ #define MAX_HC_PORTS 15 @@ -288,4 +289,8 @@ int ehci_register(struct udevice *dev, struct ehci_hccr *hccr, int ehci_deregister(struct udevice *dev); extern struct dm_usb_ops ehci_usb_ops; +/* EHCI PHY functions */ +int ehci_setup_phy(struct udevice *dev, struct phy *phy, int index); +int ehci_shutdown_phy(struct udevice *dev, struct phy *phy); + #endif /* USB_EHCI_H */ |