Lines Matching refs:branch
202 static void lpc18xx_ccu_register_branch_gate_div(struct lpc18xx_clk_branch *branch, in lpc18xx_ccu_register_branch_gate_div() argument
210 if (branch->flags & CCU_BRANCH_HAVE_DIV2) { in lpc18xx_ccu_register_branch_gate_div()
215 div->reg = branch->offset + reg_base; in lpc18xx_ccu_register_branch_gate_div()
224 branch->gate.reg = branch->offset + reg_base; in lpc18xx_ccu_register_branch_gate_div()
225 branch->gate.bit_idx = 0; in lpc18xx_ccu_register_branch_gate_div()
227 branch->clk = clk_register_composite(NULL, branch->name, &parent, 1, in lpc18xx_ccu_register_branch_gate_div()
230 &branch->gate.hw, &lpc18xx_ccu_gate_ops, 0); in lpc18xx_ccu_register_branch_gate_div()
231 if (IS_ERR(branch->clk)) { in lpc18xx_ccu_register_branch_gate_div()
233 pr_warn("%s: failed to register %s\n", __func__, branch->name); in lpc18xx_ccu_register_branch_gate_div()
238 switch (branch->offset) { in lpc18xx_ccu_register_branch_gate_div()
243 clk_prepare_enable(branch->clk); in lpc18xx_ccu_register_branch_gate_div()