Lines Matching refs:periph_clk
65 struct socfpga_periph_clk *periph_clk;
75 periph_clk = kzalloc(sizeof(*periph_clk), GFP_KERNEL);
76 if (WARN_ON(!periph_clk))
79 periph_clk->hw.reg = clk_mgr_a10_base_addr + reg;
83 periph_clk->div_reg = clk_mgr_a10_base_addr + div_reg[0];
84 periph_clk->shift = div_reg[1];
85 periph_clk->width = div_reg[2];
87 periph_clk->div_reg = NULL;
92 periph_clk->fixed_div = 0;
94 periph_clk->fixed_div = fixed_div;
105 periph_clk->hw.hw.init = &init;
107 hw_clk = &periph_clk->hw.hw;
127 kfree(periph_clk);