Home
last modified time | relevance | path

Searched refs:clkrate (Results 1 – 2 of 2) sorted by relevance

/external/u-boot/drivers/i2c/
Drcar_iic.c199 int clkrate, denom; in rcar_iic_set_speed() local
201 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()
/external/u-boot/drivers/spi/
Dfsl_dspi.c335 int speed_hz, uint clkrate) in fsl_dspi_hz_to_spi_baud() argument
345 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()