Lines Matching +full:host +full:- +full:wakeup
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * mtu3.h - MediaTek USB3 DRD header
34 #define MU3D_EP_TXCR0(epnum) (U3D_TX1CSR0 + (((epnum) - 1) * 0x10))
35 #define MU3D_EP_TXCR1(epnum) (U3D_TX1CSR1 + (((epnum) - 1) * 0x10))
36 #define MU3D_EP_TXCR2(epnum) (U3D_TX1CSR2 + (((epnum) - 1) * 0x10))
38 #define MU3D_EP_RXCR0(epnum) (U3D_RX1CSR0 + (((epnum) - 1) * 0x10))
39 #define MU3D_EP_RXCR1(epnum) (U3D_RX1CSR1 + (((epnum) - 1) * 0x10))
40 #define MU3D_EP_RXCR2(epnum) (U3D_RX1CSR2 + (((epnum) - 1) * 0x10))
42 #define USB_QMU_TQHIAR(epnum) (U3D_TXQHIAR1 + (((epnum) - 1) * 0x4))
43 #define USB_QMU_RQHIAR(epnum) (U3D_RXQHIAR1 + (((epnum) - 1) * 0x4))
45 #define USB_QMU_RQCSR(epnum) (U3D_RXQCSR1 + (((epnum) - 1) * 0x10))
46 #define USB_QMU_RQSAR(epnum) (U3D_RXQSAR1 + (((epnum) - 1) * 0x10))
47 #define USB_QMU_RQCPR(epnum) (U3D_RXQCPR1 + (((epnum) - 1) * 0x10))
49 #define USB_QMU_TQCSR(epnum) (U3D_TXQCSR1 + (((epnum) - 1) * 0x10))
50 #define USB_QMU_TQSAR(epnum) (U3D_TXQSAR1 + (((epnum) - 1) * 0x10))
51 #define USB_QMU_TQCPR(epnum) (U3D_TXQCPR1 + (((epnum) - 1) * 0x10))
111 * @MU3D_EP0_STATE_STALL: ep0 is in stall status, will be auto-cleared
123 * MTU3_DR_FORCE_NONE: automatically switch host and periperal mode
125 * MTU3_DR_FORCE_HOST: force to enter host mode and override OTG
197 * @vbus: vbus 5V used by host mode
203 * @role_sw : use USB Role Switch to support dual-role switch, can't use
206 * @is_u3_drd: whether port0 supports usb3.0 dual-role device or not
207 * @manual_drd_enabled: it's true when supports dual-role device by debugfs
208 * to switch host/device modes depending on user input.
226 * @vusb33: usb3.3V shared by device/host IP
228 * host only, device only or dual-role mode
229 * @u2_ports: number of usb2.0 host ports
230 * @u3_ports: number of usb3.0 host ports
233 * but when use dual-role mode, can't disable u2port0
236 * @dbgfs_root: only used when supports manual dual-role switch via debugfs
237 * @uwk_en: it's true when supports remote wakeup in host mode
238 * @uwk: syscon including usb wakeup glue layer between SSUSB IP and SPM
239 * @uwk_reg_base: the base address of the wakeup glue layer in @uwk
240 * @uwk_vers: the version of the wakeup glue layer
262 /* usb wakeup for host mode */
310 * struct mtu3 - device driver instance data.
313 * @may_wakeup: means device's remote wakeup is enabled
386 return list_first_entry_or_null(&mep->req_list, struct mtu3_request, in next_request()