Searched refs:clkrate (Results 1 – 2 of 2) sorted by relevance
199 int clkrate, denom; in rcar_iic_set_speed() local201 clkrate = clk_get_rate(&priv->clk); in rcar_iic_set_speed()202 if (clkrate < 0) in rcar_iic_set_speed()203 return clkrate; in rcar_iic_set_speed()212 priv->iccl = DIV_ROUND_CLOSEST(clkrate * ratio_low, denom); in rcar_iic_set_speed()213 priv->icch = DIV_ROUND_CLOSEST(clkrate * ratio_high, denom); in rcar_iic_set_speed()
335 int speed_hz, uint clkrate) in fsl_dspi_hz_to_spi_baud() argument345 temp = clkrate / speed_hz; in fsl_dspi_hz_to_spi_baud()357 debug("clkrate is %d, we use the max prescaler value.\n", clkrate); in fsl_dspi_hz_to_spi_baud()