Home
last modified time | relevance | path

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

/linux/drivers/mfd/
A Dintel_quark_i2c_gpio.c39 struct clk *i2c_clk; member
164 struct clk *i2c_clk; in intel_quark_register_i2c_clk() local
166 i2c_clk = clk_register_fixed_rate(dev, in intel_quark_register_i2c_clk()
169 if (IS_ERR(i2c_clk)) in intel_quark_register_i2c_clk()
170 return PTR_ERR(i2c_clk); in intel_quark_register_i2c_clk()
172 quark_mfd->i2c_clk = i2c_clk; in intel_quark_register_i2c_clk()
173 quark_mfd->i2c_clk_lookup = clkdev_create(i2c_clk, NULL, in intel_quark_register_i2c_clk()
177 clk_unregister(quark_mfd->i2c_clk); in intel_quark_register_i2c_clk()
193 clk_unregister(quark_mfd->i2c_clk); in intel_quark_unregister_i2c_clk()
/linux/drivers/i2c/busses/
A 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()
400 idev->i2c_clk = devm_clk_get(&pdev->dev, NULL); in altr_i2c_probe()
401 if (IS_ERR(idev->i2c_clk)) { in altr_i2c_probe()
403 return PTR_ERR(idev->i2c_clk); in altr_i2c_probe()
439 ret = clk_prepare_enable(idev->i2c_clk); in altr_i2c_probe()
460 clk_disable_unprepare(idev->i2c_clk); in altr_i2c_probe()
472 clk_disable_unprepare(idev->i2c_clk); in altr_i2c_remove()
A 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()
A Di2c-cadence.c201 unsigned int i2c_clk; member
1070 unsigned long fscl = id->i2c_clk; in cdns_i2c_setclk()
1118 unsigned long fscl = id->i2c_clk; in cdns_i2c_clk_notifier_cb()
1297 &id->i2c_clk); in cdns_i2c_probe()
1298 if (ret || (id->i2c_clk > I2C_MAX_FAST_MODE_FREQ)) in cdns_i2c_probe()
1299 id->i2c_clk = I2C_MAX_STANDARD_MODE_FREQ; in cdns_i2c_probe()
1310 dev_err(&pdev->dev, "invalid SCL clock: %u Hz\n", id->i2c_clk); in cdns_i2c_probe()
1328 id->i2c_clk / 1000, (unsigned long)r_mem->start, id->irq); in cdns_i2c_probe()
A 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()
A 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()
A 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/drivers/staging/nvec/
A Dnvec.c726 clk_prepare_enable(nvec->i2c_clk); in tegra_init_i2c_slave()
736 clk_set_rate(nvec->i2c_clk, 8 * 80000); in tegra_init_i2c_slave()
752 clk_disable_unprepare(nvec->i2c_clk); in nvec_disable_i2c_slave()
767 struct clk *i2c_clk; in tegra_nvec_probe() local
801 i2c_clk = devm_clk_get(dev, "div-clk"); in tegra_nvec_probe()
802 if (IS_ERR(i2c_clk)) { in tegra_nvec_probe()
814 nvec->i2c_clk = i2c_clk; in tegra_nvec_probe()
A Dnvec.h139 struct clk *i2c_clk; member
/linux/drivers/clk/tegra/
A 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()
/linux/Documentation/devicetree/bindings/i2c/
A Dsocionext,uniphier-fi2c.yaml50 clocks = <&i2c_clk>;
A Dsocionext,uniphier-i2c.yaml50 clocks = <&i2c_clk>;
/linux/drivers/ptp/
A Dptp_ocp.c228 struct clk_hw *i2c_clk; member
1209 bp->i2c_clk = clk; in ptp_ocp_register_i2c()
2437 if (bp->i2c_clk) in ptp_ocp_detach()
2438 clk_hw_unregister_fixed_rate(bp->i2c_clk); in ptp_ocp_detach()

Completed in 50 milliseconds