Home
last modified time | relevance | path

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

/openbmc/linux/drivers/i2c/busses/
H A Di2c-s3c2410.c798 unsigned int calc_divs = clkin / wanted; in s3c24xx_i2c_calcdivisor() local
801 if (calc_divs > (16*16)) in s3c24xx_i2c_calcdivisor()
806 calc_divs += calc_div1-1; in s3c24xx_i2c_calcdivisor()
807 calc_divs /= calc_div1; in s3c24xx_i2c_calcdivisor()
809 if (calc_divs == 0) in s3c24xx_i2c_calcdivisor()
810 calc_divs = 1; in s3c24xx_i2c_calcdivisor()
811 if (calc_divs > 17) in s3c24xx_i2c_calcdivisor()
812 calc_divs = 17; in s3c24xx_i2c_calcdivisor()
814 *divs = calc_divs; in s3c24xx_i2c_calcdivisor()
817 return clkin / (calc_divs * calc_div1); in s3c24xx_i2c_calcdivisor()