Home
last modified time | relevance | path

Searched refs:grstctl (Results 1 – 7 of 7) sorted by relevance

/openbmc/u-boot/drivers/usb/gadget/
H A Ddwc2_udc_otg.c400 unsigned int uTemp = writel(CORE_SOFT_RESET, &reg->grstctl); in reconfig_usbd()
490 writel(RX_FIFO_FLUSH, &reg->grstctl); in reconfig_usbd()
491 while (readl(&reg->grstctl) & RX_FIFO_FLUSH) in reconfig_usbd()
495 writel(TX_FIFO_FLUSH_ALL, &reg->grstctl); in reconfig_usbd()
496 writel(TX_FIFO_FLUSH_ALL | TX_FIFO_FLUSH, &reg->grstctl); in reconfig_usbd()
497 while (readl(&reg->grstctl) & TX_FIFO_FLUSH) in reconfig_usbd()
H A Ddwc2_udc_otg_regs.h56 u32 grstctl; /* Core Reset */ member
H A Ddwc2_udc_otg_xfer_dma.c159 writel(TX_FIFO_NUMBER(ep->fifo_num), &reg->grstctl); in setdma_tx()
160 writel(TX_FIFO_NUMBER(ep->fifo_num) | TX_FIFO_FLUSH, &reg->grstctl); in setdma_tx()
161 while (readl(&reg->grstctl) & TX_FIFO_FLUSH) in setdma_tx()
/openbmc/u-boot/drivers/usb/host/
H A Ddwc2.c113 &regs->grstctl); in dwc_otg_flush_tx_fifo()
114 ret = wait_for_bit_le32(&regs->grstctl, DWC2_GRSTCTL_TXFFLSH, in dwc_otg_flush_tx_fifo()
132 writel(DWC2_GRSTCTL_RXFFLSH, &regs->grstctl); in dwc_otg_flush_rx_fifo()
133 ret = wait_for_bit_le32(&regs->grstctl, DWC2_GRSTCTL_RXFFLSH, in dwc_otg_flush_rx_fifo()
151 ret = wait_for_bit_le32(&regs->grstctl, DWC2_GRSTCTL_AHBIDLE, in dwc_otg_core_reset()
157 writel(DWC2_GRSTCTL_CSFTRST, &regs->grstctl); in dwc_otg_core_reset()
158 ret = wait_for_bit_le32(&regs->grstctl, DWC2_GRSTCTL_CSFTRST, in dwc_otg_core_reset()
H A Ddwc2.h36 u32 grstctl; /* 0x010 */ member
/openbmc/qemu/hw/usb/
H A Dhcd-dwc2.h81 uint32_t grstctl; /* 10 */ member
H A Dhcd-dwc2.c1254 s->grstctl = GRSTCTL_AHBIDLE; in dwc2_reset_enter()