Lines Matching full:refclk
105 /* Refclk selection parameters */
206 * @refclk: reference clock index
215 unsigned int refclk; member
407 ssc = gtr_phy->dev->refclk_sscs[gtr_phy->refclk]; in xpsgtr_configure_pll()
414 if (gtr_phy->refclk == gtr_phy->lane) in xpsgtr_configure_pll()
419 L0_REF_CLK_SEL_MASK, 1 << gtr_phy->refclk); in xpsgtr_configure_pll()
639 if (clk_prepare_enable(gtr_dev->clk[gtr_phy->refclk])) in xpsgtr_phy_init()
691 clk_disable_unprepare(gtr_dev->clk[gtr_phy->refclk]); in xpsgtr_phy_exit()
795 unsigned int refclk; in xpsgtr_xlate() local
825 refclk = args->args[3]; in xpsgtr_xlate()
826 if (refclk >= ARRAY_SIZE(gtr_dev->refclk_sscs) || in xpsgtr_xlate()
827 !gtr_dev->refclk_sscs[refclk]) { in xpsgtr_xlate()
828 dev_err(dev, "Invalid reference clock number %u\n", refclk); in xpsgtr_xlate()
832 gtr_phy->refclk = refclk; in xpsgtr_xlate()
859 clk = gtr_phy->dev->clk[gtr_phy->refclk]; in xpsgtr_status_read()
865 seq_printf(seq, "Reference clock: %u (%pC)\n", gtr_phy->refclk, clk); in xpsgtr_status_read()
929 unsigned int refclk; in xpsgtr_get_ref_clocks() local
931 for (refclk = 0; refclk < ARRAY_SIZE(gtr_dev->refclk_sscs); ++refclk) { in xpsgtr_get_ref_clocks()
937 snprintf(name, sizeof(name), "ref%u", refclk); in xpsgtr_get_ref_clocks()
942 refclk); in xpsgtr_get_ref_clocks()
948 gtr_dev->clk[refclk] = clk; in xpsgtr_get_ref_clocks()
961 gtr_dev->refclk_sscs[refclk] = &ssc_lookup[i]; in xpsgtr_get_ref_clocks()
969 rate, refclk); in xpsgtr_get_ref_clocks()