Lines Matching defs:dev
43 #include <dev/ofw/ofw_bus.h>
44 #include <dev/ofw/ofw_bus_subr.h>
46 #include <dev/extres/clk/clk_fixed.h>
49 aw_oscclk_probe(device_t dev)
51 if (!ofw_bus_status_okay(dev))
54 if (!ofw_bus_is_compatible(dev, "allwinner,sun4i-a10-osc-clk"))
57 device_set_desc(dev, "Allwinner Oscillator Clock");
62 aw_oscclk_attach(device_t dev)
70 node = ofw_bus_get_node(dev);
73 device_printf(dev, "missing clock-frequency property\n");
78 clkdom = clkdom_create(dev);
83 error = clk_parse_ofw_clk_name(dev, node, &def.clkdef.name);
85 device_printf(dev, "cannot parse clock name\n");
92 device_printf(dev, "cannot register fixed clock\n");
98 device_printf(dev, "cannot finalize clkdom initialization\n");