Searched refs:devsc (Results 1 – 1 of 1) sorted by relevance
253 rk_usb2phy_export_clock(struct rk_usb2phy_softc *devsc) in rk_usb2phy_export_clock() argument265 node = ofw_bus_get_node(devsc->dev); in rk_usb2phy_export_clock()270 device_printf(devsc->dev, "couldn't find parent clock\n"); in rk_usb2phy_export_clock()279 clkdom = clkdom_create(devsc->dev); in rk_usb2phy_export_clock()287 error = clk_get_by_ofw_index(devsc->dev, 0, i, &clk_parent); in rk_usb2phy_export_clock()289 device_printf(devsc->dev, "cannot get clock %d\n", error); in rk_usb2phy_export_clock()299 device_printf(devsc->dev, "cannot create clknode\n"); in rk_usb2phy_export_clock()304 sc->clkdev = device_get_parent(devsc->dev); in rk_usb2phy_export_clock()305 sc->grf = devsc->grf; in rk_usb2phy_export_clock()306 sc->regs = (struct rk_usb2phy_regs *)ofw_bus_search_compatible(devsc->dev, compat_data)->ocd_data; in rk_usb2phy_export_clock()[all …]