Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/mfd/
Dintel_quark_i2c_gpio.c49 struct clk *i2c_clk; member
126 struct clk *i2c_clk; in intel_quark_register_i2c_clk() local
128 i2c_clk = clk_register_fixed_rate(dev, in intel_quark_register_i2c_clk()
131 if (IS_ERR(i2c_clk)) in intel_quark_register_i2c_clk()
132 return PTR_ERR(i2c_clk); in intel_quark_register_i2c_clk()
134 quark_mfd->i2c_clk = i2c_clk; in intel_quark_register_i2c_clk()
135 quark_mfd->i2c_clk_lookup = clkdev_create(i2c_clk, NULL, in intel_quark_register_i2c_clk()
139 clk_unregister(quark_mfd->i2c_clk); in intel_quark_register_i2c_clk()
155 clk_unregister(quark_mfd->i2c_clk); in intel_quark_unregister_i2c_clk()
/Linux-v5.10/drivers/i2c/busses/
Di2c-altera.c82 struct clk *i2c_clk; member
139 u32 divisor = clk_get_rate(idev->i2c_clk) / idev->bus_clk_rate; in altr_i2c_init()
140 u32 clk_mhz = clk_get_rate(idev->i2c_clk) / 1000000; in altr_i2c_init()
401 idev->i2c_clk = devm_clk_get(&pdev->dev, NULL); in altr_i2c_probe()
402 if (IS_ERR(idev->i2c_clk)) { in altr_i2c_probe()
404 return PTR_ERR(idev->i2c_clk); in altr_i2c_probe()
440 ret = clk_prepare_enable(idev->i2c_clk); in altr_i2c_probe()
461 clk_disable_unprepare(idev->i2c_clk); in altr_i2c_probe()
473 clk_disable_unprepare(idev->i2c_clk); in altr_i2c_remove()
Di2c-axxia.c145 struct clk *i2c_clk; member
178 u32 divisor = clk_get_rate(idev->i2c_clk) / idev->bus_clk_rate; in axxia_i2c_init()
179 u32 clk_mhz = clk_get_rate(idev->i2c_clk) / 1000000; in axxia_i2c_init()
752 idev->i2c_clk = devm_clk_get(&pdev->dev, "i2c"); in axxia_i2c_probe()
753 if (IS_ERR(idev->i2c_clk)) { in axxia_i2c_probe()
755 return PTR_ERR(idev->i2c_clk); in axxia_i2c_probe()
766 ret = clk_prepare_enable(idev->i2c_clk); in axxia_i2c_probe()
803 clk_disable_unprepare(idev->i2c_clk); in axxia_i2c_probe()
811 clk_disable_unprepare(idev->i2c_clk); in axxia_i2c_remove()
Di2c-cadence.c200 unsigned int i2c_clk; member
1034 unsigned long fscl = id->i2c_clk; in cdns_i2c_setclk()
1081 unsigned long fscl = id->i2c_clk; in cdns_i2c_clk_notifier_cb()
1237 &id->i2c_clk); in cdns_i2c_probe()
1238 if (ret || (id->i2c_clk > I2C_MAX_FAST_MODE_FREQ)) in cdns_i2c_probe()
1239 id->i2c_clk = I2C_MAX_STANDARD_MODE_FREQ; in cdns_i2c_probe()
1250 dev_err(&pdev->dev, "invalid SCL clock: %u Hz\n", id->i2c_clk); in cdns_i2c_probe()
1276 id->i2c_clk / 1000, (unsigned long)r_mem->start, id->irq); in cdns_i2c_probe()
Di2c-jz4780.c256 int i2c_clk = i2c->speed; in jz4780_i2c_set_speed() local
266 cnt_period = dev_clk_khz / i2c_clk; in jz4780_i2c_set_speed()
268 if (i2c_clk <= 100) in jz4780_i2c_set_speed()
282 if (i2c_clk <= 100) { in jz4780_i2c_set_speed()
320 if (i2c_clk <= 100) { /* standard mode */ in jz4780_i2c_set_speed()
Di2c-nomadik.c351 u32 i2c_clk, div; in setup_i2c_controller() local
361 i2c_clk = clk_get_rate(dev->clk); in setup_i2c_controller()
375 ns = DIV_ROUND_UP_ULL(1000000000ULL, i2c_clk); in setup_i2c_controller()
409 brcr2 = (i2c_clk/(dev->clk_freq * div)) & 0xffff; in setup_i2c_controller()
423 brcr2 = i2c_clk / (I2C_MAX_STANDARD_MODE_FREQ * 2) & 0xffff; in setup_i2c_controller()
Di2c-npcm7xx.c2234 struct clk *i2c_clk; in npcm_i2c_probe_bus() local
2248 i2c_clk = devm_clk_get(&pdev->dev, NULL); in npcm_i2c_probe_bus()
2249 if (IS_ERR(i2c_clk)) in npcm_i2c_probe_bus()
2250 return PTR_ERR(i2c_clk); in npcm_i2c_probe_bus()
2251 bus->apb_clk = clk_get_rate(i2c_clk); in npcm_i2c_probe_bus()
/Linux-v5.10/drivers/staging/nvec/
Dnvec.c725 clk_prepare_enable(nvec->i2c_clk); in tegra_init_i2c_slave()
735 clk_set_rate(nvec->i2c_clk, 8 * 80000); in tegra_init_i2c_slave()
751 clk_disable_unprepare(nvec->i2c_clk); in nvec_disable_i2c_slave()
766 struct clk *i2c_clk; in tegra_nvec_probe() local
800 i2c_clk = devm_clk_get(dev, "div-clk"); in tegra_nvec_probe()
801 if (IS_ERR(i2c_clk)) { in tegra_nvec_probe()
813 nvec->i2c_clk = i2c_clk; in tegra_nvec_probe()
Dnvec.h139 struct clk *i2c_clk; member
/Linux-v5.10/drivers/clk/tegra/
Dclk-dfll.c272 struct clk *i2c_clk; member
406 ret = clk_enable(td->i2c_clk); in tegra_dfll_runtime_resume()
431 clk_disable(td->i2c_clk); in tegra_dfll_runtime_suspend()
1437 td->i2c_clk = devm_clk_get(td->dev, "i2c"); in dfll_init_clks()
1438 if (IS_ERR(td->i2c_clk)) { in dfll_init_clks()
1440 return PTR_ERR(td->i2c_clk); in dfll_init_clks()
1442 td->i2c_clk_rate = clk_get_rate(td->i2c_clk); in dfll_init_clks()
1481 ret = clk_prepare(td->i2c_clk); in dfll_init()
2087 clk_unprepare(td->i2c_clk); in tegra_dfll_unregister()