Searched refs:gotgctl (Results 1 – 11 of 11) sorted by relevance
| /OK3568_Linux_fs/kernel/drivers/usb/dwc2/ |
| H A D | drd.c | 19 u32 gotgctl; in dwc2_ovr_init() local 23 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_init() 24 gotgctl |= GOTGCTL_BVALOEN | GOTGCTL_AVALOEN | GOTGCTL_VBVALOEN; in dwc2_ovr_init() 25 gotgctl |= GOTGCTL_DBNCE_FLTR_BYPASS; in dwc2_ovr_init() 26 gotgctl &= ~(GOTGCTL_BVALOVAL | GOTGCTL_AVALOVAL | GOTGCTL_VBVALOVAL); in dwc2_ovr_init() 27 dwc2_writel(hsotg, gotgctl, GOTGCTL); in dwc2_ovr_init() 36 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_avalid() local 39 if ((valid && (gotgctl & GOTGCTL_ASESVLD)) || in dwc2_ovr_avalid() 40 (!valid && !(gotgctl & GOTGCTL_ASESVLD))) in dwc2_ovr_avalid() 43 gotgctl &= ~GOTGCTL_BVALOVAL; in dwc2_ovr_avalid() [all …]
|
| H A D | core_intr.c | 115 u32 gotgctl; in dwc2_handle_otg_intr() local 119 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr() 127 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr() 139 if (gotgctl & GOTGCTL_DEVHNPEN) { in dwc2_handle_otg_intr() 153 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr() 154 gotgctl &= ~GOTGCTL_DEVHNPEN; in dwc2_handle_otg_intr() 155 dwc2_writel(hsotg, gotgctl, GOTGCTL); in dwc2_handle_otg_intr() 161 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr() 162 if (gotgctl & GOTGCTL_SESREQSCS) { in dwc2_handle_otg_intr() 168 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr() [all …]
|
| H A D | platform.c | 720 u32 ggpio, gotgctl; in dwc2_suspend() local 729 gotgctl = dwc2_readl(dwc2, GOTGCTL); in dwc2_suspend() 731 gotgctl |= GOTGCTL_DBNCE_FLTR_BYPASS; in dwc2_suspend() 732 gotgctl |= GOTGCTL_BVALOEN | GOTGCTL_AVALOEN; in dwc2_suspend() 734 if (gotgctl & GOTGCTL_ASESVLD) in dwc2_suspend() 735 gotgctl |= GOTGCTL_AVALOVAL; in dwc2_suspend() 736 if (gotgctl & GOTGCTL_BSESVLD) in dwc2_suspend() 737 gotgctl |= GOTGCTL_BVALOVAL; in dwc2_suspend() 738 dwc2_writel(dwc2, gotgctl, GOTGCTL); in dwc2_suspend() 773 u32 ggpio, gotgctl; in dwc2_resume() local [all …]
|
| H A D | core.c | 76 gr->gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_backup_global_registers() 115 dwc2_writel(hsotg, gr->gotgctl, GOTGCTL); in dwc2_restore_global_registers() 444 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_iddig_filter_enabled() local 446 if (gotgctl & GOTGCTL_DBNCE_FLTR_BYPASS) in dwc2_iddig_filter_enabled() 513 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_core_reset() local 516 if (!(gotgctl & GOTGCTL_CONID_B) || in dwc2_core_reset()
|
| H A D | hcd.c | 3190 u32 gotgctl; in dwc2_conn_id_status_change() local 3198 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_conn_id_status_change() 3199 dev_dbg(hsotg->dev, "gotgctl=%0x\n", gotgctl); in dwc2_conn_id_status_change() 3201 !!(gotgctl & GOTGCTL_CONID_B)); in dwc2_conn_id_status_change() 3204 if (gotgctl & GOTGCTL_CONID_B) { in dwc2_conn_id_status_change() 3224 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_conn_id_status_change() 3225 if (!(gotgctl & GOTGCTL_CONID_B)) in dwc2_conn_id_status_change() 3308 u32 gotgctl; in dwc2_port_suspend() local 3315 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_port_suspend() 3316 gotgctl |= GOTGCTL_HSTSETHNPEN; in dwc2_port_suspend() [all …]
|
| H A D | core.h | 699 u32 gotgctl; member
|
| /OK3568_Linux_fs/u-boot/drivers/usb/gadget/ |
| H A D | dwc2_udc_otg_regs.h | 53 u32 gotgctl; /* OTG Control & Status */ member
|
| H A D | dwc2_udc_otg.c | 1186 setbits_le32(&usbotg_reg->gotgctl, in dwc2_udc_otg_probe() 1239 return readl(&usbotg_reg->gotgctl) & B_SESSION_VALID; in dwc2_udc_B_session_valid()
|
| H A D | dwc2_udc_otg_xfer_dma.c | 561 usb_status = readl(®->gotgctl); in dwc2_udc_irq()
|
| /OK3568_Linux_fs/u-boot/drivers/usb/host/ |
| H A D | dwc2.h | 33 u32 gotgctl; /* 0x000 */ member
|
| H A D | dwc2.c | 278 clrbits_le32(®s->gotgctl, DWC2_GOTGCTL_HSTSETHNPEN); in dwc_otg_core_host_init()
|