Lines Matching refs:usb_dr_regs
54 static struct usb_dr_mmap *usb_dr_regs; variable
109 fsl_writel(temp, &usb_dr_regs->ulpiview); in write_ulpi()
121 tmp = fsl_readl(&usb_dr_regs->otgsc) & ~OTGSC_INTSTS_MASK; in fsl_otg_chrg_vbus()
131 fsl_writel(tmp, &usb_dr_regs->otgsc); in fsl_otg_chrg_vbus()
139 tmp = fsl_readl(&usb_dr_regs->otgsc) & ~OTGSC_INTSTS_MASK; in fsl_otg_dischrg_vbus()
149 fsl_writel(tmp, &usb_dr_regs->otgsc); in fsl_otg_dischrg_vbus()
158 tmp = fsl_readl(&usb_dr_regs->portsc) & ~PORTSC_W1C_BITS; in fsl_otg_drv_vbus()
159 fsl_writel(tmp | PORTSC_PORT_POWER, &usb_dr_regs->portsc); in fsl_otg_drv_vbus()
161 tmp = fsl_readl(&usb_dr_regs->portsc) & in fsl_otg_drv_vbus()
163 fsl_writel(tmp, &usb_dr_regs->portsc); in fsl_otg_drv_vbus()
175 tmp = fsl_readl(&usb_dr_regs->otgsc) & ~OTGSC_INTSTS_MASK; in fsl_otg_loc_conn()
182 fsl_writel(tmp, &usb_dr_regs->otgsc); in fsl_otg_loc_conn()
211 tmp = fsl_readl(&usb_dr_regs->otgsc) & ~OTGSC_INTSTS_MASK; in fsl_otg_start_pulse()
213 fsl_writel(tmp, &usb_dr_regs->otgsc); in fsl_otg_start_pulse()
449 command = fsl_readl(&usb_dr_regs->usbcmd); in otg_reset_controller()
451 fsl_writel(command, &usb_dr_regs->usbcmd); in otg_reset_controller()
452 while (fsl_readl(&usb_dr_regs->usbcmd) & (1 << 1)) in otg_reset_controller()
474 !!(fsl_readl(&usb_dr_regs->otgsc) & OTGSC_STS_A_VBUS_VALID); in fsl_otg_start_host()
712 otg_sc = fsl_readl(&usb_dr_regs->otgsc); in fsl_otg_isr()
716 fsl_writel(otg_sc, &usb_dr_regs->otgsc); in fsl_otg_isr()
857 usb_dr_regs = ioremap(res->start, sizeof(struct usb_dr_mmap)); in usb_otg_start()
858 p_otg->dr_mem_map = (struct usb_dr_mmap *)usb_dr_regs; in usb_otg_start()
859 pdata->regs = (void *)usb_dr_regs; in usb_otg_start()
993 iounmap((void *)usb_dr_regs); in fsl_otg_remove()