Home
last modified time | relevance | path

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

/drivers/i2c/busses/
Di2c-s3c2410.c568 static int s3c24xx_i2c_calcdivisor(unsigned long clkin, unsigned int wanted, in s3c24xx_i2c_calcdivisor() argument
571 unsigned int calc_divs = clkin / wanted; in s3c24xx_i2c_calcdivisor()
590 return clkin / (calc_divs * calc_div1); in s3c24xx_i2c_calcdivisor()
615 unsigned long clkin = clk_get_rate(i2c->clk); in s3c24xx_i2c_clockrate() local
621 i2c->clkrate = clkin; in s3c24xx_i2c_clockrate()
622 clkin /= 1000; /* clkin now in KHz */ in s3c24xx_i2c_clockrate()
628 freq = s3c24xx_i2c_calcdivisor(clkin, pdata->bus_freq/1000, in s3c24xx_i2c_clockrate()
645 freq = s3c24xx_i2c_calcdivisor(clkin, start, &div1, &divs); in s3c24xx_i2c_clockrate()