Lines Matching refs:init
44 if (streq(hwclk->init->name, SOCFPGA_L4_MP_CLK)) { in socfpga_clk_get_parent()
48 if (streq(hwclk->init->name, SOCFPGA_L4_SP_CLK)) { in socfpga_clk_get_parent()
54 if (streq(hwclk->init->name, SOCFPGA_MMC_CLK)) in socfpga_clk_get_parent()
56 if (streq(hwclk->init->name, SOCFPGA_NAND_CLK) || in socfpga_clk_get_parent()
57 streq(hwclk->init->name, SOCFPGA_NAND_X_CLK)) in socfpga_clk_get_parent()
69 if (streq(hwclk->init->name, SOCFPGA_L4_MP_CLK)) { in socfpga_clk_set_parent()
74 } else if (streq(hwclk->init->name, SOCFPGA_L4_SP_CLK)) { in socfpga_clk_set_parent()
81 if (streq(hwclk->init->name, SOCFPGA_MMC_CLK)) { in socfpga_clk_set_parent()
84 } else if (streq(hwclk->init->name, SOCFPGA_NAND_CLK) || in socfpga_clk_set_parent()
85 streq(hwclk->init->name, SOCFPGA_NAND_X_CLK)) { in socfpga_clk_set_parent()
190 struct clk_init_data init; in __socfpga_gate_init() local
232 init.name = clk_name; in __socfpga_gate_init()
233 init.ops = ops; in __socfpga_gate_init()
234 init.flags = 0; in __socfpga_gate_init()
236 init.num_parents = of_clk_parent_fill(node, parent_name, SOCFPGA_MAX_PARENTS); in __socfpga_gate_init()
237 init.parent_names = parent_name; in __socfpga_gate_init()
238 socfpga_clk->hw.hw.init = &init; in __socfpga_gate_init()