Home
last modified time | relevance | path

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

/u-boot/drivers/usb/host/
A Ddwc2.c123 &regs->grstctl); in dwc_otg_flush_tx_fifo()
124 ret = wait_for_bit_le32(&regs->grstctl, DWC2_GRSTCTL_TXFFLSH, in dwc_otg_flush_tx_fifo()
143 writel(DWC2_GRSTCTL_RXFFLSH, &regs->grstctl); in dwc_otg_flush_rx_fifo()
144 ret = wait_for_bit_le32(&regs->grstctl, DWC2_GRSTCTL_RXFFLSH, in dwc_otg_flush_rx_fifo()
163 ret = wait_for_bit_le32(&regs->grstctl, DWC2_GRSTCTL_AHBIDLE, in dwc_otg_core_reset()
169 writel(DWC2_GRSTCTL_CSFTRST, &regs->grstctl); in dwc_otg_core_reset()
170 ret = wait_for_bit_le32(&regs->grstctl, DWC2_GRSTCTL_CSFTRST, in dwc_otg_core_reset()
A Ddwc2.h36 u32 grstctl; /* 0x010 */ member
/u-boot/drivers/usb/gadget/
A Ddwc2_udc_otg.c458 unsigned int uTemp = writel(CORE_SOFT_RESET, &reg->grstctl); in reconfig_usbd()
563 writel(RX_FIFO_FLUSH, &reg->grstctl); in reconfig_usbd()
564 while (readl(&reg->grstctl) & RX_FIFO_FLUSH) in reconfig_usbd()
568 writel(TX_FIFO_FLUSH_ALL, &reg->grstctl); in reconfig_usbd()
569 writel(TX_FIFO_FLUSH_ALL | TX_FIFO_FLUSH, &reg->grstctl); in reconfig_usbd()
570 while (readl(&reg->grstctl) & TX_FIFO_FLUSH) in reconfig_usbd()
A Ddwc2_udc_otg_regs.h57 u32 grstctl; /* Core Reset */ member
A Ddwc2_udc_otg_xfer_dma.c164 writel(TX_FIFO_NUMBER(ep->fifo_num), &reg->grstctl); in setdma_tx()
165 writel(TX_FIFO_NUMBER(ep->fifo_num) | TX_FIFO_FLUSH, &reg->grstctl); in setdma_tx()
166 while (readl(&reg->grstctl) & TX_FIFO_FLUSH) in setdma_tx()

Completed in 14 milliseconds