Home
last modified time | relevance | path

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

/drivers/clk/
Dclk-si570.c72 unsigned int hs_div; member
95 unsigned int *n1, unsigned int *hs_div) in si570_get_divs() argument
106 *hs_div = ((reg[0] & HS_DIV_MASK) >> HS_DIV_SHIFT) + HS_DIV_OFFSET; in si570_get_divs()
135 err = si570_get_divs(data, &data->rfreq, &data->n1, &data->hs_div); in si570_get_defaults()
143 fdco = fout * data->n1 * data->hs_div; in si570_get_defaults()
190 unsigned int n1, hs_div; in si570_calc_divs() local
195 hs_div = si570_hs_div_values[i]; in si570_calc_divs()
197 n1 = div_u64(div_u64(FDCO_MIN, hs_div), frequency); in si570_calc_divs()
201 fdco = (u64)frequency * (u64)hs_div * (u64)n1; in si570_calc_divs()
206 *out_hs_div = hs_div; in si570_calc_divs()
[all …]
Dclk-si544.c85 u16 hs_div; member
136 settings->hs_div = (reg[1] & 0x07) << 8 | reg[0]; in si544_get_muldiv()
175 reg[0] = settings->hs_div; in si544_set_muldiv()
176 reg[1] = settings->hs_div >> 8 | settings->ls_div_bits << 4; in si544_set_muldiv()
250 settings->hs_div = vco; in si544_calc_muldiv()
253 if ((settings->hs_div & 1) && in si544_calc_muldiv()
254 (settings->hs_div > HS_DIV_MAX_ODD || settings->ls_div_bits)) in si544_calc_muldiv()
255 ++settings->hs_div; in si544_calc_muldiv()
258 vco = (u64)ls_freq * settings->hs_div; in si544_calc_muldiv()
280 u32 d = settings->hs_div * BIT(settings->ls_div_bits); in si544_calc_center_rate()
Dclk-si514.c58 u16 hs_div; /* 1st divider, must be even and 10<=x<=1022 */ member
111 settings->hs_div = (reg[6] & 0x03) << 8 | reg[5]; in si514_get_muldiv()
151 reg[5] = settings->hs_div; in si514_set_muldiv()
152 reg[6] = (settings->hs_div >> 8) | (settings->ls_div_bits << 4); in si514_set_muldiv()
194 settings->hs_div = DIV_ROUND_UP(FVCO_MIN >> 1, ls_freq) << 1; in si514_calc_muldiv()
197 m = ((u64)(ls_freq * settings->hs_div) << 29) + (FXO / 2); in si514_calc_muldiv()
209 u32 d = settings->hs_div * BIT(settings->ls_div_bits); in si514_calc_rate()
/drivers/i2c/busses/
Di2c-qup.c1670 int ret, fs_div, hs_div; in qup_i2c_probe() local
1863 hs_div = 3; in qup_i2c_probe()
1866 qup->clk_ctl = (hs_div << 8) | (fs_div & 0xff); in qup_i2c_probe()
1870 qup->clk_ctl = ((fs_div / 2) << 16) | (hs_div << 8) | (fs_div & 0xff); in qup_i2c_probe()