Lines Matching defs:info
350 * @info: The device-specific clock info
353 * @cfgchip: CFGCHIP syscon regmap for info->unlock_reg or NULL
367 const struct davinci_pll_clk_info *info,
386 if (info->flags & PLL_HAS_CLKMODE) {
404 if (info->flags & PLL_HAS_PREDIV) {
405 bool fixed = info->flags & PLL_PREDIV_FIXED_DIV;
408 snprintf(prediv_name, MAX_NAME_SIZE, "%s_prediv", info->name);
410 if (info->flags & PLL_PREDIV_ALWAYS_ENABLED)
414 if (info->flags & PLL_PREDIV_FIXED8)
429 if (info->unlock_reg) {
434 regmap_write_bits(cfgchip, info->unlock_reg,
435 info->unlock_mask, 0);
444 snprintf(pllout_name, MAX_NAME_SIZE, "%s_pllout", info->name);
447 if (info->flags & PLL_PLLM_2X)
455 if (info->flags & PLL_HAS_PREDIV)
460 pllout->pllm_mask = info->pllm_mask;
461 pllout->pllm_min = info->pllm_min;
462 pllout->pllm_max = info->pllm_max;
470 clk_hw_set_rate_range(&pllout->hw, info->pllout_min_rate,
471 info->pllout_max_rate);
475 if (info->flags & PLL_HAS_POSTDIV) {
476 bool fixed = info->flags & PLL_POSTDIV_FIXED_DIV;
479 snprintf(postdiv_name, MAX_NAME_SIZE, "%s_postdiv", info->name);
481 if (info->flags & PLL_POSTDIV_ALWAYS_ENABLED)
500 snprintf(pllen_name, MAX_NAME_SIZE, "%s_pllen", info->name);
569 * @info: The clock info
574 const struct davinci_pll_obsclk_info *info,
589 mux->table = info->table;
590 mux->mask = info->ocsrc_mask;
616 clk = clk_register_composite(dev, info->name, info->parent_names,
617 info->num_parents,
673 * @info: The clock info
678 const struct davinci_pll_sysclk_info *info,
690 if (info->id < 4)
691 reg = PLLDIV1 + 4 * (info->id - 1);
693 reg = PLLDIV4 + 4 * (info->id - 4);
710 divider->width = info->ratio_width;
713 if (info->flags & SYSCLK_FIXED_DIV) {
719 if (info->flags & SYSCLK_ARM_RATE)
722 if (info->flags & SYSCLK_ALWAYS_ENABLED)
725 clk = clk_register_composite(dev, info->name, &info->parent_name, 1,
746 const struct davinci_pll_clk_info *info,
757 if (info->flags & PLL_HAS_CLKMODE)
762 clk = davinci_pll_clk_register(dev, info, parent_name, base, cfgchip);
764 dev_err(dev, "failed to register %s\n", info->name);
815 snprintf(child_name, MAX_NAME_SIZE, "%s_auxclk", info->name);