Home
last modified time | relevance | path

Searched refs:gotgctl (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/drivers/usb/dwc2/
H A Ddrd.c16 #define dwc2_ovr_gotgctl(gotgctl) \ argument
17 ((gotgctl) |= GOTGCTL_BVALOEN | GOTGCTL_AVALOEN | GOTGCTL_VBVALOEN | \
23 u32 gotgctl; in dwc2_ovr_init() local
27 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_init()
28 dwc2_ovr_gotgctl(gotgctl); in dwc2_ovr_init()
29 gotgctl &= ~(GOTGCTL_BVALOVAL | GOTGCTL_AVALOVAL | GOTGCTL_VBVALOVAL); in dwc2_ovr_init()
31 gotgctl |= GOTGCTL_AVALOVAL | GOTGCTL_VBVALOVAL; in dwc2_ovr_init()
33 gotgctl |= GOTGCTL_BVALOVAL | GOTGCTL_VBVALOVAL; in dwc2_ovr_init()
34 dwc2_writel(hsotg, gotgctl, GOTGCTL); in dwc2_ovr_init()
44 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_avalid() local
[all …]
H A Dcore_intr.c85 u32 gotgctl; in dwc2_handle_otg_intr() local
89 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
97 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
109 if (gotgctl & GOTGCTL_DEVHNPEN) { in dwc2_handle_otg_intr()
123 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
124 gotgctl &= ~GOTGCTL_DEVHNPEN; in dwc2_handle_otg_intr()
125 dwc2_writel(hsotg, gotgctl, GOTGCTL); in dwc2_handle_otg_intr()
131 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
132 if (gotgctl & GOTGCTL_SESREQSCS) { in dwc2_handle_otg_intr()
138 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
[all …]
H A Dplatform.c314 if (gr->gotgctl & GOTGCTL_CURMODE_HOST) in dwc2_driver_remove()
659 u32 ggpio, gotgctl; in dwc2_suspend() local
668 gotgctl = dwc2_readl(dwc2, GOTGCTL); in dwc2_suspend()
670 gotgctl |= GOTGCTL_DBNCE_FLTR_BYPASS; in dwc2_suspend()
671 gotgctl |= GOTGCTL_BVALOEN | GOTGCTL_AVALOEN; in dwc2_suspend()
673 if (gotgctl & GOTGCTL_ASESVLD) in dwc2_suspend()
674 gotgctl |= GOTGCTL_AVALOVAL; in dwc2_suspend()
675 if (gotgctl & GOTGCTL_BSESVLD) in dwc2_suspend()
676 gotgctl |= GOTGCTL_BVALOVAL; in dwc2_suspend()
677 dwc2_writel(dwc2, gotgctl, GOTGCTL); in dwc2_suspend()
[all …]
H A Dcore.c46 gr->gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_backup_global_registers()
85 dwc2_writel(hsotg, gr->gotgctl, GOTGCTL); in dwc2_restore_global_registers()
119 if (gr->gotgctl & GOTGCTL_CURMODE_HOST) in dwc2_exit_partial_power_down()
345 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_iddig_filter_enabled() local
347 if (gotgctl & GOTGCTL_DBNCE_FLTR_BYPASS) in dwc2_iddig_filter_enabled()
411 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_core_reset() local
414 if (!(gotgctl & GOTGCTL_CONID_B) || in dwc2_core_reset()
H A Dhcd.c3142 u32 gotgctl; in dwc2_conn_id_status_change() local
3147 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_conn_id_status_change()
3148 dev_dbg(hsotg->dev, "gotgctl=%0x\n", gotgctl); in dwc2_conn_id_status_change()
3150 !!(gotgctl & GOTGCTL_CONID_B)); in dwc2_conn_id_status_change()
3153 if (gotgctl & GOTGCTL_CONID_B) { in dwc2_conn_id_status_change()
3173 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_conn_id_status_change()
3174 if (!(gotgctl & GOTGCTL_CONID_B)) in dwc2_conn_id_status_change()
3275 u32 gotgctl; in dwc2_port_suspend() local
3283 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_port_suspend()
3284 gotgctl |= GOTGCTL_HSTSETHNPEN; in dwc2_port_suspend()
[all …]
H A Dcore.h680 u32 gotgctl; member
/openbmc/qemu/hw/usb/
H A Dhcd-dwc2.h77 uint32_t gotgctl; /* 00 */ member
H A Dhcd-dwc2.c1250 s->gotgctl = GOTGCTL_BSESVLD | GOTGCTL_ASESVLD | GOTGCTL_CONID_B; in dwc2_reset_enter()
/openbmc/u-boot/drivers/usb/gadget/
H A Ddwc2_udc_otg_regs.h52 u32 gotgctl; /* OTG Control & Status */ member
H A Ddwc2_udc_otg_xfer_dma.c547 usb_status = readl(&reg->gotgctl); in dwc2_udc_irq()
/openbmc/u-boot/drivers/usb/host/
H A Ddwc2.h32 u32 gotgctl; /* 0x000 */ member
H A Ddwc2.c275 clrbits_le32(&regs->gotgctl, DWC2_GOTGCTL_HSTSETHNPEN); in dwc_otg_core_host_init()