Lines Matching refs:usb2_base

165 	void __iomem *usb2_base = ch->base;  in rcar_gen3_set_host_mode()  local
166 u32 val = readl(usb2_base + USB2_COMMCTRL); in rcar_gen3_set_host_mode()
173 writel(val, usb2_base + USB2_COMMCTRL); in rcar_gen3_set_host_mode()
178 void __iomem *usb2_base = ch->base; in rcar_gen3_set_linectrl() local
179 u32 val = readl(usb2_base + USB2_LINECTRL1); in rcar_gen3_set_linectrl()
187 writel(val, usb2_base + USB2_LINECTRL1); in rcar_gen3_set_linectrl()
192 void __iomem *usb2_base = ch->base; in rcar_gen3_enable_vbus_ctrl() local
206 val = readl(usb2_base + vbus_ctrl_reg); in rcar_gen3_enable_vbus_ctrl()
211 writel(val, usb2_base + vbus_ctrl_reg); in rcar_gen3_enable_vbus_ctrl()
216 void __iomem *usb2_base = ch->base; in rcar_gen3_control_otg_irq() local
217 u32 val = readl(usb2_base + USB2_OBINTEN); in rcar_gen3_control_otg_irq()
223 writel(val, usb2_base + USB2_OBINTEN); in rcar_gen3_control_otg_irq()
248 void __iomem *usb2_base = ch->base; in rcar_gen3_init_for_b_host() local
251 val = readl(usb2_base + USB2_LINECTRL1); in rcar_gen3_init_for_b_host()
252 writel(val | USB2_LINECTRL1_OPMODE_NODRV, usb2_base + USB2_LINECTRL1); in rcar_gen3_init_for_b_host()
258 val = readl(usb2_base + USB2_LINECTRL1); in rcar_gen3_init_for_b_host()
259 writel(val & ~USB2_LINECTRL1_OPMODE_NODRV, usb2_base + USB2_LINECTRL1); in rcar_gen3_init_for_b_host()
402 void __iomem *usb2_base = ch->base; in rcar_gen3_init_otg() local
406 val = readl(usb2_base + USB2_LINECTRL1); in rcar_gen3_init_otg()
409 writel(val, usb2_base + USB2_LINECTRL1); in rcar_gen3_init_otg()
412 val = readl(usb2_base + USB2_VBCTRL); in rcar_gen3_init_otg()
414 writel(val | USB2_VBCTRL_DRVVBUSSEL, usb2_base + USB2_VBCTRL); in rcar_gen3_init_otg()
415 val = readl(usb2_base + USB2_ADPCTRL); in rcar_gen3_init_otg()
416 writel(val | USB2_ADPCTRL_IDPULLUP, usb2_base + USB2_ADPCTRL); in rcar_gen3_init_otg()
420 writel(0xffffffff, usb2_base + USB2_OBINTSTA); in rcar_gen3_init_otg()
421 writel(ch->obint_enable_bits, usb2_base + USB2_OBINTEN); in rcar_gen3_init_otg()
429 void __iomem *usb2_base = ch->base; in rcar_gen3_phy_usb2_irq() local
430 u32 status = readl(usb2_base + USB2_OBINTSTA); in rcar_gen3_phy_usb2_irq()
435 writel(ch->obint_enable_bits, usb2_base + USB2_OBINTSTA); in rcar_gen3_phy_usb2_irq()
447 void __iomem *usb2_base = channel->base; in rcar_gen3_phy_usb2_init() local
462 val = readl(usb2_base + USB2_INT_ENABLE); in rcar_gen3_phy_usb2_init()
464 writel(val, usb2_base + USB2_INT_ENABLE); in rcar_gen3_phy_usb2_init()
465 writel(USB2_SPD_RSM_TIMSET_INIT, usb2_base + USB2_SPD_RSM_TIMSET); in rcar_gen3_phy_usb2_init()
466 writel(USB2_OC_TIMSET_INIT, usb2_base + USB2_OC_TIMSET); in rcar_gen3_phy_usb2_init()
484 void __iomem *usb2_base = channel->base; in rcar_gen3_phy_usb2_exit() local
492 val = readl(usb2_base + USB2_INT_ENABLE); in rcar_gen3_phy_usb2_exit()
496 writel(val, usb2_base + USB2_INT_ENABLE); in rcar_gen3_phy_usb2_exit()
508 void __iomem *usb2_base = channel->base; in rcar_gen3_phy_usb2_power_on() local
522 val = readl(usb2_base + USB2_USBCTR); in rcar_gen3_phy_usb2_power_on()
524 writel(val, usb2_base + USB2_USBCTR); in rcar_gen3_phy_usb2_power_on()
526 writel(val, usb2_base + USB2_USBCTR); in rcar_gen3_phy_usb2_power_on()