Lines Matching refs:devsc
253 rk_usb2phy_export_clock(struct rk_usb2phy_softc *devsc)
265 node = ofw_bus_get_node(devsc->dev);
270 device_printf(devsc->dev, "couldn't find parent clock\n");
279 clkdom = clkdom_create(devsc->dev);
287 error = clk_get_by_ofw_index(devsc->dev, 0, i, &clk_parent);
289 device_printf(devsc->dev, "cannot get clock %d\n", error);
299 device_printf(devsc->dev, "cannot create clknode\n");
304 sc->clkdev = device_get_parent(devsc->dev);
305 sc->grf = devsc->grf;
306 sc->regs = (struct rk_usb2phy_regs *)ofw_bus_search_compatible(devsc->dev, compat_data)->ocd_data;
312 device_printf(devsc->dev, "cannot finalize clkdom initialization\n");