Lines Matching defs:divisor
509 * PLLP, and furthermore that the PLLP divisor value is 0.
523 * TK1_CAR_PLLP_DIVISOR = the divisor value in the clock and reset
527 * literal divisor value, and a value of '0' in the divisor register will
574 uint32_t divisor,
606 return TK1_CAR_PLLP_INPUT_FREQ_HZ / ((tlow+thigh+vc) * (divisor));
612 int32_t divisor;
616 divisor = tk1_i2c_calc_divisor_value_for(bus, speed, variant_constant);
617 if (divisor < 0 || divisor > UINT16_MAX) {
621 if (divisor > 3) {
623 divisor = tk1_i2c_calc_divisor_value_for(bus, speed, variant_constant);
624 if (divisor < 0 || divisor > UINT16_MAX) {
629 while (tk1_i2c_calc_baud_resulting_from(bus, divisor,
632 ZF_LOGV(PREFIX"Resulting baud is %d. Recalculating divisor up from %d to %d.",
633 r, tk1_i2c_calc_baud_resulting_from(bus, divisor, speed, variant_constant),
634 divisor, divisor+1);
635 divisor++;
637 ZF_LOGV(PREFIX"Calculated I2C divisor at %d. Effective baud is %d. Previous values: std %d, hs %d.",
638 r, divisor,
639 tk1_i2c_calc_baud_resulting_from(bus, divisor, speed, variant_constant),
647 ((divisor & TK1I2C_CLK_DIVISOR_HS_MODE_MASK)
656 ((divisor & TK1I2C_CLK_DIVISOR_STD_FAST_MODE_MASK)
664 ZF_LOGD("For I2C speed %s, divisor was calculated to be %d.",
665 i2c_speed_names[speed], divisor);