Searched refs:socfpga_clk (Results 1 – 3 of 3) sorted by relevance
130 struct socfpga_gate_clk *socfpga_clk; in s10_register_gate() local135 socfpga_clk = kzalloc(sizeof(*socfpga_clk), GFP_KERNEL); in s10_register_gate()136 if (!socfpga_clk) in s10_register_gate()139 socfpga_clk->hw.reg = regbase + clks->gate_reg; in s10_register_gate()140 socfpga_clk->hw.bit_idx = clks->gate_idx; in s10_register_gate()145 socfpga_clk->fixed_div = clks->fixed_div; in s10_register_gate()148 socfpga_clk->div_reg = regbase + clks->div_reg; in s10_register_gate()150 socfpga_clk->div_reg = NULL; in s10_register_gate()152 socfpga_clk->width = clks->div_width; in s10_register_gate()153 socfpga_clk->shift = clks->div_offset; in s10_register_gate()[all …]
49 struct socfpga_gate_clk *socfpga_clk; in __socfpga_gate_init() local55 socfpga_clk = kzalloc(sizeof(*socfpga_clk), GFP_KERNEL); in __socfpga_gate_init()56 if (WARN_ON(!socfpga_clk)) in __socfpga_gate_init()64 socfpga_clk->hw.reg = clk_mgr_a10_base_addr + clk_gate[0]; in __socfpga_gate_init()65 socfpga_clk->hw.bit_idx = clk_gate[1]; in __socfpga_gate_init()73 socfpga_clk->fixed_div = 0; in __socfpga_gate_init()75 socfpga_clk->fixed_div = fixed_div; in __socfpga_gate_init()79 socfpga_clk->div_reg = clk_mgr_a10_base_addr + div_reg[0]; in __socfpga_gate_init()80 socfpga_clk->shift = div_reg[1]; in __socfpga_gate_init()81 socfpga_clk->width = div_reg[2]; in __socfpga_gate_init()[all …]
143 struct socfpga_gate_clk *socfpga_clk; in socfpga_gate_init() local150 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()[all …]