Searched refs:fll_param (Results 1 – 4 of 4) sorted by relevance
661 unsigned int fs, struct nau8540_fll *fll_param) in nau8540_calc_fll_param() argument677 fll_param->clk_ref_div = fll_pre_scalar[i].val; in nau8540_calc_fll_param()686 fll_param->ratio = fll_ratio[i].val; in nau8540_calc_fll_param()705 fll_param->mclk_src = mclk_src_scaling[fvco_sel].val; in nau8540_calc_fll_param()710 fvco = div_u64(fvco_max << 16, fref * fll_param->ratio); in nau8540_calc_fll_param()711 fll_param->fll_int = (fvco >> 16) & 0x3FF; in nau8540_calc_fll_param()712 fll_param->fll_frac = fvco & 0xFFFF; in nau8540_calc_fll_param()717 struct nau8540_fll *fll_param) in nau8540_fll_apply() argument721 NAU8540_CLK_SRC_MCLK | fll_param->mclk_src); in nau8540_fll_apply()724 fll_param->ratio | (0x6 << NAU8540_ICTRL_LATCH_SFT)); in nau8540_fll_apply()[all …]
1273 unsigned int fs, struct nau8821_fll *fll_param) in nau8821_calc_fll_param() argument1289 fll_param->clk_ref_div = fll_pre_scalar[i].val; in nau8821_calc_fll_param()1298 fll_param->ratio = fll_ratio[i].val; in nau8821_calc_fll_param()1317 fll_param->mclk_src = mclk_src_scaling[fvco_sel].val; in nau8821_calc_fll_param()1322 fvco = div_u64(fvco_max << 24, fref * fll_param->ratio); in nau8821_calc_fll_param()1323 fll_param->fll_int = (fvco >> 24) & 0x3ff; in nau8821_calc_fll_param()1324 fll_param->fll_frac = fvco & 0xffffff; in nau8821_calc_fll_param()1330 struct nau8821_fll *fll_param) in nau8821_fll_apply() argument1336 NAU8821_CLK_SRC_MCLK | fll_param->mclk_src); in nau8821_fll_apply()1340 fll_param->ratio | (0x6 << NAU8821_ICTRL_LATCH_SFT)); in nau8821_fll_apply()[all …]
1277 unsigned int fs, struct nau8824_fll *fll_param) in nau8824_calc_fll_param() argument1293 fll_param->clk_ref_div = fll_pre_scalar[i].val; in nau8824_calc_fll_param()1302 fll_param->ratio = fll_ratio[i].val; in nau8824_calc_fll_param()1321 fll_param->mclk_src = mclk_src_scaling[fvco_sel].val; in nau8824_calc_fll_param()1326 fvco = div_u64(fvco_max << 16, fref * fll_param->ratio); in nau8824_calc_fll_param()1327 fll_param->fll_int = (fvco >> 16) & 0x3FF; in nau8824_calc_fll_param()1328 fll_param->fll_frac = fvco & 0xFFFF; in nau8824_calc_fll_param()1333 struct nau8824_fll *fll_param) in nau8824_fll_apply() argument1337 NAU8824_CLK_SRC_MCLK | fll_param->mclk_src); in nau8824_fll_apply()1339 NAU8824_FLL_RATIO_MASK, fll_param->ratio); in nau8824_fll_apply()[all …]
2255 struct nau8825_fll *fll_param) in nau8825_calc_fll_param() argument2271 fll_param->clk_ref_div = fll_pre_scalar[i].val; in nau8825_calc_fll_param()2280 fll_param->ratio = fll_ratio[i].val; in nau8825_calc_fll_param()2299 fll_param->mclk_src = mclk_src_scaling[fvco_sel].val; in nau8825_calc_fll_param()2304 fvco = div_u64(fvco_max << fll_param->fll_frac_num, fref * fll_param->ratio); in nau8825_calc_fll_param()2305 fll_param->fll_int = (fvco >> fll_param->fll_frac_num) & 0x3FF; in nau8825_calc_fll_param()2306 if (fll_param->fll_frac_num == 16) in nau8825_calc_fll_param()2307 fll_param->fll_frac = fvco & 0xFFFF; in nau8825_calc_fll_param()2309 fll_param->fll_frac = fvco & 0xFFFFFF; in nau8825_calc_fll_param()2314 struct nau8825_fll *fll_param) in nau8825_fll_apply() argument[all …]