Lines Matching refs:devsc
256 rk_usb2phy_export_clock(struct rk_usb2phy_softc *devsc) in rk_usb2phy_export_clock() argument
268 node = ofw_bus_get_node(devsc->dev); in rk_usb2phy_export_clock()
273 device_printf(devsc->dev, "couldn't find parent clock\n"); in rk_usb2phy_export_clock()
282 clkdom = clkdom_create(devsc->dev); in rk_usb2phy_export_clock()
290 error = clk_get_by_ofw_index(devsc->dev, 0, i, &clk_parent); in rk_usb2phy_export_clock()
292 device_printf(devsc->dev, "cannot get clock %d\n", error); in rk_usb2phy_export_clock()
302 device_printf(devsc->dev, "cannot create clknode\n"); in rk_usb2phy_export_clock()
307 sc->clkdev = device_get_parent(devsc->dev); in rk_usb2phy_export_clock()
308 sc->grf = devsc->grf; in rk_usb2phy_export_clock()
309 sc->regs = (struct rk_usb2phy_regs *)ofw_bus_search_compatible(devsc->dev, compat_data)->ocd_data; in rk_usb2phy_export_clock()
317 device_printf(devsc->dev, "cannot finalize clkdom initialization\n"); in rk_usb2phy_export_clock()