Searched refs:zx_pll (Results 1 – 1 of 1) sorted by relevance
25 static int rate_to_idx(struct clk_zx_pll *zx_pll, unsigned long rate) in rate_to_idx() argument27 const struct zx_pll_config *config = zx_pll->lookup_table; in rate_to_idx()30 for (i = 0; i < zx_pll->count; i++) { in rate_to_idx()41 static int hw_to_idx(struct clk_zx_pll *zx_pll) in hw_to_idx() argument43 const struct zx_pll_config *config = zx_pll->lookup_table; in hw_to_idx()47 hw_cfg0 = readl_relaxed(zx_pll->reg_base); in hw_to_idx()48 hw_cfg1 = readl_relaxed(zx_pll->reg_base + CFG0_CFG1_OFFSET); in hw_to_idx()51 hw_cfg0 &= ~BIT(zx_pll->lock_bit); in hw_to_idx()54 if (zx_pll->pd_bit < 32) in hw_to_idx()55 hw_cfg0 |= BIT(zx_pll->pd_bit); in hw_to_idx()[all …]