Home
last modified time | relevance | path

Searched refs:zx_pll (Results 1 – 1 of 1) sorted by relevance

/Linux-v4.19/drivers/clk/zte/
Dclk.c28 static int rate_to_idx(struct clk_zx_pll *zx_pll, unsigned long rate) in rate_to_idx() argument
30 const struct zx_pll_config *config = zx_pll->lookup_table; in rate_to_idx()
33 for (i = 0; i < zx_pll->count; i++) { in rate_to_idx()
44 static int hw_to_idx(struct clk_zx_pll *zx_pll) in hw_to_idx() argument
46 const struct zx_pll_config *config = zx_pll->lookup_table; in hw_to_idx()
50 hw_cfg0 = readl_relaxed(zx_pll->reg_base); in hw_to_idx()
51 hw_cfg1 = readl_relaxed(zx_pll->reg_base + CFG0_CFG1_OFFSET); in hw_to_idx()
54 hw_cfg0 &= ~BIT(zx_pll->lock_bit); in hw_to_idx()
57 if (zx_pll->pd_bit < 32) in hw_to_idx()
58 hw_cfg0 |= BIT(zx_pll->pd_bit); in hw_to_idx()
[all …]