summaryrefslogtreecommitdiff
path: root/include/usb
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2014-11-10 08:50:39 +0800
committerMarek Vasut <marex@denx.de>2014-11-14 20:56:54 +0100
commit229dbba9b1a24d8f371f18fa8ff13a4cca864f06 (patch)
tree756144412d42d215156e3913a7b5d39704b7e40e /include/usb
parent0d485b9095328cdc81b2ee94ff59b988c69b9127 (diff)
downloadu-boot-imx-229dbba9b1a24d8f371f18fa8ff13a4cca864f06.zip
u-boot-imx-229dbba9b1a24d8f371f18fa8ff13a4cca864f06.tar.gz
u-boot-imx-229dbba9b1a24d8f371f18fa8ff13a4cca864f06.tar.bz2
usb:ehci-mx6 add phy mode query function
usb_phy_enable should return status bit, but not phy mode bit, thus add a new function usb_phy_mode to query the PHY for it's mode and make usb_phy_enable just return 0 but not 'phy_ctrl & USBPHY_CTRL_OTG_ID'. Include a new board weak function board_usb_phy_mode. If board code does not reimplement this function, it just call usb_phy_mode and return usb_phy_mode's return value. The reason to include such a weak function is: " SOC OTG core <--connect--> board HOST port, but no pin id for the board host port, so board can not use usb_phy_mode to return the phy mode, but define it's own rule." Signed-off-by: Peng Fan <Peng.Fan@freescale.com> Signed-off-by: Ye Li <B37916@freescale.com>
Diffstat (limited to 'include/usb')
-rw-r--r--include/usb/ehci-fsl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/usb/ehci-fsl.h b/include/usb/ehci-fsl.h
index dd77ad6..22114c1 100644
--- a/include/usb/ehci-fsl.h
+++ b/include/usb/ehci-fsl.h
@@ -277,7 +277,9 @@ struct usb_ehci {
#define MXC_EHCI_IPPUE_DOWN (1 << 10)
#define MXC_EHCI_IPPUE_UP (1 << 11)
+int usb_phy_mode(int port);
/* Board-specific initialization */
int board_ehci_hcd_init(int port);
+int board_usb_phy_mode(int port);
#endif /* _EHCI_FSL_H */