Searched refs:rk_phy (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/phy/
H A Dphy-rockchip-usb.c96 struct rockchip_usb_phy *rk_phy; rockchip_usb_phy_probe() local
109 rk_phy = devm_kzalloc(dev, sizeof(*rk_phy), GFP_KERNEL); rockchip_usb_phy_probe()
110 if (!rk_phy) rockchip_usb_phy_probe()
119 rk_phy->reg_offset = reg_offset; rockchip_usb_phy_probe()
120 rk_phy->reg_base = grf; rockchip_usb_phy_probe()
122 rk_phy->clk = of_clk_get_by_name(child, "phyclk"); rockchip_usb_phy_probe()
123 if (IS_ERR(rk_phy->clk)) rockchip_usb_phy_probe()
124 rk_phy->clk = NULL; rockchip_usb_phy_probe()
126 rk_phy->phy = devm_phy_create(dev, child, &ops); rockchip_usb_phy_probe()
127 if (IS_ERR(rk_phy->phy)) { rockchip_usb_phy_probe()
129 return PTR_ERR(rk_phy->phy); rockchip_usb_phy_probe()
131 phy_set_drvdata(rk_phy->phy, rk_phy); rockchip_usb_phy_probe()

Completed in 38 milliseconds