Lines Matching refs:clk_khz
1152 unsigned int clk_khz, bitrate_khz, clk_period, tckh, tckl, tsdh;
1194 clk_khz = clk_get_rate(i2c->scb_clk) / 1000;
1197 prescale = SCB_OPT_INC * clk_khz / (256 * 16 * bitrate_khz);
1199 clk_khz /= prescale;
1202 inc = (256 * 16 * bitrate_khz) / clk_khz;
1212 if (clk_khz < 20000) {
1214 } else if (clk_khz < 40000) {
1218 filt = (64000 / ((clk_khz / 1000) * SCB_FILT_GLITCH));
1221 if (64000 % ((clk_khz / 1000) * SCB_FILT_GLITCH))
1233 clk_period = (256 * 1000000) / (clk_khz * inc);