Lines Matching refs:usb32
532 static int comphy_usb2_power_up(u8 usb32) in comphy_usb2_power_up() argument
538 if (usb32 != 0 && usb32 != 1) { in comphy_usb2_power_up()
540 usb32); in comphy_usb2_power_up()
550 reg_set(USB2_PHY_BASE(usb32), 5 | (96 << 16), in comphy_usb2_power_up()
557 reg_set(USB2_PHY_CTRL_ADDR(usb32), in comphy_usb2_power_up()
558 RB_USB2PHY_SUSPM(usb32) | RB_USB2PHY_PU(usb32), 0); in comphy_usb2_power_up()
560 if (usb32 != 0) { in comphy_usb2_power_up()
575 ret = comphy_poll_reg(USB2_PHY_CAL_CTRL_ADDR(usb32), in comphy_usb2_power_up()
583 ret = comphy_poll_reg(USB2_PHY_CAL_CTRL_ADDR(usb32), in comphy_usb2_power_up()
591 ret = comphy_poll_reg(USB2_PHY_RX_CHAN_CTRL1_ADDR(usb32), in comphy_usb2_power_up()
599 ret = comphy_poll_reg(USB2_PHY_PLL_CTRL0_ADDR(usb32), in comphy_usb2_power_up()
891 int node, usb32, ret = 1; in comphy_dedicated_phys_init() local
896 for (usb32 = 0; usb32 <= 1; usb32++) { in comphy_dedicated_phys_init()
901 if (usb32 == 0) { in comphy_dedicated_phys_init()
911 ret = comphy_usb2_power_up(usb32); in comphy_dedicated_phys_init()
918 usb32 == 0 ? 2 : 3); in comphy_dedicated_phys_init()
921 debug("No USB%d node in DT\n", usb32 == 0 ? 2 : 3); in comphy_dedicated_phys_init()