Searched refs:div_cdr2 (Results 1 – 1 of 1) sorted by relevance
259 unsigned int mclk_rate, div, div_cdr1, div_cdr2, timeout; in sun6i_spi_transfer_one() local371 div_cdr2 = DIV_ROUND_UP(div_cdr1, 2); in sun6i_spi_transfer_one()372 if (div_cdr2 <= (SUN6I_CLK_CTL_CDR2_MASK + 1)) { in sun6i_spi_transfer_one()373 reg = SUN6I_CLK_CTL_CDR2(div_cdr2 - 1) | SUN6I_CLK_CTL_DRS; in sun6i_spi_transfer_one()374 tfr->effective_speed_hz = mclk_rate / (2 * div_cdr2); in sun6i_spi_transfer_one()