Lines Matching refs:branch
205 static void lpc18xx_ccu_register_branch_gate_div(struct lpc18xx_clk_branch *branch, in lpc18xx_ccu_register_branch_gate_div() argument
213 if (branch->flags & CCU_BRANCH_HAVE_DIV2) { in lpc18xx_ccu_register_branch_gate_div()
218 div->reg = branch->offset + reg_base; in lpc18xx_ccu_register_branch_gate_div()
227 branch->gate.reg = branch->offset + reg_base; in lpc18xx_ccu_register_branch_gate_div()
228 branch->gate.bit_idx = 0; in lpc18xx_ccu_register_branch_gate_div()
230 branch->clk = clk_register_composite(NULL, branch->name, &parent, 1, in lpc18xx_ccu_register_branch_gate_div()
233 &branch->gate.hw, &lpc18xx_ccu_gate_ops, 0); in lpc18xx_ccu_register_branch_gate_div()
234 if (IS_ERR(branch->clk)) { in lpc18xx_ccu_register_branch_gate_div()
236 pr_warn("%s: failed to register %s\n", __func__, branch->name); in lpc18xx_ccu_register_branch_gate_div()
241 switch (branch->offset) { in lpc18xx_ccu_register_branch_gate_div()
246 clk_prepare_enable(branch->clk); in lpc18xx_ccu_register_branch_gate_div()