Lines Matching +full:otg +full:- +full:port
1 // SPDX-License-Identifier: GPL-2.0+
11 #include <usb/ehci-ci.h>
13 #include <asm/arch/imx-regs.h>
34 /* OTG wakeup intr enable */
36 /* OTG power mask */
38 /* OTG power pin polarity */
50 /* OTG Polarity of Overcurrent */
52 /* OTG Disable Overcurrent Event */
58 /* OTG Power Pin Polarity */
79 int mxc_set_usbcontrol(int port, unsigned int flags) in mxc_set_usbcontrol() argument
88 switch (port) { in mxc_set_usbcontrol()
89 case 0: /* OTG port */ in mxc_set_usbcontrol()
130 /* The clock for the USBH1 ULPI port will come externally in mxc_set_usbcontrol()
211 int __weak board_ehci_hcd_init(int port) in board_ehci_hcd_init() argument
216 void __weak board_ehci_hcd_postinit(struct usb_ehci *ehci, int port) in board_ehci_hcd_postinit() argument
235 /* The only user for this is efikamx-usb */ in ehci_hcd_init()
249 *hccr = (struct ehci_hccr *)((uint32_t)&ehci->caplength); in ehci_hcd_init()
251 HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase))); in ehci_hcd_init()
252 setbits_le32(&ehci->usbmode, CM_HOST); in ehci_hcd_init()
254 __raw_writel(CONFIG_MXC_USB_PORTSC, &ehci->portsc); in ehci_hcd_init()
255 setbits_le32(&ehci->portsc, USB_EN); in ehci_hcd_init()
260 /* Do board specific post-initialization */ in ehci_hcd_init()