Lines Matching refs:socfpga_clk
113 struct socfpga_gate_clk *socfpga_clk; in __socfpga_gate_init() local
119 socfpga_clk = kzalloc(sizeof(*socfpga_clk), GFP_KERNEL); in __socfpga_gate_init()
120 if (WARN_ON(!socfpga_clk)) in __socfpga_gate_init()
128 socfpga_clk->hw.reg = clk_mgr_a10_base_addr + clk_gate[0]; in __socfpga_gate_init()
129 socfpga_clk->hw.bit_idx = clk_gate[1]; in __socfpga_gate_init()
137 socfpga_clk->fixed_div = 0; in __socfpga_gate_init()
139 socfpga_clk->fixed_div = fixed_div; in __socfpga_gate_init()
143 socfpga_clk->div_reg = clk_mgr_a10_base_addr + div_reg[0]; in __socfpga_gate_init()
144 socfpga_clk->shift = div_reg[1]; in __socfpga_gate_init()
145 socfpga_clk->width = div_reg[2]; in __socfpga_gate_init()
147 socfpga_clk->div_reg = NULL; in __socfpga_gate_init()
152 socfpga_clk->clk_phase[0] = clk_phase[0]; in __socfpga_gate_init()
153 socfpga_clk->clk_phase[1] = clk_phase[1]; in __socfpga_gate_init()
155 socfpga_clk->sys_mgr_base_addr = in __socfpga_gate_init()
157 if (IS_ERR(socfpga_clk->sys_mgr_base_addr)) { in __socfpga_gate_init()
160 kfree(socfpga_clk); in __socfpga_gate_init()
173 socfpga_clk->hw.hw.init = &init; in __socfpga_gate_init()
175 clk = clk_register(NULL, &socfpga_clk->hw.hw); in __socfpga_gate_init()
177 kfree(socfpga_clk); in __socfpga_gate_init()