Home
last modified time | relevance | path

Searched refs:usb32 (Results 1 – 2 of 2) sorted by relevance

/external/u-boot/drivers/phy/marvell/
Dcomphy_a3700.h208 #define USB2_PHY_BASE(usb32) (usb32 == 0 ? USB2PHY2_BASE : USB2PHY_BASE) argument
209 #define USB2_PHY_CTRL_ADDR(usb32) \ argument
210 (usb32 == 0 ? USB2_PHY2_CTRL_ADDR : USB2_OTG_PHY_CTRL_ADDR)
211 #define RB_USB2PHY_SUSPM(usb32) \ argument
212 (usb32 == 0 ? rb_usb2phy2_suspm : rb_usb2phy_suspm)
213 #define RB_USB2PHY_PU(usb32) \ argument
214 (usb32 == 0 ? rb_usb2phy2_pu : rb_usb2phy_pu)
215 #define USB2_PHY_CAL_CTRL_ADDR(usb32) \ argument
216 (usb32 == 0 ? USB2_PHY2_CAL_CTRL_ADDR : USB2_CAL_CTRL_ADDR)
217 #define USB2_PHY_RX_CHAN_CTRL1_ADDR(usb32) \ argument
[all …]
Dcomphy_a3700.c532 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()
[all …]