Lines Matching full:vco

242  * @vco: reference to the internal VCO clock
244 * @vco_rate: user provided VCO rate
261 struct clk_hw vco; member
330 struct lmk04832 *lmk = container_of(hw, struct lmk04832, vco); in lmk04832_vco_is_enabled()
345 struct lmk04832 *lmk = container_of(hw, struct lmk04832, vco); in lmk04832_vco_prepare()
363 struct lmk04832 *lmk = container_of(hw, struct lmk04832, vco); in lmk04832_vco_unprepare()
377 struct lmk04832 *lmk = container_of(hw, struct lmk04832, vco); in lmk04832_vco_recalc_rate()
413 * lmk04832_check_vco_ranges - Check requested VCO frequency against VCO ranges
416 * @rate: Desired output rate for the VCO
418 * The LMK04832 has 2 internal VCO, each with independent operating ranges.
419 * Use the device_info structure to determine which VCO to use based on rate.
437 dev_err(lmk->dev, "%lu Hz is out of VCO ranges\n", rate); in lmk04832_check_vco_ranges()
442 * lmk04832_calc_pll2_params - Get PLL2 parameters used to set the VCO frequency
445 * @rate: Desired output rate for the VCO
454 * the VCO rate can be calculated using the following expression:
456 * VCO = OSCin * 2 * PLL2_N * PLL2_P / PLL2_R
458 * Returns: vco rate or negative errno.
497 struct lmk04832 *lmk = container_of(hw, struct lmk04832, vco); in lmk04832_vco_round_rate()
521 struct lmk04832 *lmk = container_of(hw, struct lmk04832, vco); in lmk04832_vco_set_rate()
562 * programmed to ensure proper VCO frequency calibration in lmk04832_vco_set_rate()
587 * lmk04832_register_vco - Initialize the internal VCO and clock distribution
596 init.name = "lmk-vco"; in lmk04832_register_vco()
634 lmk->vco.init = &init; in lmk04832_register_vco()
635 return devm_clk_hw_register(lmk->dev, &lmk->vco); in lmk04832_register_vco()
772 * distribution path cycles (VCO cycles), then back to 0. In in lmk04832_sclk_sync_sequence()
838 * SYNC pulse to delay the output by some number of VCO counts). in lmk04832_sclk_sync_sequence()
959 parent_names[0] = clk_hw_get_name(&lmk->vco); in lmk04832_register_sclk()
1305 parent_names[0] = clk_hw_get_name(&lmk->vco); in lmk04832_register_clkout()
1439 device_property_read_u32(lmk->dev, "ti,vco-hz", &lmk->vco_rate); in lmk04832_probe()
1513 dev_info(lmk->dev, "setting VCO rate to %u Hz\n", lmk->vco_rate); in lmk04832_probe()
1514 ret = clk_set_rate(lmk->vco.clk, lmk->vco_rate); in lmk04832_probe()
1516 dev_err(lmk->dev, "failed to set VCO rate\n"); in lmk04832_probe()