Home
last modified time | relevance | path

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

/linux-2.6.39/arch/arm/mach-davinci/
Daemif.c96 unsigned long clkrate; in davinci_aemif_setup_timing() local
105 clkrate = clk_get_rate(aemif_clk); in davinci_aemif_setup_timing()
107 clkrate /= 1000; /* turn clock into kHz for ease of use */ in davinci_aemif_setup_timing()
109 ta = aemif_calc_rate(t->ta, clkrate, TA_MAX); in davinci_aemif_setup_timing()
110 rhold = aemif_calc_rate(t->rhold, clkrate, RHOLD_MAX); in davinci_aemif_setup_timing()
111 rstrobe = aemif_calc_rate(t->rstrobe, clkrate, RSTROBE_MAX); in davinci_aemif_setup_timing()
112 rsetup = aemif_calc_rate(t->rsetup, clkrate, RSETUP_MAX); in davinci_aemif_setup_timing()
113 whold = aemif_calc_rate(t->whold, clkrate, WHOLD_MAX); in davinci_aemif_setup_timing()
114 wstrobe = aemif_calc_rate(t->wstrobe, clkrate, WSTROBE_MAX); in davinci_aemif_setup_timing()
115 wsetup = aemif_calc_rate(t->wsetup, clkrate, WSETUP_MAX); in davinci_aemif_setup_timing()
/linux-2.6.39/arch/arm/mach-lpc32xx/
Dtimer.c118 u32 clkrate, pllreg; in lpc32xx_timer_init() local
132 clkrate = LPC32XX_MAIN_OSC_FREQ; in lpc32xx_timer_init()
134 clkrate = 397 * LPC32XX_CLOCK_OSC_FREQ; in lpc32xx_timer_init()
138 clkrate = clk_get_pllrate_from_reg(clkrate, pllreg); in lpc32xx_timer_init()
141 clkrate = clkrate / clk_get_pclk_div(); in lpc32xx_timer_init()
157 lpc32xx_clkevt.mult = div_sc(clkrate, NSEC_PER_SEC, in lpc32xx_timer_init()
173 clocksource_register_hz(&lpc32xx_clksrc, clkrate); in lpc32xx_timer_init()
/linux-2.6.39/arch/arm/plat-omap/
Di2c.c205 i2c_pdata[ints[1] - 1].clkrate = ints[2]; in omap_i2c_bus_setup()
206 i2c_pdata[ints[1] - 1].clkrate |= OMAP_I2C_CMDLINE_SETUP; in omap_i2c_bus_setup()
221 if (i2c_pdata[i].clkrate & OMAP_I2C_CMDLINE_SETUP) { in omap_register_i2c_bus_cmdline()
222 i2c_pdata[i].clkrate &= ~OMAP_I2C_CMDLINE_SETUP; in omap_register_i2c_bus_cmdline()
242 int __init omap_register_i2c_bus(int bus_id, u32 clkrate, in omap_register_i2c_bus() argument
256 if (!i2c_pdata[bus_id - 1].clkrate) in omap_register_i2c_bus()
257 i2c_pdata[bus_id - 1].clkrate = clkrate; in omap_register_i2c_bus()
259 i2c_pdata[bus_id - 1].clkrate &= ~OMAP_I2C_CMDLINE_SETUP; in omap_register_i2c_bus()
/linux-2.6.39/arch/arm/plat-omap/include/plat/
Di2c.h27 extern int omap_register_i2c_bus(int bus_id, u32 clkrate,
31 static inline int omap_register_i2c_bus(int bus_id, u32 clkrate, in omap_register_i2c_bus() argument
/linux-2.6.39/drivers/i2c/busses/
Di2c-stu300.c494 static int stu300_set_clk(struct stu300_dev *dev, unsigned long clkrate) in stu300_set_clk() argument
502 stu300_clktable[i].rate < clkrate) in stu300_set_clk()
507 "(%lu Hz).\n", i ? "high" : "low", clkrate); in stu300_set_clk()
515 "virtbase %p\n", clkrate, dev->speed, dev->virtbase); in stu300_set_clk()
519 val = ((clkrate/dev->speed) - 9)/3 + 1; in stu300_set_clk()
522 val = ((clkrate/dev->speed) - 7)/2 + 1; in stu300_set_clk()
527 clkrate); in stu300_set_clk()
534 clkrate); in stu300_set_clk()
563 unsigned long clkrate; in stu300_init_hw() local
580 clkrate = clk_get_rate(dev->clk); in stu300_init_hw()
[all …]
Di2c-s3c2410.c73 unsigned long clkrate; member
636 i2c->clkrate = clkin; in s3c24xx_i2c_clockrate()
698 delta_f = clk_get_rate(i2c->clk) - i2c->clkrate; in s3c24xx_i2c_cpufreq_transition()
Di2c-omap.c1011 speed = pdata->clkrate; in omap_i2c_probe()
/linux-2.6.39/drivers/mtd/nand/
Ds3c2410.c215 unsigned long clkrate = clk_get_rate(info->clk); in s3c2410_nand_setrate() local
221 info->clk_rate = clkrate; in s3c2410_nand_setrate()
222 clkrate /= 1000; /* turn clock into kHz for ease of use */ in s3c2410_nand_setrate()
225 tacls = s3c_nand_calc_rate(plat->tacls, clkrate, tacls_max); in s3c2410_nand_setrate()
226 twrph0 = s3c_nand_calc_rate(plat->twrph0, clkrate, 8); in s3c2410_nand_setrate()
227 twrph1 = s3c_nand_calc_rate(plat->twrph1, clkrate, 8); in s3c2410_nand_setrate()
241 … tacls, to_ns(tacls, clkrate), twrph0, to_ns(twrph0, clkrate), twrph1, to_ns(twrph1, clkrate)); in s3c2410_nand_setrate()
/linux-2.6.39/include/linux/
Di2c-omap.h7 u32 clkrate; member
/linux-2.6.39/drivers/mmc/host/
Dpxamci.c56 unsigned long clkrate; member
190 clks = (unsigned long long)data->timeout_ns * host->clkrate; in pxamci_setup_data()
470 unsigned long rate = host->clkrate; in pxamci_set_ios()
634 host->clkrate = clk_get_rate(host->clk); in pxamci_probe()
639 mmc->f_min = (host->clkrate + 63) / 64; in pxamci_probe()
640 mmc->f_max = (mmc_has_26MHz()) ? 26000000 : host->clkrate; in pxamci_probe()
/linux-2.6.39/sound/soc/samsung/
Ds3c-i2s-v2.c582 unsigned long clkrate = clk_get_rate(clk); in s3c_i2sv2_iis_calc_rate() local
594 pr_debug("Input clock rate %ldHz\n", clkrate); in s3c_i2sv2_iis_calc_rate()
602 fsclk = clkrate / fsdiv; in s3c_i2sv2_iis_calc_rate()
611 actual = clkrate / (fsdiv * div); in s3c_i2sv2_iis_calc_rate()
/linux-2.6.39/arch/arm/mach-omap2/
Dclock2420_data.c1911 u32 clkrate; in omap2420_clk_init() local
1940 clkrate = omap2xxx_clk_get_core_rate(&dpll_ck); in omap2420_clk_init()
1946 if (prcm->dpll_speed <= clkrate) in omap2420_clk_init()
Dclock2430_data.c2011 u32 clkrate; in omap2430_clk_init() local
2040 clkrate = omap2xxx_clk_get_core_rate(&dpll_ck); in omap2430_clk_init()
2046 if (prcm->dpll_speed <= clkrate) in omap2430_clk_init()
/linux-2.6.39/drivers/net/wan/
Dpc300_drv.c2851 u32 clkrate = chan->conf.phys_settings.clock_rate; in ch_config() local
2930 tmc = clock_rate_calc(clkrate, card->hw.clock, &br); in ch_config()
/linux-2.6.39/Documentation/
Dkernel-parameters.txt885 <bus_id>,<clkrate>