Searched refs:OTG (Results 1 - 177 of 177) sorted by relevance

/linux-4.1.27/include/linux/platform_data/
H A Dmv_usb.h37 struct mv_usb_addon_irq *id; /* Only valid for OTG. ID pin change*/
38 struct mv_usb_addon_irq *vbus; /* valid for OTG/UDC. VBUS change*/
40 /* only valid for HCD. OTG or Host only*/
H A Dusb-mx2.h31 enable_otg_host:1, /* enable "OTG" port (as host) */
34 otg_ext_xcvr:1, /* external tranceiver for OTG port */
H A Dusb-omap1.h20 * ... for OTG use as device OR host, initialize "otg"
26 const char *extcon; /* extcon device for OTG */
/linux-4.1.27/arch/arm/mach-pxa/include/mach/
H A Dregs-u2d.h48 #define U2DOTGCR (0x0020) /* U2D OTG Control Register */
56 #define U2DOTGCR_IESI (1 << 13) /* OTG interrupt Enable */
57 #define U2DOTGCR_ISSI (1 << 12) /* OTG interrupt status */
67 #define U2DOTGICR (0x0024) /* U2D OTG Interrupt Control Register */
68 #define U2DOTGISR (0x0028) /* U2D OTG Interrupt Status Register */
70 #define U2DOTGINT_SF (1 << 17) /* OTG Set Feature Command Received */
71 #define U2DOTGINT_SI (1 << 16) /* OTG Interrupt */
74 #define U2DOTGINT_RID (1 << 12) /* RXCMD OTG ID Change Interrupt Rise */
75 #define U2DOTGINT_RSE (1 << 11) /* RXCMD OTG Session End Interrupt Rise */
76 #define U2DOTGINT_RSV (1 << 10) /* RXCMD OTG Session Valid Interrupt Rise */
77 #define U2DOTGINT_RVV (1 << 9) /* RXCMD OTG Vbus Valid Interrupt Rise */
81 #define U2DOTGINT_FID (1 << 4) /* RXCMD OTG ID Change Interrupt Fall */
82 #define U2DOTGINT_FSE (1 << 3) /* RXCMD OTG Session End Interrupt Fall */
83 #define U2DOTGINT_FSV (1 << 2) /* RXCMD OTG Session Valid Interrupt Fall */
84 #define U2DOTGINT_FVV (1 << 1) /* RXCMD OTG Vbus Valid Interrupt Fall */
87 #define U2DOTGUSR (0x002C) /* U2D OTG ULPI Status Register */
94 #define U2DOTGUSR_ID (1 << 4) /* OTG IDGnd Status */
95 #define U2DOTGUSR_SE (1 << 3) /* OTG Session End Status */
96 #define U2DOTGUSR_SV (1 << 2) /* OTG Session Valid Status */
97 #define U2DOTGUSR_VV (1 << 1) /* OTG Vbus Valid Status */
100 #define U2DOTGUCR (0x0030) /* U2D OTG ULPI Control Register */
H A Dpxa27x-udc.h58 #define UDCOTGICR_IESF (1 << 24) /* OTG SET_FEATURE command recvd */
63 #define UDCOTGICR_IEVV40R (1 << 9) /* OTG Vbus Valid 4.0V Rising Edge
65 #define UDCOTGICR_IEVV40F (1 << 8) /* OTG Vbus Valid 4.0V Falling Edge
67 #define UDCOTGICR_IEVV44R (1 << 7) /* OTG Vbus Valid 4.4V Rising Edge
69 #define UDCOTGICR_IEVV44F (1 << 6) /* OTG Vbus Valid 4.4V Falling Edge
71 #define UDCOTGICR_IESVR (1 << 5) /* OTG Session Valid Rising Edge
73 #define UDCOTGICR_IESVF (1 << 4) /* OTG Session Valid Falling Edge
75 #define UDCOTGICR_IESDR (1 << 3) /* OTG A-Device SRP Detect Rising
77 #define UDCOTGICR_IESDF (1 << 2) /* OTG A-Device SRP Detect Falling
79 #define UDCOTGICR_IEIDR (1 << 1) /* OTG ID Change Rising Edge
81 #define UDCOTGICR_IEIDF (1 << 0) /* OTG ID Change Falling Edge
97 #define UP2OCR_IDON (1 << 10) /* OTG ID Read Enable */
H A Dirqs.h78 #define IRQ_U2O PXA_IRQ(64) /* USB OTG 2.0 Controller (PXA935) */
H A Dpxa2xx-regs.h87 #define PSSR_OTGPH (1 << 6) /* OTG Peripheral control Hold */
/linux-4.1.27/include/linux/usb/
H A Disp1760.h12 unsigned port1_otg:1; /* Port 1 supports OTG */
H A Dmsm_hsusb.h26 * OTG control
108 * @mode: Supported mode (OTG/peripheral/host).
109 * @otg_control: OTG switch controlled by user/Id pin
123 * struct msm_otg: OTG driver data. Shared by HCD and DCD.
124 * @otg: USB OTG Transceiver structure.
131 * @inputs: OTG state machine inputs(Id, SessValid etc).
132 * @sm_work: OTG state machine work.
H A Dmusb.h108 /* (HOST or OTG) switch VBUS on/off */
111 /* (HOST or OTG) mA/2 power supplied on (default = 8mA) */
117 /* (HOST or OTG) msec/2 after VBUS on till power good */
120 /* (HOST or OTG) program PHY for external Vbus */
H A Dotg.h1 /* USB OTG (On The Go) defines */
97 /* for OTG controller drivers (and maybe other stuff) */
H A Dotg-fsm.h44 /* Standard OTG timers */
62 /* OTG state machine according to the OTG spec */
H A Dmsm_hsusb_hw.h58 /* OTG definitions */
H A Dch9.h12 * USB 2.0 adds an additional "On The Go" (OTG) mode, which lets systems
H A Dulpi.h128 /* OTG Control */
H A Dphy.h39 /* OTG defines lots of enumeration states before device reset */
98 /* initialize/shutdown the OTG controller */
H A Dgadget.h516 * gadget driver must provide a USB OTG descriptor.
520 * @a_hnp_support: OTG device feature flag, indicating that the A-Host
522 * @a_alt_hnp_support: OTG device feature flag, indicating that the A-Host
524 * @b_hnp_enable: OTG device feature flag, indicating that the A-Host
543 * Values of the three OTG device feature flags are updated before the
624 * gadget_is_otg - return true iff the hardware is OTG-ready
627 * This is a runtime test, since kernels with a USB-OTG stack sometimes
661 * even if OTG isn't otherwise in use. OTG devices may also start
832 * If gadget->is_otg is true, the gadget driver must provide an OTG
H A Dhcd.h106 * OTG and some Host controllers need software interaction with phys;
148 unsigned tpl_support:1; /* OTG & EH TPL support */
H A Dcomposite.h251 * Examples include OTG and vendor-specific descriptors.
/linux-4.1.27/drivers/usb/core/
H A Dotg_whitelist.h13 * This OTG and Embedded Host Whitelist is "Targeted Peripheral List".
21 /* hubs are optional in OTG, but very handy ... */
53 /* HNP test device is _never_ targeted (see OTG spec 6.6.6) */ is_targeted()
58 /* OTG PET device is always targeted (see OTG 2.0 ECN 6.4.2) */ is_targeted()
103 /* OTG MESSAGE: report errors here, customize to match your product */ is_targeted()
H A Dquirks.c198 /* Protocol and OTG Electrical Test Device */
H A Dhub.c2253 * OTG-aware devices on OTG-capable root hubs may be able to use SRP, usb_enumerate_device_otg()
2255 * "host" to "peripheral". The OTG descriptor helps figure this out. usb_enumerate_device_otg()
2271 "Dual-Role OTG device on %sHNP port\n", usb_enumerate_device_otg()
2286 /* OTG MESSAGE: report errors here, usb_enumerate_device_otg()
3074 * less than 500 uA. It's also used in OTG, along with remote wakeup.
3082 * Suspending OTG devices may trigger HNP, if that's been enabled
3120 * NOTE: OTG devices may issue remote wakeup (or SRP) even when usb_port_suspend()
4600 * or 8mA for OTG ports hub_power_remaining()
H A Dhcd.c2302 * usb_bus_start_enum - start immediate enumeration (for OTG)
2309 * This is needed by OTG controller drivers, where it helps meet
2321 * just the OTG port) may need more attention to resetting... usb_bus_start_enum()
/linux-4.1.27/arch/arm/mach-imx/devices/
H A Dplatform-mxc-ehci.c23 imx_mxc_ehci_data_entry_single(MX27, 0, OTG);
32 imx_mxc_ehci_data_entry_single(MX31, 0, OTG);
41 imx_mxc_ehci_data_entry_single(MX35, 0, OTG);
/linux-4.1.27/drivers/usb/musb/
H A DMakefile2 # for USB OTG silicon based on Mentor Graphics INVENTRA designs
H A Dtusb6010.h2 * Definitions for TUSB6010 USB 2.0 OTG Dual Role controller
24 /* Mentor Graphics OTG core registers. 8,- 16- and 32-bit at offset 0x400 */
63 /*OTG status register */
119 #define TUSB_PRCM_WVBUS (1 << 1) /* OTG PHY VBUS */
120 #define TUSB_PRCM_WID (1 << 0) /* OTG PHY ID detect */
H A Ddavinci.h34 /* For now include usb OTG module registers here */
H A Dmusb_debug.h2 * MUSB OTG driver debug defines
H A Ddavinci.c85 /* powerdown the on-chip PHY, its PLL, and the OTG block */ phy_off()
152 * when J10 is out, and TI documents it as handling OTG.
212 /* We poll because DaVinci's won't expose several OTG-critical otg_timer()
304 * switch appropriately between halves of the OTG state machine. davinci_musb_interrupt()
431 pr_debug("DaVinci OTG revision %08x phy %03x control %02x\n", davinci_musb_init()
481 /* in OTG mode, another host might be connected */ davinci_musb_exit()
H A Dmusb_virthub.c2 * MUSB OTG driver virtual root hub support
268 * In host-only mode we start a connection right away. In OTG mode musb_has_gadget()
389 * initialization logic, e.g. for OTG, or change any musb_hub_control()
H A Dda8xx.c46 /* USB 2.0 OTG module registers */
196 * We poll because DaVinci's won't expose several OTG-critical otg_timer()
319 * switch appropriately between halves of the OTG state machine. da8xx_musb_interrupt()
439 pr_debug("DA8xx OTG revision %08x, PHY %03x, control %02x\n", da8xx_musb_init()
H A Dmusb_core.h2 * MUSB OTG driver defines
77 * OTG or host-only go to A_IDLE when ID is sensed.
119 * OTG protocol constants. See USB OTG 1.3 spec,
H A Dmusb_io.h2 * MUSB OTG driver register I/O
H A Dtusb6010.c2 * TUSB6010 USB 2.0 OTG Dual Role controller
321 /* This is used by gadget drivers, and OTG transceiver logic, allowing
625 * Sets the mode to OTG, peripheral or host by changing the ID detection.
775 /* OTG timer expiration */ tusb_otg_ints()
878 /* OTG state change reports (annoyingly) not issued by Mentor core */ tusb_musb_interrupt()
969 /* maybe force into the Default-A OTG state machine */ tusb_musb_enable()
1085 /* simplify: always sense/pullup ID pins, as if in OTG mode */ tusb_musb_start()
H A Dam35x.c44 /* USB 2.0 OTG module registers */
147 * We poll because AM35x's won't expose several OTG-critical otg_timer()
256 * switch appropriately between halves of the OTG state machine. am35x_musb_interrupt()
H A Dblackfin.c2 * MUSB OTG controller driver for Blackfin Processors
311 * is needed in OTG mode. musb_conn_timer_handler()
428 * and OTG HOST modes, while rev 1.1 and greater require PE7 to bfin_musb_init()
H A Djz4740.c67 /* Silicon does not implement USB OTG. */
H A Dmusb_gadget.h2 * MUSB OTG driver peripheral defines
H A Dmusbhsdma.h2 * MUSB OTG driver - support for Mentor's DMA controller
H A Dmusb_core.c2 * MUSB OTG driver core code
39 * controller driver implementing the "Gadget" API; OTG support is
57 * This is not an issue for OTG devices that don't support external
60 * includes DaVinci EVM in a common non-OTG mode.
440 * Handles OTG hnp timeouts, such as b_ase0_brst
782 /* indicate new connection to OTG machine */ musb_stage0_irq()
1068 * OTG mode, gadget driver module rmmod/modprobe cycles that musb_stop()
2010 * isp1504, non-OTG, etc) mostly hooking up through ULPI. musb_init_controller()
2245 * - OTG mode: both roles are deactivated (or never-activated) musb_remove()
H A Domap2430.c384 pr_err("HS USB OTG: no transceiver configured\n"); omap2430_musb_init()
389 pr_err("HS USB OTG: no PHY configured\n"); omap2430_musb_init()
412 pr_debug("HS USB OTG: revision 0x%x, sysconfig 0x%02x, " omap2430_musb_init()
H A Dmusb_debugfs.c2 * MUSB OTG driver debugfs support
H A Dmusb_dma.h2 * MUSB OTG driver DMA controller abstraction
H A Dmusb_host.h2 * MUSB OTG driver host defines
H A Dmusb_gadget.c2 * MUSB OTG driver peripheral support
1551 /* NOTE: OTG state machine doesn't include B_SUSPENDED; musb_gadget_wakeup()
1553 * doesn't affect OTG transitions. musb_gadget_wakeup()
1559 /* Start SRP ... OTG not required. */ musb_gadget_wakeup()
1895 * this needs to shut down the OTG engine. musb_gadget_stop()
2079 /* USB device controllers that are not OTG compatible
H A Dmusbhsdma.c2 * MUSB OTG driver - support for Mentor's DMA controller
H A Dux500.c165 pr_err("HS USB OTG: no transceiver configured\n"); ux500_musb_init()
H A Dmusb_regs.h2 * MUSB OTG driver register defines
H A Dmusb_dsps.c265 * We poll because DSPS IP's won't expose several OTG-critical otg_timer()
385 /* Poll for ID change in OTG port mode */ dsps_interrupt()
H A Dtusb6010_omap.c2 * TUSB6010 USB 2.0 OTG Dual Role controller OMAP DMA interface
H A Dmusb_host.c2 * MUSB OTG driver host support
2443 * on port power, or when (OTG) peripheral starts. musb_h_start()
2619 * those must be shared with peripheral code for OTG configs
H A Dmusb_gadget_ep0.c2 * MUSB OTG peripheral driver ep0 handling
/linux-4.1.27/arch/arm/mach-s3c64xx/
H A Dsetup-usb-phy.c54 /* set to normal OTG PHY */ s3c_usb_otgphy_init()
58 /* reset OTG PHY and Link */ s3c_usb_otgphy_init()
/linux-4.1.27/drivers/usb/chipidea/
H A Dotg.c2 * otg.c - ChipIdea USB IP core OTG driver
14 * This file mainly handles otgsc register, OTG fsm operations for HNP and SRP
143 /* Disable all OTG irq and clear status */ ci_hdrc_otg_destroy()
H A Dci_hdrc_msm.c62 * OTG(PHY) driver takes care of PHY initialization, clock management, ci_hdrc_msm_probe()
H A Dotg_fsm.c2 * otg_fsm.c - ChipIdea USB IP core OTG FSM driver
14 * This file mainly handles OTG fsm, it includes OTG fsm operations
19 * - OTG test device
275 /* OTG FSM timer handlers */ a_wait_vrise_tmout()
417 /* Operations that will be called from OTG Finite State Machine */
785 dev_err(ci->dev, "Couldn't init OTG timers\n"); ci_hdrc_otg_fsm_init()
H A Dcore.c672 dev_dbg(ci->dev, "It is OTG capable controller\n"); ci_get_otg_capable()
673 /* Disable and clear all OTG irq */ ci_get_otg_capable()
789 * If the controller is not OTG capable, but support ci_hdrc_probe()
H A Ddebug.c226 seq_printf(s, "OTG state: %s\n\n", ci_otg_show()
H A Dudc.c1581 /* Data+ pullup controlled by OTG state machine in OTG fsm mode */ ci_udc_pullup()
/linux-4.1.27/drivers/usb/dwc2/
H A Dcore_intr.c2 * core_intr.c - DesignWare HS OTG Controller common interrupt handling
75 * dwc2_handle_usb_port_intr - handles OTG PRTINT interrupts.
109 * dwc2_handle_otg_intr() - Handles the OTG Interrupts. It reads the OTG
122 dev_dbg(hsotg->dev, "++OTG Interrupt gotgint=%0x [%s]\n", gotgint, dwc2_handle_otg_intr()
127 " ++OTG Interrupt: Session End Detected++ (%s)\n", dwc2_handle_otg_intr()
162 " ++OTG Interrupt: Session Request Success Status Change++\n"); dwc2_handle_otg_intr()
236 " ++OTG Interrupt: Host Negotiation Detected++ (%s)\n", dwc2_handle_otg_intr()
259 " ++OTG Interrupt: A-Device Timeout Change++\n"); dwc2_handle_otg_intr()
261 dev_dbg(hsotg->dev, " ++OTG Interrupt: Debounce Done++\n"); dwc2_handle_otg_intr()
273 * Reads the OTG Interrupt Register (GOTCTL) to determine whether this is a
469 * - OTG Interrupt
H A Dhcd_queue.c2 * hcd_queue.c - DesignWare HS OTG Controller host queuing routines
59 * @hsotg: The HCD state structure for the DWC OTG controller
130 dev_vdbg(hsotg->dev, "DWC OTG HCD QH Initialized\n"); dwc2_qh_init()
131 dev_vdbg(hsotg->dev, "DWC OTG HCD QH - qh = %p\n", qh); dwc2_qh_init()
132 dev_vdbg(hsotg->dev, "DWC OTG HCD QH - Device Address = %d\n", dwc2_qh_init()
134 dev_vdbg(hsotg->dev, "DWC OTG HCD QH - Endpoint %d, %s\n", dwc2_qh_init()
154 dev_vdbg(hsotg->dev, "DWC OTG HCD QH - Speed = %s\n", speed); dwc2_qh_init()
174 dev_vdbg(hsotg->dev, "DWC OTG HCD QH - Type = %s\n", type); dwc2_qh_init()
177 dev_vdbg(hsotg->dev, "DWC OTG HCD QH - usecs = %d\n", dwc2_qh_init()
179 dev_vdbg(hsotg->dev, "DWC OTG HCD QH - interval = %d\n", dwc2_qh_init()
187 * @hsotg: The HCD state structure for the DWC OTG controller
244 * @hsotg: The HCD state structure for the DWC OTG controller
278 * @hsotg: The HCD state structure for the DWC OTG controller
433 * @hsotg: The HCD state structure for the DWC OTG controller
462 * @hsotg: The HCD state structure for the DWC OTG controller
538 * @hsotg: The HCD state structure for the DWC OTG controller
567 * @hsotg: The HCD state structure for the DWC OTG controller
H A Dpci.c2 * pci.c - DesignWare HS OTG Controller PCI driver
167 MODULE_DESCRIPTION("DESIGNWARE HS OTG PCI Bus Glue");
H A Dcore.h2 * core.h - DesignWare HS OTG Controller common declarations
213 * @otg_cap: Specifies the OTG capabilities.
218 * @otg_ver: OTG version supported
384 * 0 - HNP- and SRP-Capable OTG (Host & Device)
385 * 1 - SRP-Capable OTG (Host & Device)
386 * 2 - Non-HNP and Non-SRP Capable OTG (Host & Device)
388 * 4 - Non-OTG Device
390 * 6 - Non-OTG Host
505 * vast majority of OTG hosts, which need to connect to a
555 * @otg_port: OTG port number
622 /* DWC OTG HW Release versions */
795 /* OTG Core Parameters */
798 * Specifies the OTG capabilities. The driver will automatically
994 * Return OTG version - either 1.3 or 2.0
H A Dplatform.c2 * platform.c - DesignWare HS OTG Controller platform driver
310 MODULE_DESCRIPTION("DESIGNWARE HS OTG Platform Glue");
H A Dhcd.c2 * hcd.c - DesignWare HS OTG Controller host-mode routines
344 dev_dbg(hsotg->dev, "DWC OTG HCD STOP\n"); dwc2_hcd_stop()
398 "DWC OTG HCD URB Enqueue failed adding QTD. Error status %d\n", dwc2_hcd_urb_enqueue()
1813 "DWC OTG HCD HUB STATUS DATA: Root port status changed\n"); dwc2_hcd_is_status_changed()
1834 dev_vdbg(hsotg->dev, "DWC OTG HCD GET FRAME NUMBER %d\n", dwc2_hcd_get_frame_number()
2276 dev_dbg(hsotg->dev, "DWC OTG HCD START\n"); _dwc2_hcd_start()
2291 dev_dbg(hsotg->dev, "DWC OTG HCD Has Root Hub\n"); _dwc2_hcd_start()
2420 dev_vdbg(hsotg->dev, "DWC OTG HCD URB Enqueue\n"); _dwc2_hcd_urb_enqueue()
2539 dev_dbg(hsotg->dev, "DWC OTG HCD URB Dequeue\n"); _dwc2_hcd_urb_dequeue()
2584 "DWC OTG HCD EP DISABLE: bEndpointAddress=0x%02x, ep->hcpriv=%p\n", _dwc2_hcd_endpoint_disable()
2601 "DWC OTG HCD EP RESET: bEndpointAddress=0x%02x\n", _dwc2_hcd_endpoint_reset()
2669 .product_desc = "DWC OTG Controller",
2698 dev_dbg(hsotg->dev, "DWC OTG HCD FREE\n"); dwc2_hcd_free()
2798 dev_dbg(hsotg->dev, "DWC OTG HCD INIT\n"); dwc2_hcd_init()
2992 dev_dbg(hsotg->dev, "DWC OTG HCD REMOVE\n"); dwc2_hcd_remove()
H A Dhcd_ddma.c2 * hcd_ddma.c - DesignWare HS OTG Controller descriptor DMA routines
307 * @hsotg: The HCD state structure for the DWC OTG controller
355 * @hsotg: The HCD state structure for the DWC OTG controller
737 * @hsotg: The HCD state structure for the DWC OTG controller
1142 * @hsotg: The HCD state structure for the DWC OTG controller
H A Dcore.c2 * core.c - DesignWare HS OTG Controller common routines
69 /* Clear any pending OTG Interrupts */ dwc2_enable_common_interrupts()
456 dev_dbg(hsotg->dev, "OTG VER PARAM: %d\n", hsotg->core_params->otg_ver); dwc2_core_init()
704 /* Clear Host Set HNP Enable in the OTG Control Register */ dwc2_core_host_init()
713 /* Clear Host Set HNP Enable in the OTG Control Register */ dwc2_core_host_init()
2580 "otg_ver must be 0 (for OTG 1.3 support) or 1 (for OTG 2.0 support)\n"); dwc2_set_param_otg_ver()
2667 * as in "OTG version 2.xx" or "OTG version 3.xx". dwc2_get_hwparams()
2858 MODULE_DESCRIPTION("DESIGNWARE HS OTG Core");
H A Dhcd_intr.c2 * hcd_intr.c - DesignWare HS OTG Controller host-mode interrupt handling
2080 "DWC OTG HCD Interrupt Detected gintsts&gintmsk=0x%08x\n", dwc2_handle_hcd_intr()
2098 "DWC OTG HCD Finished Servicing Interrupts\n"); dwc2_handle_hcd_intr()
2100 "DWC OTG HCD gintsts=0x%08x gintmsk=0x%08x\n", dwc2_handle_hcd_intr()
H A Dhw.h2 * hw.h - DesignWare HS OTG Controller hardware definitions
H A Dhcd.h2 * hcd.h - DesignWare HS OTG Controller host-mode declarations
H A Dgadget.c2304 /* Clear any pending OTG interrupts */ s3c_hsotg_core_init_disconnected()
/linux-4.1.27/drivers/usb/phy/
H A Dphy-omap-otg.c2 * OMAP OTG controller driver
140 "OMAP USB OTG controller rev %d.%d (%s, id=%d, vbus=%d)\n", omap_otg_probe()
166 MODULE_DESCRIPTION("OMAP USB OTG controller driver");
H A Dphy-isp1301-omap.c2 * isp1301_omap - ISP 1301 USB transceiver, talking to OMAP OTG controller
49 MODULE_DESCRIPTION("ISP1301 USB OTG Transceiver Driver");
68 # define WORK_UPDATE_ISP 0 /* update ISP from OTG */
69 # define WORK_UPDATE_OTG 1 /* update OTG from ISP */
124 * unless the OTG port is used only in B-peripheral mode. enable_vbus_draw()
138 /* products will deliver OTG messages with LEDs, GUI, etc */ notresponding()
141 printk(KERN_NOTICE "OTG device not responding.\n"); notresponding()
247 * while OTG is running.
284 /* Currently ASSUMES only the OTG port matters; host_suspend()
403 * The OMAP OTG controller handles most of the OTG state transitions.
406 * OTG inputs; OTG outputs (mostly pullup/pulldown controls) and HNP state
580 # define toggle(OTG,ISP) do { \ otg_update_isp()
581 if (otg_ctrl & OTG) set |= ISP; \ otg_update_isp()
661 /* update ISP1301 transceiver from OTG controller */ omap_otg_irq()
916 /* OTG controller isn't clocked */
952 pr_debug("OTG: BDIS_ACON, %s\n", state_name(isp)); isp_update_otg()
1078 /* update the OTG controller state to match the isp1301; may isp_update_otg()
1241 * - OTG mode (dual-role), required if there's a Mini-AB connector
1246 * support the OTG mode. Other modes help testing USB controllers
1247 * in isolation from (full) OTG support, or maybe so later board
1314 * the Mini-A end of an OTG cable. (Or something nonstandard isp1301_set_host()
1554 dev_dbg(&i2c->dev, "can't bind OTG\n"); isp1301_probe()
H A Dphy-fsl-usb.c49 #define DRIVER_DESC "Freescale USB OTG Transceiver Driver"
120 /* Operations that will be called from OTG Finite State Machine */
554 * to the OTG. Suspend host for OTG role detection.
604 /* Called by initialization code of udc. Register udc to OTG. */ fsl_otg_set_peripheral()
645 /* Set OTG port power, only for B-device */ fsl_otg_set_power()
651 pr_info("FSL OTG: Draw %d mA\n", mA); fsl_otg_set_power()
718 * Interrupt handler. OTG/host/peripheral share the same int line.
719 * OTG driver clears OTGSC interrupts and leaves USB interrupts
739 /* process OTG interrupts */ fsl_otg_isr()
788 /* Initialize the global variable fsl_otg_dev and request IRQ for OTG */ fsl_otg_conf()
813 pr_info("Couldn't init OTG timers\n"); fsl_otg_conf()
818 /* Set OTG state machine operations */ fsl_otg_conf()
837 pr_warn(FSL_OTG_NAME ": unable to register OTG transceiver.\n"); fsl_otg_conf()
849 /* OTG Initialization */ usb_otg_start()
967 /* enable OTG ID pin interrupt */ usb_otg_start()
1015 "OTG state: %s\n\n", show_fsl_usb2_otg_state()
1063 /* Char driver interface to control some OTG input */
1131 /* configure the OTG */ fsl_otg_probe()
1134 dev_err(&pdev->dev, "Couldn't configure OTG module\n"); fsl_otg_probe()
1138 /* start OTG */ fsl_otg_probe()
1141 dev_err(&pdev->dev, "Can't init FSL OTG device\n"); fsl_otg_probe()
1147 dev_err(&pdev->dev, "unable to register FSL OTG device\n"); fsl_otg_probe()
H A Dphy-mv-usb.h71 /* PXA OTG state machine */
78 /* OTG inputs */
H A Dphy-fsl-usb.h91 /* PORTSC Register Bit Masks,Only one PORT in OTG mode*/
159 /* OTG Status Control Register Bit Masks */
223 /* OTG interrupt enable bit masks */
233 /* OTG interrupt status bit masks */
391 /* Command to OTG driver ioctl */
H A Dphy-gpio-vbus-usb.c128 /* drawing a "unit load" is *always* OK, except for OTG */ gpio_vbus_work()
174 /* OTG transceiver interface */
228 /* for non-OTG B devices: set/clear transceiver suspend mode */ gpio_vbus_set_suspend()
395 MODULE_DESCRIPTION("simple GPIO controlled OTG transceiver driver");
H A Dphy-mv-usb.c31 #define DRIVER_DESC "Marvell USB OTG transceiver driver"
708 dev_dbg(&pdev->dev, "cannot create workqueue for OTG\n"); mv_otg_probe()
714 /* OTG common part */ mv_otg_probe()
811 dev_err(&pdev->dev, "Request irq %d for OTG failed\n", mv_otg_probe()
839 "successful probe OTG device %s clock gating.\n", mv_otg_probe()
862 "OTG state is not B_IDLE, it is %d!\n", mv_otg_suspend()
H A Dphy-msm-usb.c1117 * We support OTG, Peripheral only and Host only configurations. In case
1118 * of OTG, mode switch (host-->peripheral/peripheral-->host) can happen
1587 /* Enable second PHY with the OTG port */ msm_otg_probe()
1591 dev_info(&pdev->dev, "OTG regs = %p\n", motg->regs); msm_otg_probe()
1748 dev_dbg(dev, "OTG runtime idle\n"); msm_otg_runtime_idle()
1766 dev_dbg(dev, "OTG runtime suspend\n"); msm_otg_runtime_suspend()
1774 dev_dbg(dev, "OTG runtime resume\n"); msm_otg_runtime_resume()
1784 dev_dbg(dev, "OTG PM suspend\n"); msm_otg_pm_suspend()
1793 dev_dbg(dev, "OTG PM resume\n"); msm_otg_pm_resume()
H A Dphy.c403 * usb_remove_phy - remove the OTG PHY
404 * @x: the USB OTG PHY to be removed;
H A Dphy-generic.c123 /* drawing a "unit load" is *always* OK, except for OTG */ nop_gpio_vbus_thread()
H A Dphy-tahvo.c383 /* Create OTG interface */ tahvo_usb_probe()
H A Dphy-twl6030-usb.c2 * twl6030_usb - TWL6030 USB transceiver, talking to OMAP OTG driver.
/linux-4.1.27/arch/arm/mach-pxa/
H A Dpxa3xx-ulpi.c129 /* setup OTG sync mode */ pxa310_otg_transceiver_rtsm()
144 pr_err("OTG transceiver init failed"); pxa310_start_otg_host_transcvr()
150 pr_err("OTG transceiver VBUS set failed"); pxa310_start_otg_host_transcvr()
156 pr_err("OTG transceiver Host mode set failed"); pxa310_start_otg_host_transcvr()
181 /* start OTG host controller */ pxa310_start_otg_hc()
329 /* Only PXA310 U2D has OTG functionality */ pxa3xx_u2d_probe()
/linux-4.1.27/drivers/usb/gadget/udc/
H A Dpxa27x_udc.h81 #define UDCOTGICR_IESF (1 << 24) /* OTG SET_FEATURE command recvd */
86 #define UDCOTGICR_IEVV40R (1 << 9) /* OTG Vbus Valid 4.0V Rising Edge
88 #define UDCOTGICR_IEVV40F (1 << 8) /* OTG Vbus Valid 4.0V Falling Edge
90 #define UDCOTGICR_IEVV44R (1 << 7) /* OTG Vbus Valid 4.4V Rising Edge
92 #define UDCOTGICR_IEVV44F (1 << 6) /* OTG Vbus Valid 4.4V Falling Edge
94 #define UDCOTGICR_IESVR (1 << 5) /* OTG Session Valid Rising Edge
96 #define UDCOTGICR_IESVF (1 << 4) /* OTG Session Valid Falling Edge
98 #define UDCOTGICR_IESDR (1 << 3) /* OTG A-Device SRP Detect Rising
100 #define UDCOTGICR_IESDF (1 << 2) /* OTG A-Device SRP Detect Falling
102 #define UDCOTGICR_IEIDR (1 << 1) /* OTG ID Change Rising Edge
104 #define UDCOTGICR_IEIDF (1 << 0) /* OTG ID Change Falling Edge
119 #define UP2OCR_IDON (1 << 10) /* OTG ID Read Enable */
H A Dfotg210.h2 * Faraday FOTG210 USB OTG controller
18 /* Global Mask of HC/OTG/DEV interrupt Register(0xC4) */
H A Domap_udc.h2 * omap_udc.h -- for omap 3.2 udc, with OTG support
H A Dfsl_udc_core.c386 /* if we're in OTG mode, and the Host is currently using the port, dr_controller_stop()
1446 /* Note: The driver has not include OTG support yet.
1447 * This will be set when OTG support is added */
1869 /* Disable ISR for OTG host mode */ fsl_udc_irq()
1954 /* Suspend the controller until OTG enable it */ fsl_udc_start()
1956 printk(KERN_INFO "Suspend udc for OTG auto detect\n"); fsl_udc_start()
2358 ERR("Can't find OTG driver!\n"); fsl_udc_probe()
2572 * Used by OTG statemachine to disable gadget temporarily
2674 /* udc suspend/resume called from OTG driver */
H A Domap_udc.c2 * omap_udc.c -- for OMAP full speed udc; most chips support OTG.
1148 /* NOTE: OTG spec erratum says that OTG devices may omap_wakeup()
1157 /* NOTE: non-OTG systems may use SRP TOO... */ omap_wakeup()
1381 * ASSUMES OTG state machine B_BUS_REQ input is true. update_otg()
2330 /* OTG controller registers */ proc_udc_show()
2794 * use it. Except for OTG, we don't _need_ to talk to one; omap_udc_probe()
2801 DBG("OTG requires external transceiver!\n"); omap_udc_probe()
H A Dmv_udc_core.c2336 /* if OTG is enabled, the following will be done in OTG driver*/ mv_udc_suspend()
2371 /* if OTG is enabled, the following will be done in OTG driver*/ mv_udc_resume()
H A Dpxa27x_udc.c2563 * We do not handle OTG yet. pxa_udc_resume()
2566 * it indicates that OTG pad is retaining its state. pxa_udc_resume()
2568 * Software must configure the USB OTG pad, UDC, and UHC pxa_udc_resume()
H A Dlpc32xx_udc.c3154 /* Enable USB OTG clock */ lpc32xx_udc_probe()
/linux-4.1.27/drivers/usb/isp1760/
H A Disp1760-core.c84 * PORT 1 Control register of the ISP1760 is the OTG control register isp1760_init_core()
87 * TODO: Really support OTG. For now we configure port 1 in device mode isp1760_init_core()
88 * when OTG is requested. isp1760_init_core()
H A Disp1760-core.h33 #define ISP1760_FLAG_OTG_EN 0x00000004 /* Port 1 supports OTG */
H A Disp1760-hcd.c6 * - OTG
/linux-4.1.27/include/linux/power/
H A Dsmb347-charger.h72 * @use_usb_otg: USB OTG output can be used (not implemented yet)
79 * example OTG charging controlled via OTG transceiver driver and not by
/linux-4.1.27/arch/mips/pci/
H A Dfixup-lemote2f.c80 case 7: /* for OTG */ pcibios_map_irq()
124 /* THE OHCI, EHCI, UDC, OTG are shared with interrupt in PIC */ loongson_cs5536_ohci_fixup()
/linux-4.1.27/arch/arm/mach-imx/
H A Dehci-imx27.c46 case 0: /* OTG port */ mx27_initialize_usb_hw()
H A Dehci-imx31.c46 case 0: /* OTG port */ mx31_initialize_usb_hw()
H A Dehci-imx35.c48 case 0: /* OTG port */ mx35_initialize_usb_hw()
H A Dmach-mx31_3ds.c67 /* USB OTG reset */
69 /* USB OTG */
560 * USB OTG
588 pr_err("Failed to request the USB OTG reset gpio\n"); mx31_3ds_usbotg_init()
594 pr_err("Failed to drive the USB OTG reset gpio\n"); mx31_3ds_usbotg_init()
H A Dmach-armadillo5x0.c105 /* OTG */
160 /* OTG phy reset*/ usbotg_init()
161 err = gpio_request(OTG_RESET, "USB-OTG-RESET"); usbotg_init()
H A Dclk-pfd.c40 #define OTG 0xc macro
H A Dmx31moboard-smartbot.c199 printk(KERN_WARNING "Unknown board %d, USB OTG not initialized", mx31moboard_smartbot_init()
H A Dmach-imx27_visstrim_m10.c114 /* USB OTG */
425 /* USB OTG */ otg_phy_init()
H A Dmach-mx27_3ds.c92 /* OTG */
H A Dmach-pca100.c99 /* OTG */
H A Dmach-mx31moboard.c73 /* USB OTG */
H A Dmach-mx35_3ds.c506 /* OTG config */
H A Dmach-pcm037.c171 /* OTG */
/linux-4.1.27/arch/arm/mach-omap1/
H A Dusb.c2 * Platform level USB initialization for FS USB OTG controller on omap1 and 24xx
43 * - 1611B H2 (with usb1 mini-AB) using standard Mini-B or OTG cables
50 * - 1710 H3 (with usb1 mini-AB) using standard Mini-B or OTG cables
161 pr_debug("can't register OTG device, %d\n", status); omap_otg_init()
345 * - OTG support on this port not yet written omap1_usb0_init()
372 /* NOTE: SPEED and SUSP aren't configured here. OTG hosts omap1_usb0_init()
H A Dboard-h2.c353 /* needs OTG cable, or NONSTANDARD (B-to-MiniB) */
/linux-4.1.27/arch/mips/include/asm/mach-pmcs-msp71xx/
H A Dmsp_usb.h99 u32 otgsc; /* 0xa4: OTG status & control */
112 u32 otgsc; /* 0xa4: OTG status & control */
/linux-4.1.27/drivers/usb/c67x00/
H A Dc67x00-drv.c31 * to be host, device or OTG (with some limitations, E.G. only SIE1 can be OTG).
/linux-4.1.27/drivers/usb/host/
H A Dehci-msm.c107 * OTG driver takes care of PHY initialization, clock management, ehci_msm_probe()
131 * OTG device parent of HCD takes care of putting ehci_msm_probe()
H A Dohci-omap.c209 /* default/minimum OTG power budget: 8 mA */ ohci_omap_reset()
213 /* boards can use OTG transceivers in non-OTG modes */ ohci_omap_reset()
H A Dehci-mv.c25 /* Which mode does this ehci running OTG/Host ? */
252 ehci_mv->mode == MV_USB_MODE_OTG ? "OTG" : "Host"); mv_ehci_probe()
H A Dohci-pxa27x.c309 /* Clear any OTG Pin Hold */ pxa27x_start_hc()
H A Doxu210hp-hcd.c2748 * and there's no companion controller unless maybe for USB OTG.) oxu_run()
3689 /* Enable all needed top interrupt except OTG SPH core */ oxu_configuration()
3773 /* Create the OTG controller */ oxu_init()
3776 dev_err(&pdev->dev, "cannot create OTG controller!\n"); oxu_init()
3844 * SPH & OTG devices oxu_drv_probe()
H A Disp1362.h549 case ISP1362_INT_OTG: return "OTG"; ISP1362_INT_NAME()
H A Dehci-hcd.c618 * and there's no companion controller unless maybe for USB OTG.) ehci_run()
H A Dsl811-hcd.c13 * for the peripheral role; or OTG (that'd need much external circuitry).
H A Dfotg210-hcd.c5281 * and there's no companion controller unless maybe for USB OTG.) fotg210_run()
H A Dfusbh200-hcd.c5201 * and there's no companion controller unless maybe for USB OTG.) fusbh200_run()
/linux-4.1.27/drivers/usb/gadget/legacy/
H A Dzero.c85 #define DRIVER_VENDOR_NUM 0x1a0a /* OTG test device IDs */
92 * It's always set if OTG mode is enabled.
130 * it would not be called "OTG" ...
342 /* support OTG systems */ zero_bind()
H A Dacm_ms.c67 * it would not be called "OTG" ...
H A Dcdc2.c68 * it would not be called "OTG" ...
H A Dhid.c76 * it would not be called "OTG" ...
H A Dmass_storage.c73 * it would not be called "OTG" ...
H A Dncm.c77 * it would not be called "OTG" ...
H A Dserial.c87 * it would not be called "OTG" ...
H A Daudio.c158 * it would not be called "OTG" ...
H A Dmulti.c89 * it would not be called "OTG" ...
H A Dg_ffs.c99 * it would not be called "OTG" ...
H A Dether.c179 * it would not be called "OTG" ...
/linux-4.1.27/arch/arm/mach-omap2/
H A Dusb-musb.c5 * MENTOR USB OTG controller on OMAP3430
/linux-4.1.27/arch/arm/mach-davinci/
H A Dusb.c46 /* OTG requires a Mini-AB connector */
H A Dboard-da830-evm.c134 * Otherwise, we want to use the OTG mode and enable VBUS comparators. da830_evm_usb_init()
/linux-4.1.27/arch/arm/mach-omap1/include/mach/
H A Dusb.h35 * OTG and transceiver registers, for OMAPs starting with ARM926
/linux-4.1.27/arch/mips/alchemy/common/
H A Dusb.c7 * Au1200: one register to control access and clocks to O/EHCI, UDC and OTG
44 #define USBCFG_GME (1 << 6) /* OTG mem access */
73 #define USB_DWC_CTRL1_OTGD 0x04 /* set to DISable OTG */
534 /* FIXME: write an OTG driver to do that */ au1200_usb_pm()
/linux-4.1.27/arch/arm/mach-mmp/
H A Dgplugd.c32 /* USB OTG PEN */
H A Ddevices.c196 /* Turn on UTMI PHY OTG extension */ usb_phy_init_internal()
/linux-4.1.27/drivers/phy/
H A Dphy-exynos5250-usb2.c216 /* OTG configuration */ exynos5250_power_on()
268 /* OTG configuration */ exynos5250_power_on()
H A Dphy-twl4030-usb.c2 * twl4030_usb - TWL4030 USB transceiver, talking to OMAP OTG controller
294 * signal is active, the OTG module is activated, and twl4030_usb_linkstat()
784 /* disable complete OTG block */ twl4030_usb_remove()
H A Dphy-dm816x-usb.c32 * phy as being SR70LX Synopsys USB 2.0 OTG nanoPHY. It also seems at
/linux-4.1.27/drivers/bus/
H A Domap_l3_smx.h176 /* HSUSB OTG has 1 ID */
246 /* USB OTG IA */
/linux-4.1.27/drivers/usb/common/
H A Dusb-otg-fsm.c2 * OTG Finite State Machine from OTG spec
/linux-4.1.27/drivers/usb/dwc3/
H A Ddwc3-st.c116 * OTG and dual role are not yet supported!
273 * as soon as OTG is available. st_dwc3_probe()
H A Ddebugfs.c378 seq_printf(s, "OTG\n"); dwc3_mode_show()
H A Ddwc3-omap.c293 dev_dbg(omap->dev, "OTG Event\n"); dwc3_omap_interrupt()
H A Dcore.h143 /* OTG Registers */
/linux-4.1.27/arch/mips/alchemy/devboards/
H A Ddb1200.c875 /* NOTE: GPIO215 controls OTG VBUS supply. In SPI mode however db1200_dev_setup()
878 * As a result, in SPI mode, OTG simply won't work (PSC0 uses db1200_dev_setup()
883 /* switch off OTG VBUS supply */ db1200_dev_setup()
897 printk(KERN_INFO " OTG port VBUS supply available!\n"); db1200_dev_setup()
905 printk(KERN_INFO " OTG port VBUS supply disabled\n"); db1200_dev_setup()
/linux-4.1.27/drivers/power/
H A Dda9150-charger.c436 /* Enable OTG Boost */ da9150_charger_otg_work()
456 dev_dbg(charger->dev, "DA9150 OTG notify %lu\n", val); da9150_charger_otg_ncb()
589 /* Setup OTG reporting & configuration */ da9150_charger_probe()
H A Dtwl4030_charger.c393 dev_dbg(bci->dev, "OTG notify %lu\n", val); twl4030_bci_usb_ncb()
H A Dsmb347-charger.c661 * If configured by platform data, we enable hardware Auto-OTG smb347_hw_init()
/linux-4.1.27/arch/arm/mach-nomadik/
H A Dcpu-8815.c52 #define NOMADIK_USB_BASE 0x10170000 /* USB-OTG conf reg base */
/linux-4.1.27/include/linux/mfd/
H A Drt5033-private.h146 * and boost mode for OTG
/linux-4.1.27/drivers/staging/octeon-usb/
H A Docteon-hcd.h193 * @otgen: OTG Function Enabled (OtgEn)
195 * OTG capabilities.
196 * * 1'b0: Not OTG capable
197 * * 1'b1: OTG Capable
278 * @otgintmsk: OTG Interrupt Mask (OTGIntMsk)
491 * @otgint: OTG Interrupt (OTGInt)
492 * The core sets this bit to indicate an OTG protocol event. The
493 * application must read the OTG Interrupt Status (GOTGINT)
977 * This field is set by the application and cleared by the OTG
988 * the OTG host must perform a transfer in an odd (micro)frame.
1201 * The application sets this field to request the OTG host to
1348 * Currently, the OTG Host supports only one port.
1701 * @otgdisable: OTG Block Disable
H A Docteon-hcd.c899 * OTG interrupt mask, USBC_GINTMSK[OTGINTMSK] = 1 cvmx_usb_initialize()
/linux-4.1.27/arch/x86/kernel/
H A Dpmc_atom.c59 {"14 - OTG", BIT_OTG},
/linux-4.1.27/arch/m32r/platforms/m32700ut/
H A Dsetup.c350 outw(USBCR_OTGS, USBCR); /* USBCR: non-OTG */ init_IRQ()
/linux-4.1.27/arch/m32r/platforms/opsput/
H A Dsetup.c350 outw(USBCR_OTGS, USBCR); /* USBCR: non-OTG */ init_IRQ()
/linux-4.1.27/arch/blackfin/mach-bf527/include/mach/
H A DdefBF525.h56 /* USB OTG Control Registers */
58 #define USB_OTG_DEV_CTL 0xffc03900 /* OTG Device Control Register */
59 #define USB_OTG_VBUS_IRQ 0xffc03904 /* OTG VBUS Control Interrupts */
H A DcdefBF525.h90 /* USB OTG Control Registers */
/linux-4.1.27/arch/blackfin/mach-bf548/include/mach/
H A DdefBF542.h120 /* USB OTG Control Registers */
122 #define USB_OTG_DEV_CTL 0xffc03d00 /* OTG Device Control Register */
123 #define USB_OTG_VBUS_IRQ 0xffc03d04 /* OTG VBUS Control Interrupts */
H A DdefBF547.h234 /* USB OTG Control Registers */
236 #define USB_OTG_DEV_CTL 0xffc03d00 /* OTG Device Control Register */
237 #define USB_OTG_VBUS_IRQ 0xffc03d04 /* OTG VBUS Control Interrupts */
H A DcdefBF542.h210 /* USB OTG Control Registers */
H A DcdefBF547.h377 /* USB OTG Control Registers */
/linux-4.1.27/arch/arm/mach-cns3xxx/
H A Dcns3xxx.h145 #define CNS3XXX_USBOTG_BASE 0x81000000 /* USB OTG Control */
/linux-4.1.27/arch/arm/mach-lpc32xx/include/mach/
H A Dplatform.h705 /* USB OTG CLK CTRL bit defines */
/linux-4.1.27/drivers/mfd/
H A Dtps65010.c609 /* USB hosts can't draw VBUS. OTG devices could, later tps65010_probe()
610 * when OTG infrastructure enables it. USB peripherals tps65010_probe()
/linux-4.1.27/drivers/extcon/
H A Dextcon-max77693.c526 * - Support OTG(On-The-Go) device (Ex: Mouse/Keyboard) max77693_muic_dock_handler()
889 * - Support OTG(On-The-Go) device (Ex: Mouse/Keyboard) max77693_muic_chg_handler()
/linux-4.1.27/include/uapi/linux/usb/
H A Dch9.h12 * USB 2.0 adds an additional "On The Go" (OTG) mode, which lets systems
669 /* USB_DT_OTG (from OTG 1.0a supplement) */
/linux-4.1.27/arch/arm/mach-ux500/
H A Dboard-mop500-regulators.c172 /* HS USB OTG physical interface */
/linux-4.1.27/drivers/regulator/
H A Dtwl-regulator.c28 * USB OTG transceiver, an RTC, ADC, PWM, and lots more. Some versions
/linux-4.1.27/include/linux/
H A Dusb.h357 u8 otg_port; /* 0, or number of OTG/HNP port */
359 unsigned b_hnp_enable:1; /* OTG: did A-Host enable HNP? */
/linux-4.1.27/drivers/usb/gadget/
H A Dcomposite.c399 /* There may be e.g. OTG descriptors */ config_buf()

Completed in 3657 milliseconds