Searched refs:i2c_clk (Results 1 – 10 of 10) sorted by relevance
/linux/drivers/mfd/ |
H A D | intel_quark_i2c_gpio.c | 39 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/media/pci/mgb4/ |
H A D | mgb4_core.c | 304 mgbdev->i2c_clk = clk_hw_register_fixed_rate(NULL, clk_name, NULL, in init_i2c() 306 if (IS_ERR(mgbdev->i2c_clk)) { in init_i2c() 308 return PTR_ERR(mgbdev->i2c_clk); in init_i2c() 310 mgbdev->i2c_cl = clkdev_hw_create(mgbdev->i2c_clk, NULL, "xiic-i2c.%d", in init_i2c() 344 clk_hw_unregister(mgbdev->i2c_clk); in init_i2c() 354 clk_hw_unregister(mgbdev->i2c_clk); in free_i2c()
|
H A D | mgb4_core.h | 47 struct clk_hw *i2c_clk; member
|
/linux/drivers/i2c/busses/ |
H A D | i2c-xiic.c | 98 unsigned int i2c_clk; member 379 __func__, i2c->input_clk, i2c->i2c_clk); in xiic_setclk() 382 if (!i2c->i2c_clk || !i2c->input_clk) in xiic_setclk() 387 switch (i2c->i2c_clk) { in xiic_setclk() 410 reg_val = (DIV_ROUND_UP(i2c->input_clk, 2 * i2c->i2c_clk)) - 7; in xiic_setclk() 1286 &i2c->i2c_clk); in xiic_i2c_probe() 1288 if (ret || i2c->i2c_clk > I2C_MAX_FAST_MODE_PLUS_FREQ) in xiic_i2c_probe() 1289 i2c->i2c_clk = 0; in xiic_i2c_probe() 1335 (unsigned long)res->start, irq, i2c->i2c_clk); in xiic_i2c_probe()
|
H A D | i2c-jz4780.c | 256 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()
|
H A D | i2c-nomadik.c | 401 u32 i2c_clk, div; in setup_i2c_controller() local 411 i2c_clk = clk_get_rate(priv->clk); in setup_i2c_controller() 425 ns = DIV_ROUND_UP_ULL(1000000000ULL, i2c_clk); in setup_i2c_controller() 461 brcr = DIV_ROUND_UP(i2c_clk, priv->clk_freq * div); in setup_i2c_controller()
|
H A D | i2c-npcm7xx.c | 2279 struct clk *i2c_clk; in npcm_i2c_probe_bus() local 2297 i2c_clk = devm_clk_get(&pdev->dev, NULL); in npcm_i2c_probe_bus() 2298 if (IS_ERR(i2c_clk)) in npcm_i2c_probe_bus() 2299 return PTR_ERR(i2c_clk); in npcm_i2c_probe_bus() 2300 bus->apb_clk = clk_get_rate(i2c_clk); in npcm_i2c_probe_bus()
|
/linux/drivers/clk/tegra/ |
H A D | clk-dfll.c | 272 struct clk *i2c_clk; member 407 ret = clk_enable(td->i2c_clk); in tegra_dfll_runtime_resume() 432 clk_disable(td->i2c_clk); in tegra_dfll_runtime_suspend() 1438 td->i2c_clk = devm_clk_get(td->dev, "i2c"); in dfll_init_clks() 1439 if (IS_ERR(td->i2c_clk)) { in dfll_init_clks() 1441 return PTR_ERR(td->i2c_clk); in dfll_init_clks() 1443 td->i2c_clk_rate = clk_get_rate(td->i2c_clk); in dfll_init_clks() 1483 ret = clk_prepare(td->i2c_clk); in dfll_init() 2101 clk_unprepare(td->i2c_clk); in tegra_dfll_unregister()
|
/linux/drivers/staging/nvec/ |
H A D | nvec.h | 139 struct clk *i2c_clk; member
|
/linux/drivers/ptp/ |
H A D | ptp_ocp.c | 359 struct clk_hw *i2c_clk; member 2008 bp->i2c_clk = clk; in ptp_ocp_register_i2c() 4522 if (bp->i2c_clk) in ptp_ocp_detach() 4523 clk_hw_unregister_fixed_rate(bp->i2c_clk); in ptp_ocp_detach()
|