Lines Matching refs:socfpga_clk
77 struct socfpga_gate_clk *socfpga_clk; in s10_register_gate() local
80 socfpga_clk = kzalloc(sizeof(*socfpga_clk), GFP_KERNEL); in s10_register_gate()
81 if (!socfpga_clk) in s10_register_gate()
84 socfpga_clk->hw.reg = regbase + gate_reg; in s10_register_gate()
85 socfpga_clk->hw.bit_idx = gate_idx; in s10_register_gate()
90 socfpga_clk->fixed_div = fixed_div; in s10_register_gate()
93 socfpga_clk->div_reg = regbase + div_reg; in s10_register_gate()
95 socfpga_clk->div_reg = NULL; in s10_register_gate()
97 socfpga_clk->width = div_width; in s10_register_gate()
98 socfpga_clk->shift = div_offset; in s10_register_gate()
101 socfpga_clk->bypass_reg = regbase + bypass_reg; in s10_register_gate()
103 socfpga_clk->bypass_reg = NULL; in s10_register_gate()
104 socfpga_clk->bypass_shift = bypass_shift; in s10_register_gate()
116 socfpga_clk->hw.hw.init = &init; in s10_register_gate()
118 clk = clk_register(NULL, &socfpga_clk->hw.hw); in s10_register_gate()
120 kfree(socfpga_clk); in s10_register_gate()