Searched refs:clk_khz (Results 1 – 5 of 5) sorted by relevance
1158 unsigned int clk_khz, bitrate_khz, clk_period, tckh, tckl, tsdh; in img_i2c_init() local1200 clk_khz = clk_get_rate(i2c->scb_clk) / 1000; in img_i2c_init()1203 prescale = SCB_OPT_INC * clk_khz / (256 * 16 * bitrate_khz); in img_i2c_init()1205 clk_khz /= prescale; in img_i2c_init()1208 inc = (256 * 16 * bitrate_khz) / clk_khz; in img_i2c_init()1218 if (clk_khz < 20000) { in img_i2c_init()1220 } else if (clk_khz < 40000) { in img_i2c_init()1224 filt = (64000 / ((clk_khz / 1000) * SCB_FILT_GLITCH)); in img_i2c_init()1227 if (64000 % ((clk_khz / 1000) * SCB_FILT_GLITCH)) in img_i2c_init()1239 clk_period = (256 * 1000000) / (clk_khz * inc); in img_i2c_init()
51 u32 clk_khz; member134 .clk_khz = 25000,198 return dev->controller->clk_khz; in i2c_dw_get_clk_rate_khz()
321 u64 clk_khz; in dw_i2c_plat_probe() local324 clk_khz = dev->get_clk_rate_khz(dev); in dw_i2c_plat_probe()328 div_u64(clk_khz * t->sda_hold_ns + 500000, 1000000); in dw_i2c_plat_probe()
479 u32 cw1200_dpll_from_clk(u16 clk_khz) in cw1200_dpll_from_clk() argument481 switch (clk_khz) { in cw1200_dpll_from_clk()506 clk_khz); in cw1200_dpll_from_clk()
570 u32 clk_khz = st->current_sample_rate / 1000; in at91_adc_configure_touch() local588 clk_khz / 1000, 1); in at91_adc_configure_touch()615 clk_khz / 1000) - 1, 1); in at91_adc_configure_touch()