Lines Matching refs:socfpga_clk
143 struct socfpga_gate_clk *socfpga_clk; in socfpga_gate_init() local
150 socfpga_clk = kzalloc(sizeof(*socfpga_clk), GFP_KERNEL); in socfpga_gate_init()
151 if (WARN_ON(!socfpga_clk)) in socfpga_gate_init()
163 socfpga_clk->hw.reg = clk_mgr_base_addr + clk_gate[0]; in socfpga_gate_init()
164 socfpga_clk->hw.bit_idx = clk_gate[1]; in socfpga_gate_init()
172 socfpga_clk->fixed_div = 0; in socfpga_gate_init()
174 socfpga_clk->fixed_div = fixed_div; in socfpga_gate_init()
178 socfpga_clk->div_reg = clk_mgr_base_addr + div_reg[0]; in socfpga_gate_init()
179 socfpga_clk->shift = div_reg[1]; in socfpga_gate_init()
180 socfpga_clk->width = div_reg[2]; in socfpga_gate_init()
182 socfpga_clk->div_reg = NULL; in socfpga_gate_init()
198 socfpga_clk->hw.hw.init = &init; in socfpga_gate_init()
200 hw_clk = &socfpga_clk->hw.hw; in socfpga_gate_init()
222 kfree(socfpga_clk); in socfpga_gate_init()