/linux-2.6.39/arch/arm/mach-lpc32xx/ |
D | clock.c | 255 u32 clkin, pllreg; in local_update_armpll_rate() local 257 clkin = clk_armpll.parent->rate; in local_update_armpll_rate() 260 clk_armpll.rate = clk_get_pllrate_from_reg(clkin, pllreg); in local_update_armpll_rate() 417 u32 clkin, usbdiv; in local_usbpll_round_rate() local 426 clkin = clk->parent->rate; in local_usbpll_round_rate() 429 clkin = clkin / usbdiv; in local_usbpll_round_rate() 432 if (local_clk_find_pll_cfg(clkin, rate, &pllsetup) == 0) in local_usbpll_round_rate() 435 return clk_check_pll_setup(clkin, &pllsetup); in local_usbpll_round_rate() 440 u32 clkin, reg, usbdiv; in local_usbpll_set_rate() local 449 clkin = clk->get_rate(clk); in local_usbpll_set_rate() [all …]
|
/linux-2.6.39/drivers/i2c/busses/ |
D | i2c-s3c2410.c | 595 static int s3c24xx_i2c_calcdivisor(unsigned long clkin, unsigned int wanted, in s3c24xx_i2c_calcdivisor() argument 598 unsigned int calc_divs = clkin / wanted; in s3c24xx_i2c_calcdivisor() 617 return clkin / (calc_divs * calc_div1); in s3c24xx_i2c_calcdivisor() 630 unsigned long clkin = clk_get_rate(i2c->clk); in s3c24xx_i2c_clockrate() local 636 i2c->clkrate = clkin; in s3c24xx_i2c_clockrate() 637 clkin /= 1000; /* clkin now in KHz */ in s3c24xx_i2c_clockrate() 645 freq = s3c24xx_i2c_calcdivisor(clkin, target_frequency, &div1, &divs); in s3c24xx_i2c_clockrate() 669 sda_delay = clkin * pdata->sda_delay; in s3c24xx_i2c_clockrate()
|
/linux-2.6.39/drivers/hwmon/ |
D | w83795.c | 291 static unsigned int pwm_freq_from_reg(u8 reg, u16 clkin) in pwm_freq_from_reg() argument 296 base_clock = clkin * 1000 / ((clkin == 48000) ? 384 : 256); in pwm_freq_from_reg() 302 static u8 pwm_freq_to_reg(unsigned long val, u16 clkin) in pwm_freq_to_reg() argument 319 base_clock = clkin * 1000 / ((clkin == 48000) ? 384 : 256); in pwm_freq_to_reg() 370 u16 clkin; /* CLKIN frequency in kHz */ member 844 val = pwm_freq_from_reg(data->pwm[index][nr], data->clkin); in show_pwm() 875 val = pwm_freq_to_reg(val, data->clkin); in store_pwm() 1844 static const u16 clkin[4] = { /* in kHz */ in w83795_init_client() local 1860 data->clkin = clkin[(config >> 3) & 0x3]; in w83795_init_client() 1861 dev_dbg(&client->dev, "clkin = %u kHz\n", data->clkin); in w83795_init_client()
|
/linux-2.6.39/drivers/video/omap2/dss/ |
D | hdmi.c | 1055 static void hdmi_compute_pll(unsigned long clkin, int phy, in hdmi_compute_pll() argument 1065 refclk = clkin / (n + 1); in hdmi_compute_pll() 1088 pi->regsd = ((pi->regm * clkin / 10) / ((n + 1) * 250) + 5) / 10; in hdmi_compute_pll() 1109 int clkin, n, phy; in hdmi_power_on() local 1129 clkin = 3840; /* 38.4 MHz */ in hdmi_power_on() 1133 hdmi_compute_pll(clkin, phy, n, &pll_data); in hdmi_power_on()
|
D | dsi.c | 1094 cinfo->clkin = dss_clk_get_rate(DSS_CLK_SYSCK); in dsi_calc_clock_rates() 1099 cinfo->clkin = dispc_pclk_rate(dssdev->manager->id); in dsi_calc_clock_rates() 1101 if (cinfo->clkin < 32000000) in dsi_calc_clock_rates() 1107 cinfo->fint = cinfo->clkin / (cinfo->regn * (cinfo->highfreq ? 2 : 1)); in dsi_calc_clock_rates() 1147 dsi.cache_cinfo.clkin == dss_sys_clk) { in dsi_pll_calc_clock_div_pck() 1172 cur.clkin = dss_sys_clk; in dsi_pll_calc_clock_div_pck() 1181 cur.fint = cur.clkin / cur.regn; in dsi_pll_calc_clock_div_pck() 1183 cur.fint = cur.clkin / (2 * cur.regn); in dsi_pll_calc_clock_div_pck() 1192 a = 2 * cur.regm * (cur.clkin/1000); in dsi_pll_calc_clock_div_pck() 1295 cinfo->clkin, in dsi_pll_set_clock_div() [all …]
|
D | dss.h | 156 unsigned long clkin; member
|
/linux-2.6.39/include/linux/usb/ |
D | musb.h | 93 unsigned char clkin; member
|
/linux-2.6.39/arch/blackfin/mach-bf527/boards/ |
D | ad7160eval.c | 70 .clkin = 24, /* musb CLKIN in MHZ */
|
D | ezbrd.c | 71 .clkin = 24, /* musb CLKIN in MHZ */
|
D | cm_bf527.c | 107 .clkin = 24, /* musb CLKIN in MHZ */
|
D | ezkit.c | 111 .clkin = 24, /* musb CLKIN in MHZ */
|
/linux-2.6.39/drivers/usb/musb/ |
D | blackfin.c | 371 ((480/musb->config->clkin) << 1)); in bfin_musb_reg_init()
|
/linux-2.6.39/arch/blackfin/mach-bf548/boards/ |
D | cm_bf548.c | 507 .clkin = 24, /* musb CLKIN in MHZ */
|
D | ezkit.c | 612 .clkin = 24, /* musb CLKIN in MHZ */
|