Lines Matching refs:branch
204 static void lpc18xx_ccu_register_branch_gate_div(struct lpc18xx_clk_branch *branch, in lpc18xx_ccu_register_branch_gate_div() argument
212 if (branch->flags & CCU_BRANCH_HAVE_DIV2) { in lpc18xx_ccu_register_branch_gate_div()
217 div->reg = branch->offset + reg_base; in lpc18xx_ccu_register_branch_gate_div()
226 branch->gate.reg = branch->offset + reg_base; in lpc18xx_ccu_register_branch_gate_div()
227 branch->gate.bit_idx = 0; in lpc18xx_ccu_register_branch_gate_div()
229 branch->clk = clk_register_composite(NULL, branch->name, &parent, 1, in lpc18xx_ccu_register_branch_gate_div()
232 &branch->gate.hw, &lpc18xx_ccu_gate_ops, 0); in lpc18xx_ccu_register_branch_gate_div()
233 if (IS_ERR(branch->clk)) { in lpc18xx_ccu_register_branch_gate_div()
235 pr_warn("%s: failed to register %s\n", __func__, branch->name); in lpc18xx_ccu_register_branch_gate_div()
240 switch (branch->offset) { in lpc18xx_ccu_register_branch_gate_div()
245 clk_prepare_enable(branch->clk); in lpc18xx_ccu_register_branch_gate_div()