Home
last modified time | relevance | path

Searched refs:socfpga_clk (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/clk/socfpga/
Dclk-gate-a10.c102 struct socfpga_gate_clk *socfpga_clk; in __socfpga_gate_init() local
108 socfpga_clk = kzalloc(sizeof(*socfpga_clk), GFP_KERNEL); in __socfpga_gate_init()
109 if (WARN_ON(!socfpga_clk)) in __socfpga_gate_init()
117 socfpga_clk->hw.reg = clk_mgr_a10_base_addr + clk_gate[0]; in __socfpga_gate_init()
118 socfpga_clk->hw.bit_idx = clk_gate[1]; in __socfpga_gate_init()
126 socfpga_clk->fixed_div = 0; in __socfpga_gate_init()
128 socfpga_clk->fixed_div = fixed_div; in __socfpga_gate_init()
132 socfpga_clk->div_reg = clk_mgr_a10_base_addr + div_reg[0]; in __socfpga_gate_init()
133 socfpga_clk->shift = div_reg[1]; in __socfpga_gate_init()
134 socfpga_clk->width = div_reg[2]; in __socfpga_gate_init()
[all …]
Dclk-gate-s10.c78 struct socfpga_gate_clk *socfpga_clk; in s10_register_gate() local
81 socfpga_clk = kzalloc(sizeof(*socfpga_clk), GFP_KERNEL); in s10_register_gate()
82 if (!socfpga_clk) in s10_register_gate()
85 socfpga_clk->hw.reg = regbase + gate_reg; in s10_register_gate()
86 socfpga_clk->hw.bit_idx = gate_idx; in s10_register_gate()
91 socfpga_clk->fixed_div = fixed_div; in s10_register_gate()
94 socfpga_clk->div_reg = regbase + div_reg; in s10_register_gate()
96 socfpga_clk->div_reg = NULL; in s10_register_gate()
98 socfpga_clk->width = div_width; in s10_register_gate()
99 socfpga_clk->shift = div_offset; in s10_register_gate()
[all …]
Dclk-gate.c178 struct socfpga_gate_clk *socfpga_clk; in socfpga_gate_init() local
185 socfpga_clk = kzalloc(sizeof(*socfpga_clk), GFP_KERNEL); in socfpga_gate_init()
186 if (WARN_ON(!socfpga_clk)) in socfpga_gate_init()
198 socfpga_clk->hw.reg = clk_mgr_base_addr + clk_gate[0]; in socfpga_gate_init()
199 socfpga_clk->hw.bit_idx = clk_gate[1]; in socfpga_gate_init()
207 socfpga_clk->fixed_div = 0; in socfpga_gate_init()
209 socfpga_clk->fixed_div = fixed_div; in socfpga_gate_init()
213 socfpga_clk->div_reg = clk_mgr_base_addr + div_reg[0]; in socfpga_gate_init()
214 socfpga_clk->shift = div_reg[1]; in socfpga_gate_init()
215 socfpga_clk->width = div_reg[2]; in socfpga_gate_init()
[all …]