Searched refs:clkin (Results 1 – 6 of 6) sorted by relevance
/drivers/i2c/busses/ |
D | i2c-s3c2410.c | 609 static int s3c24xx_i2c_calcdivisor(unsigned long clkin, unsigned int wanted, in s3c24xx_i2c_calcdivisor() argument 612 unsigned int calc_divs = clkin / wanted; in s3c24xx_i2c_calcdivisor() 631 return clkin / (calc_divs * calc_div1); in s3c24xx_i2c_calcdivisor() 644 unsigned long clkin = clk_get_rate(i2c->clk); in s3c24xx_i2c_clockrate() local 650 i2c->clkrate = clkin; in s3c24xx_i2c_clockrate() 651 clkin /= 1000; /* clkin now in KHz */ in s3c24xx_i2c_clockrate() 659 freq = s3c24xx_i2c_calcdivisor(clkin, target_frequency, &div1, &divs); in s3c24xx_i2c_clockrate() 683 sda_delay = clkin * pdata->sda_delay; in s3c24xx_i2c_clockrate()
|
/drivers/hwmon/ |
D | w83795.c | 293 static unsigned int pwm_freq_from_reg(u8 reg, u16 clkin) in pwm_freq_from_reg() argument 298 base_clock = clkin * 1000 / ((clkin == 48000) ? 384 : 256); in pwm_freq_from_reg() 304 static u8 pwm_freq_to_reg(unsigned long val, u16 clkin) in pwm_freq_to_reg() argument 321 base_clock = clkin * 1000 / ((clkin == 48000) ? 384 : 256); in pwm_freq_to_reg() 378 u16 clkin; /* CLKIN frequency in kHz */ member 858 val = pwm_freq_from_reg(data->pwm[index][nr], data->clkin); in show_pwm() 889 val = pwm_freq_to_reg(val, data->clkin); in store_pwm() 1874 static const u16 clkin[4] = { /* in kHz */ in w83795_init_client() local 1890 data->clkin = clkin[(config >> 3) & 0x3]; in w83795_init_client() 1891 dev_dbg(&client->dev, "clkin = %u kHz\n", data->clkin); in w83795_init_client()
|
/drivers/video/omap2/dss/ |
D | hdmi.c | 266 unsigned long clkin, refclk; in hdmi_compute_pll() local 269 clkin = clk_get_rate(hdmi.sys_clk) / 10000; in hdmi_compute_pll() 279 refclk = clkin / pi->regn; in hdmi_compute_pll() 305 pi->regsd = ((pi->regm * clkin / 10) / (pi->regn * 250) + 5) / 10; in hdmi_compute_pll()
|
D | dsi.c | 1301 cinfo->clkin = clk_get_rate(dsi->sys_clk); in dsi_calc_clock_rates() 1306 cinfo->clkin = dispc_mgr_pclk_rate(dssdev->manager->id); in dsi_calc_clock_rates() 1308 if (cinfo->clkin < 32000000) in dsi_calc_clock_rates() 1314 cinfo->fint = cinfo->clkin / (cinfo->regn * (cinfo->highfreq ? 2 : 1)); in dsi_calc_clock_rates() 1355 dsi->cache_cinfo.clkin == dss_sys_clk) { in dsi_pll_calc_clock_div_pck() 1380 cur.clkin = dss_sys_clk; in dsi_pll_calc_clock_div_pck() 1389 cur.fint = cur.clkin / cur.regn; in dsi_pll_calc_clock_div_pck() 1391 cur.fint = cur.clkin / (2 * cur.regn); in dsi_pll_calc_clock_div_pck() 1400 a = 2 * cur.regm * (cur.clkin/1000); in dsi_pll_calc_clock_div_pck() 1508 cinfo->clkin, in dsi_pll_set_clock_div() [all …]
|
D | dss.h | 138 unsigned long clkin; member
|
/drivers/usb/musb/ |
D | blackfin.c | 376 ((480/musb->config->clkin) << 1)); in bfin_musb_reg_init()
|