Lines Matching refs:branch
22 /* Bit defines for CCU branch configuration register */
28 /* CCU branch feature bits */
154 * To safely disable a branch clock a squence of two separate
184 * The branch clock registers are only accessible
205 static void lpc18xx_ccu_register_branch_gate_div(struct lpc18xx_clk_branch *branch,
213 if (branch->flags & CCU_BRANCH_HAVE_DIV2) {
218 div->reg = branch->offset + reg_base;
227 branch->gate.reg = branch->offset + reg_base;
228 branch->gate.bit_idx = 0;
230 branch->clk = clk_register_composite(NULL, branch->name, &parent, 1,
233 &branch->gate.hw, &lpc18xx_ccu_gate_ops, 0);
234 if (IS_ERR(branch->clk)) {
236 pr_warn("%s: failed to register %s\n", __func__, branch->name);
240 /* Grab essential branch clocks for CPU and SDRAM */
241 switch (branch->offset) {
246 clk_prepare_enable(branch->clk);