Lines Matching full:list
408 struct rockchip_pll_clock *list, in rockchip_clk_register_plls() argument
414 for (idx = 0; idx < nr_pll; idx++, list++) { in rockchip_clk_register_plls()
415 clk = rockchip_clk_register_pll(ctx, list->type, list->name, in rockchip_clk_register_plls()
416 list->parent_names, list->num_parents, in rockchip_clk_register_plls()
417 list->con_offset, grf_lock_offset, in rockchip_clk_register_plls()
418 list->lock_shift, list->mode_offset, in rockchip_clk_register_plls()
419 list->mode_shift, list->rate_table, in rockchip_clk_register_plls()
420 list->flags, list->pll_flags); in rockchip_clk_register_plls()
423 list->name); in rockchip_clk_register_plls()
427 rockchip_clk_add_lookup(ctx, clk, list->id); in rockchip_clk_register_plls()
433 struct rockchip_clk_branch *list, in rockchip_clk_register_branches() argument
440 for (idx = 0; idx < nr_clk; idx++, list++) { in rockchip_clk_register_branches()
441 flags = list->flags; in rockchip_clk_register_branches()
445 switch (list->branch_type) { in rockchip_clk_register_branches()
447 if (list->mux_table) in rockchip_clk_register_branches()
448 clk = clk_register_mux_table(NULL, list->name, in rockchip_clk_register_branches()
449 list->parent_names, list->num_parents, in rockchip_clk_register_branches()
451 ctx->reg_base + list->muxdiv_offset, in rockchip_clk_register_branches()
452 list->mux_shift, list->mux_width, in rockchip_clk_register_branches()
453 list->mux_flags, list->mux_table, in rockchip_clk_register_branches()
456 clk = clk_register_mux(NULL, list->name, in rockchip_clk_register_branches()
457 list->parent_names, list->num_parents, in rockchip_clk_register_branches()
459 ctx->reg_base + list->muxdiv_offset, in rockchip_clk_register_branches()
460 list->mux_shift, list->mux_width, in rockchip_clk_register_branches()
461 list->mux_flags, &ctx->lock); in rockchip_clk_register_branches()
464 clk = rockchip_clk_register_muxgrf(list->name, in rockchip_clk_register_branches()
465 list->parent_names, list->num_parents, in rockchip_clk_register_branches()
466 flags, ctx->grf, list->muxdiv_offset, in rockchip_clk_register_branches()
467 list->mux_shift, list->mux_width, in rockchip_clk_register_branches()
468 list->mux_flags); in rockchip_clk_register_branches()
471 if (list->div_table) in rockchip_clk_register_branches()
473 list->name, list->parent_names[0], in rockchip_clk_register_branches()
475 ctx->reg_base + list->muxdiv_offset, in rockchip_clk_register_branches()
476 list->div_shift, list->div_width, in rockchip_clk_register_branches()
477 list->div_flags, list->div_table, in rockchip_clk_register_branches()
480 clk = clk_register_divider(NULL, list->name, in rockchip_clk_register_branches()
481 list->parent_names[0], flags, in rockchip_clk_register_branches()
482 ctx->reg_base + list->muxdiv_offset, in rockchip_clk_register_branches()
483 list->div_shift, list->div_width, in rockchip_clk_register_branches()
484 list->div_flags, &ctx->lock); in rockchip_clk_register_branches()
487 clk = rockchip_clk_register_frac_branch(ctx, list->name, in rockchip_clk_register_branches()
488 list->parent_names, list->num_parents, in rockchip_clk_register_branches()
489 ctx->reg_base, list->muxdiv_offset, in rockchip_clk_register_branches()
490 list->div_flags, in rockchip_clk_register_branches()
491 list->gate_offset, list->gate_shift, in rockchip_clk_register_branches()
492 list->gate_flags, flags, list->child, in rockchip_clk_register_branches()
496 clk = rockchip_clk_register_halfdiv(list->name, in rockchip_clk_register_branches()
497 list->parent_names, list->num_parents, in rockchip_clk_register_branches()
498 ctx->reg_base, list->muxdiv_offset, in rockchip_clk_register_branches()
499 list->mux_shift, list->mux_width, in rockchip_clk_register_branches()
500 list->mux_flags, list->div_shift, in rockchip_clk_register_branches()
501 list->div_width, list->div_flags, in rockchip_clk_register_branches()
502 list->gate_offset, list->gate_shift, in rockchip_clk_register_branches()
503 list->gate_flags, flags, &ctx->lock); in rockchip_clk_register_branches()
508 clk = clk_register_gate(NULL, list->name, in rockchip_clk_register_branches()
509 list->parent_names[0], flags, in rockchip_clk_register_branches()
510 ctx->reg_base + list->gate_offset, in rockchip_clk_register_branches()
511 list->gate_shift, list->gate_flags, &ctx->lock); in rockchip_clk_register_branches()
514 clk = rockchip_clk_register_branch(list->name, in rockchip_clk_register_branches()
515 list->parent_names, list->num_parents, in rockchip_clk_register_branches()
516 ctx->reg_base, list->muxdiv_offset, in rockchip_clk_register_branches()
517 list->mux_shift, in rockchip_clk_register_branches()
518 list->mux_width, list->mux_flags, in rockchip_clk_register_branches()
519 list->mux_table, list->div_offset, in rockchip_clk_register_branches()
520 list->div_shift, list->div_width, in rockchip_clk_register_branches()
521 list->div_flags, list->div_table, in rockchip_clk_register_branches()
522 list->gate_offset, list->gate_shift, in rockchip_clk_register_branches()
523 list->gate_flags, flags, &ctx->lock); in rockchip_clk_register_branches()
527 list->name, in rockchip_clk_register_branches()
528 list->parent_names, list->num_parents, in rockchip_clk_register_branches()
529 ctx->reg_base + list->muxdiv_offset, in rockchip_clk_register_branches()
530 list->div_shift in rockchip_clk_register_branches()
535 list->name, list->parent_names, in rockchip_clk_register_branches()
536 list->num_parents, in rockchip_clk_register_branches()
537 ctx->reg_base + list->muxdiv_offset, in rockchip_clk_register_branches()
538 list->div_shift, list->div_flags, &ctx->lock); in rockchip_clk_register_branches()
542 list->name, list->parent_names, in rockchip_clk_register_branches()
543 list->num_parents, ctx->reg_base, in rockchip_clk_register_branches()
544 list->div_shift, list->div_width, in rockchip_clk_register_branches()
545 list->gate_offset, list->gate_shift, in rockchip_clk_register_branches()
546 list->gate_flags, flags, &ctx->lock); in rockchip_clk_register_branches()
550 list->name, list->flags, in rockchip_clk_register_branches()
551 list->parent_names, list->num_parents, in rockchip_clk_register_branches()
552 list->muxdiv_offset, list->mux_shift, in rockchip_clk_register_branches()
553 list->mux_width, list->div_shift, in rockchip_clk_register_branches()
554 list->div_width, list->div_flags, in rockchip_clk_register_branches()
562 __func__, list->branch_type); in rockchip_clk_register_branches()
568 __func__, list->name, PTR_ERR(clk)); in rockchip_clk_register_branches()
572 rockchip_clk_add_lookup(ctx, clk, list->id); in rockchip_clk_register_branches()