Lines Matching full:refclk
104 /* Refclk selection parameters */
211 * @refclk: reference clock index
220 unsigned int refclk; member
392 ssc = gtr_phy->dev->refclk_sscs[gtr_phy->refclk]; in xpsgtr_configure_pll()
399 if (gtr_phy->refclk == gtr_phy->lane) in xpsgtr_configure_pll()
404 L0_REF_CLK_SEL_MASK, 1 << gtr_phy->refclk); in xpsgtr_configure_pll()
624 if (clk_prepare_enable(gtr_dev->clk[gtr_phy->refclk])) in xpsgtr_phy_init()
676 clk_disable_unprepare(gtr_dev->clk[gtr_phy->refclk]); in xpsgtr_phy_exit()
826 unsigned int refclk; in xpsgtr_xlate() local
856 refclk = args->args[3]; in xpsgtr_xlate()
857 if (refclk >= ARRAY_SIZE(gtr_dev->refclk_sscs) || in xpsgtr_xlate()
858 !gtr_dev->refclk_sscs[refclk]) { in xpsgtr_xlate()
859 dev_err(dev, "Invalid reference clock number %u\n", refclk); in xpsgtr_xlate()
863 gtr_phy->refclk = refclk; in xpsgtr_xlate()
932 unsigned int refclk; in xpsgtr_get_ref_clocks() local
934 for (refclk = 0; refclk < ARRAY_SIZE(gtr_dev->refclk_sscs); ++refclk) { in xpsgtr_get_ref_clocks()
940 snprintf(name, sizeof(name), "ref%u", refclk); in xpsgtr_get_ref_clocks()
945 refclk); in xpsgtr_get_ref_clocks()
951 gtr_dev->clk[refclk] = clk; in xpsgtr_get_ref_clocks()
964 gtr_dev->refclk_sscs[refclk] = &ssc_lookup[i]; in xpsgtr_get_ref_clocks()
972 rate, refclk); in xpsgtr_get_ref_clocks()