Home
last modified time | relevance | path

Searched refs:otg_regs (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/usb/cdns3/
H A Ddrd.c90 id = readl(&cdns->otg_regs->sts) & OTGSTS_ID_VALUE; in cdns_get_id()
100 vbus = !!(readl(&cdns->otg_regs->sts) & OTGSTS_VBUS_VALID); in cdns_get_vbus()
186 &cdns->otg_regs->cmd); in cdns_drd_host_on()
194 ret = readl_poll_timeout_atomic(&cdns->otg_regs->sts, val, in cdns_drd_host_on()
215 &cdns->otg_regs->cmd); in cdns_drd_host_off()
218 readl_poll_timeout_atomic(&cdns->otg_regs->state, val, in cdns_drd_host_off()
238 writel(OTGCMD_DEV_BUS_REQ | reg, &cdns->otg_regs->cmd); in cdns_drd_gadget_on()
247 ret = readl_poll_timeout_atomic(&cdns->otg_regs->sts, val, in cdns_drd_gadget_on()
275 &cdns->otg_regs->cmd); in cdns_drd_gadget_off()
277 readl_poll_timeout_atomic(&cdns->otg_regs->state, val, in cdns_drd_gadget_off()
[all …]
H A Dcdns3-imx.c254 void __iomem *otg_regs = (void __iomem *)(cdns->otg_regs); in cdns_imx_platform_suspend() local
335 value = readl(otg_regs + OTGSTS); in cdns_imx_platform_suspend()
336 ret = readl_poll_timeout(otg_regs + OTGSTS, value, in cdns_imx_platform_suspend()
H A Dcore.h96 struct cdns_otg_common_regs __iomem *otg_regs; member