Lines Matching refs:np
166 static void xgene_pllclk_init(struct device_node *np, enum xgene_pll_type pll_type) in xgene_pllclk_init() argument
168 const char *clk_name = np->full_name; in xgene_pllclk_init()
172 reg = of_iomap(np, 0); in xgene_pllclk_init()
174 pr_err("Unable to map CSR register for %s\n", np->full_name); in xgene_pllclk_init()
177 of_property_read_string(np, "clock-output-names", &clk_name); in xgene_pllclk_init()
179 clk_name, of_clk_get_parent_name(np, 0), in xgene_pllclk_init()
182 of_clk_add_provider(np, of_clk_src_simple_get, clk); in xgene_pllclk_init()
188 static void xgene_socpllclk_init(struct device_node *np) in xgene_socpllclk_init() argument
190 xgene_pllclk_init(np, PLL_TYPE_SOC); in xgene_socpllclk_init()
193 static void xgene_pcppllclk_init(struct device_node *np) in xgene_pcppllclk_init() argument
195 xgene_pllclk_init(np, PLL_TYPE_PCP); in xgene_pcppllclk_init()
442 static void __init xgene_devclk_init(struct device_node *np) in xgene_devclk_init() argument
444 const char *clk_name = np->full_name; in xgene_devclk_init()
452 if (!of_device_is_available(np)) in xgene_devclk_init()
460 rc = of_address_to_resource(np, i, &res); in xgene_devclk_init()
464 np->full_name); in xgene_devclk_init()
469 map_res = of_iomap(np, i); in xgene_devclk_init()
472 i, np->full_name); in xgene_devclk_init()
480 if (of_property_read_u32(np, "csr-offset", ¶meters.reg_csr_offset)) in xgene_devclk_init()
482 if (of_property_read_u32(np, "csr-mask", ¶meters.reg_csr_mask)) in xgene_devclk_init()
484 if (of_property_read_u32(np, "enable-offset", in xgene_devclk_init()
487 if (of_property_read_u32(np, "enable-mask", ¶meters.reg_clk_mask)) in xgene_devclk_init()
489 if (of_property_read_u32(np, "divider-offset", in xgene_devclk_init()
492 if (of_property_read_u32(np, "divider-width", in xgene_devclk_init()
495 if (of_property_read_u32(np, "divider-shift", in xgene_devclk_init()
498 of_property_read_string(np, "clock-output-names", &clk_name); in xgene_devclk_init()
501 of_clk_get_parent_name(np, 0), ¶meters, &clk_lock); in xgene_devclk_init()
505 rc = of_clk_add_provider(np, of_clk_src_simple_get, clk); in xgene_devclk_init()
508 np->full_name); in xgene_devclk_init()