Lines Matching refs:clk_khz
1155 unsigned int clk_khz, bitrate_khz, clk_period, tckh, tckl, tsdh;
1197 clk_khz = clk_get_rate(i2c->scb_clk) / 1000;
1200 prescale = SCB_OPT_INC * clk_khz / (256 * 16 * bitrate_khz);
1202 clk_khz /= prescale;
1205 inc = (256 * 16 * bitrate_khz) / clk_khz;
1215 if (clk_khz < 20000) {
1217 } else if (clk_khz < 40000) {
1221 filt = (64000 / ((clk_khz / 1000) * SCB_FILT_GLITCH));
1224 if (64000 % ((clk_khz / 1000) * SCB_FILT_GLITCH))
1236 clk_period = (256 * 1000000) / (clk_khz * inc);