Home
last modified time | relevance | path

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

/openbmc/linux/drivers/pwm/
H A Dpwm-meson.c151 unsigned long fin_freq; in meson_pwm_calc() local
170 fin_freq = clk_round_rate(channel->clk, freq); in meson_pwm_calc()
171 if (fin_freq == 0) { in meson_pwm_calc()
176 dev_dbg(meson->chip.dev, "fin_freq: %lu Hz\n", fin_freq); in meson_pwm_calc()
178 cnt = div_u64(fin_freq * period, NSEC_PER_SEC); in meson_pwm_calc()
193 duty_cnt = div_u64(fin_freq * duty, NSEC_PER_SEC); in meson_pwm_calc()
201 channel->rate = fin_freq; in meson_pwm_calc()
292 unsigned long fin_freq; in meson_pwm_cnt_to_ns() local
297 fin_freq = clk_get_rate(channel->clk); in meson_pwm_cnt_to_ns()
298 if (fin_freq == 0) in meson_pwm_cnt_to_ns()
[all …]
/openbmc/u-boot/drivers/clk/exynos/
H A Dclk-exynos7420.c49 unsigned long fin_freq; member
107 priv->fin_freq = clk_get_rate(&in_clk); in exynos7420_clk_topc_probe()
109 rate = pll145x_get_rate(&topc->bus0_pll_con[0], priv->fin_freq); in exynos7420_clk_topc_probe()
115 rate = pll145x_get_rate(&topc->bus1_pll_con[0], priv->fin_freq) / in exynos7420_clk_topc_probe()
H A Dclk-pll.c19 unsigned long pll145x_get_rate(unsigned int *con1, unsigned long fin_freq) in pll145x_get_rate() argument
23 uint64_t fvco = fin_freq; in pll145x_get_rate()
H A Dclk-pll.h8 unsigned long pll145x_get_rate(unsigned int *con1, unsigned long fin_freq);