• Home
  • Raw
  • Download

Lines Matching refs:node

162 static void __init _of_pll_clk_init(struct device_node *node, bool pllctrl)  in _of_pll_clk_init()  argument
175 parent_name = of_clk_get_parent_name(node, 0); in _of_pll_clk_init()
176 if (of_property_read_u32(node, "fixed-postdiv", &pll_data->postdiv)) { in _of_pll_clk_init()
185 i = of_property_match_string(node, "reg-names", in _of_pll_clk_init()
187 pll_data->pllod = of_iomap(node, i); in _of_pll_clk_init()
190 i = of_property_match_string(node, "reg-names", "control"); in _of_pll_clk_init()
191 pll_data->pll_ctl0 = of_iomap(node, i); in _of_pll_clk_init()
206 i = of_property_match_string(node, "reg-names", "multiplier"); in _of_pll_clk_init()
207 pll_data->pllm = of_iomap(node, i); in _of_pll_clk_init()
215 clk = clk_register_pll(NULL, node->name, parent_name, pll_data); in _of_pll_clk_init()
217 of_clk_add_provider(node, of_clk_src_simple_get, clk); in _of_pll_clk_init()
222 pr_err("%s: error initializing pll %s\n", __func__, node->name); in _of_pll_clk_init()
230 static void __init of_keystone_pll_clk_init(struct device_node *node) in of_keystone_pll_clk_init() argument
232 _of_pll_clk_init(node, false); in of_keystone_pll_clk_init()
241 static void __init of_keystone_main_pll_clk_init(struct device_node *node) in of_keystone_main_pll_clk_init() argument
243 _of_pll_clk_init(node, true); in of_keystone_main_pll_clk_init()
252 static void __init of_pll_div_clk_init(struct device_node *node) in of_pll_div_clk_init() argument
258 const char *clk_name = node->name; in of_pll_div_clk_init()
260 of_property_read_string(node, "clock-output-names", &clk_name); in of_pll_div_clk_init()
261 reg = of_iomap(node, 0); in of_pll_div_clk_init()
267 parent_name = of_clk_get_parent_name(node, 0); in of_pll_div_clk_init()
274 if (of_property_read_u32(node, "bit-shift", &shift)) { in of_pll_div_clk_init()
280 if (of_property_read_u32(node, "bit-mask", &mask)) { in of_pll_div_clk_init()
289 of_clk_add_provider(node, of_clk_src_simple_get, clk); in of_pll_div_clk_init()
301 static void __init of_pll_mux_clk_init(struct device_node *node) in of_pll_mux_clk_init() argument
307 const char *clk_name = node->name; in of_pll_mux_clk_init()
309 of_property_read_string(node, "clock-output-names", &clk_name); in of_pll_mux_clk_init()
310 reg = of_iomap(node, 0); in of_pll_mux_clk_init()
316 of_clk_parent_fill(node, parents, 2); in of_pll_mux_clk_init()
322 if (of_property_read_u32(node, "bit-shift", &shift)) { in of_pll_mux_clk_init()
327 if (of_property_read_u32(node, "bit-mask", &mask)) { in of_pll_mux_clk_init()
336 of_clk_add_provider(node, of_clk_src_simple_get, clk); in of_pll_mux_clk_init()