Lines Matching refs:node
88 static struct clk *_register_gate(struct device_node *node, const char *name, in _register_gate() argument
118 clk = of_ti_clk_register_omap_hw(node, &clk_hw->hw, name); in _register_gate()
126 static void __init _of_ti_gate_clk_setup(struct device_node *node, in _of_ti_gate_clk_setup() argument
139 if (ti_clk_get_reg_addr(node, 0, ®)) in _of_ti_gate_clk_setup()
145 if (of_clk_get_parent_count(node) != 1) { in _of_ti_gate_clk_setup()
146 pr_err("%pOFn must have 1 parent\n", node); in _of_ti_gate_clk_setup()
150 parent_name = of_clk_get_parent_name(node, 0); in _of_ti_gate_clk_setup()
152 if (of_property_read_bool(node, "ti,set-rate-parent")) in _of_ti_gate_clk_setup()
155 if (of_property_read_bool(node, "ti,set-bit-to-disable")) in _of_ti_gate_clk_setup()
158 name = ti_dt_clk_name(node); in _of_ti_gate_clk_setup()
159 clk = _register_gate(node, name, parent_name, flags, ®, in _of_ti_gate_clk_setup()
163 of_clk_add_provider(node, of_clk_src_simple_get, clk); in _of_ti_gate_clk_setup()
167 _of_ti_composite_gate_clk_setup(struct device_node *node, in _of_ti_composite_gate_clk_setup() argument
176 if (ti_clk_get_reg_addr(node, 0, &gate->enable_reg)) in _of_ti_composite_gate_clk_setup()
182 if (!ti_clk_add_component(node, &gate->hw, CLK_COMPONENT_TYPE_GATE)) in _of_ti_composite_gate_clk_setup()
190 of_ti_composite_no_wait_gate_clk_setup(struct device_node *node) in of_ti_composite_no_wait_gate_clk_setup() argument
192 _of_ti_composite_gate_clk_setup(node, NULL); in of_ti_composite_no_wait_gate_clk_setup()
198 static void __init of_ti_composite_interface_clk_setup(struct device_node *node) in of_ti_composite_interface_clk_setup() argument
200 _of_ti_composite_gate_clk_setup(node, &clkhwops_iclk_wait); in of_ti_composite_interface_clk_setup()
206 static void __init of_ti_composite_gate_clk_setup(struct device_node *node) in of_ti_composite_gate_clk_setup() argument
208 _of_ti_composite_gate_clk_setup(node, &clkhwops_wait); in of_ti_composite_gate_clk_setup()
214 static void __init of_ti_clkdm_gate_clk_setup(struct device_node *node) in of_ti_clkdm_gate_clk_setup() argument
216 _of_ti_gate_clk_setup(node, &omap_gate_clkdm_clk_ops, NULL); in of_ti_clkdm_gate_clk_setup()
221 static void __init of_ti_hsdiv_gate_clk_setup(struct device_node *node) in of_ti_hsdiv_gate_clk_setup() argument
223 _of_ti_gate_clk_setup(node, &omap_gate_clk_hsdiv_restore_ops, in of_ti_hsdiv_gate_clk_setup()
229 static void __init of_ti_gate_clk_setup(struct device_node *node) in of_ti_gate_clk_setup() argument
231 _of_ti_gate_clk_setup(node, &omap_gate_clk_ops, NULL); in of_ti_gate_clk_setup()
235 static void __init of_ti_wait_gate_clk_setup(struct device_node *node) in of_ti_wait_gate_clk_setup() argument
237 _of_ti_gate_clk_setup(node, &omap_gate_clk_ops, &clkhwops_wait); in of_ti_wait_gate_clk_setup()
243 static void __init of_ti_am35xx_gate_clk_setup(struct device_node *node) in of_ti_am35xx_gate_clk_setup() argument
245 _of_ti_gate_clk_setup(node, &omap_gate_clk_ops, in of_ti_am35xx_gate_clk_setup()
251 static void __init of_ti_dss_gate_clk_setup(struct device_node *node) in of_ti_dss_gate_clk_setup() argument
253 _of_ti_gate_clk_setup(node, &omap_gate_clk_ops, in of_ti_dss_gate_clk_setup()