Lines Matching refs:usb2_base
157 void __iomem *usb2_base = ch->base; in rcar_gen3_set_host_mode() local
158 u32 val = readl(usb2_base + USB2_COMMCTRL); in rcar_gen3_set_host_mode()
165 writel(val, usb2_base + USB2_COMMCTRL); in rcar_gen3_set_host_mode()
170 void __iomem *usb2_base = ch->base; in rcar_gen3_set_linectrl() local
171 u32 val = readl(usb2_base + USB2_LINECTRL1); in rcar_gen3_set_linectrl()
179 writel(val, usb2_base + USB2_LINECTRL1); in rcar_gen3_set_linectrl()
184 void __iomem *usb2_base = ch->base; in rcar_gen3_enable_vbus_ctrl() local
195 val = readl(usb2_base + vbus_ctrl_reg); in rcar_gen3_enable_vbus_ctrl()
200 writel(val, usb2_base + vbus_ctrl_reg); in rcar_gen3_enable_vbus_ctrl()
205 void __iomem *usb2_base = ch->base; in rcar_gen3_control_otg_irq() local
206 u32 val = readl(usb2_base + USB2_OBINTEN); in rcar_gen3_control_otg_irq()
212 writel(val, usb2_base + USB2_OBINTEN); in rcar_gen3_control_otg_irq()
237 void __iomem *usb2_base = ch->base; in rcar_gen3_init_for_b_host() local
240 val = readl(usb2_base + USB2_LINECTRL1); in rcar_gen3_init_for_b_host()
241 writel(val | USB2_LINECTRL1_OPMODE_NODRV, usb2_base + USB2_LINECTRL1); in rcar_gen3_init_for_b_host()
247 val = readl(usb2_base + USB2_LINECTRL1); in rcar_gen3_init_for_b_host()
248 writel(val & ~USB2_LINECTRL1_OPMODE_NODRV, usb2_base + USB2_LINECTRL1); in rcar_gen3_init_for_b_host()
391 void __iomem *usb2_base = ch->base; in rcar_gen3_init_otg() local
395 val = readl(usb2_base + USB2_LINECTRL1); in rcar_gen3_init_otg()
398 writel(val, usb2_base + USB2_LINECTRL1); in rcar_gen3_init_otg()
401 val = readl(usb2_base + USB2_VBCTRL); in rcar_gen3_init_otg()
403 writel(val | USB2_VBCTRL_DRVVBUSSEL, usb2_base + USB2_VBCTRL); in rcar_gen3_init_otg()
404 val = readl(usb2_base + USB2_ADPCTRL); in rcar_gen3_init_otg()
405 writel(val | USB2_ADPCTRL_IDPULLUP, usb2_base + USB2_ADPCTRL); in rcar_gen3_init_otg()
409 writel(0xffffffff, usb2_base + USB2_OBINTSTA); in rcar_gen3_init_otg()
410 writel(ch->obint_enable_bits, usb2_base + USB2_OBINTEN); in rcar_gen3_init_otg()
418 void __iomem *usb2_base = ch->base; in rcar_gen3_phy_usb2_irq() local
419 u32 status = readl(usb2_base + USB2_OBINTSTA); in rcar_gen3_phy_usb2_irq()
424 writel(ch->obint_enable_bits, usb2_base + USB2_OBINTSTA); in rcar_gen3_phy_usb2_irq()
436 void __iomem *usb2_base = channel->base; in rcar_gen3_phy_usb2_init() local
451 val = readl(usb2_base + USB2_INT_ENABLE); in rcar_gen3_phy_usb2_init()
453 writel(val, usb2_base + USB2_INT_ENABLE); in rcar_gen3_phy_usb2_init()
454 writel(USB2_SPD_RSM_TIMSET_INIT, usb2_base + USB2_SPD_RSM_TIMSET); in rcar_gen3_phy_usb2_init()
455 writel(USB2_OC_TIMSET_INIT, usb2_base + USB2_OC_TIMSET); in rcar_gen3_phy_usb2_init()
473 void __iomem *usb2_base = channel->base; in rcar_gen3_phy_usb2_exit() local
481 val = readl(usb2_base + USB2_INT_ENABLE); in rcar_gen3_phy_usb2_exit()
485 writel(val, usb2_base + USB2_INT_ENABLE); in rcar_gen3_phy_usb2_exit()
497 void __iomem *usb2_base = channel->base; in rcar_gen3_phy_usb2_power_on() local
511 val = readl(usb2_base + USB2_USBCTR); in rcar_gen3_phy_usb2_power_on()
513 writel(val, usb2_base + USB2_USBCTR); in rcar_gen3_phy_usb2_power_on()
515 writel(val, usb2_base + USB2_USBCTR); in rcar_gen3_phy_usb2_power_on()