Searched refs:lf_ratio (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/clk/ |
H A D | clk-cs2000-cp.c | 110 bool lf_ratio; member 200 static u32 cs2000_rate_to_ratio(u32 rate_in, u32 rate_out, bool lf_ratio) in cs2000_rate_to_ratio() argument 203 u32 multiplier = lf_ratio ? 12 : 20; in cs2000_rate_to_ratio() 220 u32 multiplier = lf_ratio ? 12 : 20; in cs2000_ratio_to_rate() 243 val = cs2000_rate_to_ratio(rate_in, rate_out, priv->lf_ratio); in cs2000_ratio_set() 305 return cs2000_ratio_to_rate(ratio, parent_rate, priv->lf_ratio); in cs2000_recalc_rate() 314 ratio = cs2000_rate_to_ratio(*parent_rate, rate, priv->lf_ratio); in cs2000_round_rate() 316 return cs2000_ratio_to_rate(ratio, *parent_rate, priv->lf_ratio); in cs2000_round_rate() 334 priv->lf_ratio = priv->dynamic_mode && ((rate / parent_rate) > 4096); in cs2000_select_ratio_mode() 337 priv->lf_ratio ? LFRATIO_20_12 : LFRATIO_12_20); in cs2000_select_ratio_mode() [all …]
|