Lines Matching refs:socfpga_clk
71 struct socfpga_gate_clk *socfpga_clk; in s10_register_gate() local
75 socfpga_clk = kzalloc(sizeof(*socfpga_clk), GFP_KERNEL); in s10_register_gate()
76 if (!socfpga_clk) in s10_register_gate()
79 socfpga_clk->hw.reg = regbase + clks->gate_reg; in s10_register_gate()
80 socfpga_clk->hw.bit_idx = clks->gate_idx; in s10_register_gate()
85 socfpga_clk->fixed_div = clks->fixed_div; in s10_register_gate()
88 socfpga_clk->div_reg = regbase + clks->div_reg; in s10_register_gate()
90 socfpga_clk->div_reg = NULL; in s10_register_gate()
92 socfpga_clk->width = clks->div_width; in s10_register_gate()
93 socfpga_clk->shift = clks->div_offset; in s10_register_gate()
96 socfpga_clk->bypass_reg = regbase + clks->bypass_reg; in s10_register_gate()
98 socfpga_clk->bypass_reg = NULL; in s10_register_gate()
99 socfpga_clk->bypass_shift = clks->bypass_shift; in s10_register_gate()
113 socfpga_clk->hw.hw.init = &init; in s10_register_gate()
115 clk = clk_register(NULL, &socfpga_clk->hw.hw); in s10_register_gate()
117 kfree(socfpga_clk); in s10_register_gate()