Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/i2c/busses/
Di2c-lpc2k.c357 u32 clkrate; in i2c_lpc2k_probe() local
406 clkrate = clk_get_rate(i2c->clk); in i2c_lpc2k_probe()
407 if (clkrate == 0) { in i2c_lpc2k_probe()
414 clkrate = clkrate / bus_clk_rate; in i2c_lpc2k_probe()
416 scl_high = (clkrate * I2C_STD_MODE_DUTY) / 100; in i2c_lpc2k_probe()
418 scl_high = (clkrate * I2C_FAST_MODE_DUTY) / 100; in i2c_lpc2k_probe()
420 scl_high = (clkrate * I2C_FAST_MODE_PLUS_DUTY) / 100; in i2c_lpc2k_probe()
423 writel(clkrate - scl_high, i2c->base + LPC24XX_I2SCLL); in i2c_lpc2k_probe()
Di2c-stu300.c490 static int stu300_set_clk(struct stu300_dev *dev, unsigned long clkrate) in stu300_set_clk() argument
498 stu300_clktable[i].rate < clkrate) in stu300_set_clk()
503 "(%lu Hz).\n", i ? "high" : "low", clkrate); in stu300_set_clk()
511 "virtbase %p\n", clkrate, dev->speed, dev->virtbase); in stu300_set_clk()
515 val = ((clkrate/dev->speed) - 9)/3 + 1; in stu300_set_clk()
518 val = ((clkrate/dev->speed) - 7)/2 + 1; in stu300_set_clk()
523 clkrate); in stu300_set_clk()
530 clkrate); in stu300_set_clk()
559 unsigned long clkrate; in stu300_init_hw() local
576 clkrate = clk_get_rate(dev->clk); in stu300_init_hw()
[all …]
Di2c-s3c2410.c118 unsigned long clkrate; member
852 i2c->clkrate = clkin; in s3c24xx_i2c_clockrate()
916 delta_f = clk_get_rate(i2c->clk) - i2c->clkrate; in s3c24xx_i2c_cpufreq_transition()
Di2c-omap.c1353 omap->speed = pdata->clkrate; in omap_i2c_probe()
/linux-4.19.296/drivers/rtc/
Drtc-st-lpc.c50 unsigned long clkrate; member
101 do_div(lpt, rtc->clkrate); in st_rtc_read_time()
115 lpt = (unsigned long long)secs * rtc->clkrate; in st_rtc_set_time()
177 lpa = (unsigned long long)alarm_secs * rtc->clkrate; in st_rtc_set_alarm()
250 rtc->clkrate = clk_get_rate(rtc->clk); in st_rtc_probe()
251 if (!rtc->clkrate) { in st_rtc_probe()
263 do_div(rtc->rtc_dev->range_max, rtc->clkrate); in st_rtc_probe()
/linux-4.19.296/drivers/media/rc/
Dtango-ir.c166 u64 clkrate, clkdiv; in tango_ir_probe() local
217 clkrate = clk_get_rate(ir->clk); in tango_ir_probe()
219 clkdiv = clkrate * NEC_TIME_BASE; in tango_ir_probe()
225 clkdiv = clkrate * RC5_TIME_BASE; in tango_ir_probe()
232 clkdiv = clkrate * RC6_TIME_BASE; in tango_ir_probe()
/linux-4.19.296/include/linux/platform_data/
Di2c-omap.h33 u32 clkrate; member