Home
last modified time | relevance | path

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

/drivers/mfd/
Dintel_quark_i2c_gpio.c57 struct clk *i2c_clk; member
129 struct clk *i2c_clk; in intel_quark_register_i2c_clk() local
131 i2c_clk = clk_register_fixed_rate(dev, in intel_quark_register_i2c_clk()
134 if (IS_ERR(i2c_clk)) in intel_quark_register_i2c_clk()
135 return PTR_ERR(i2c_clk); in intel_quark_register_i2c_clk()
137 quark_mfd->i2c_clk = i2c_clk; in intel_quark_register_i2c_clk()
138 quark_mfd->i2c_clk_lookup = clkdev_create(i2c_clk, NULL, in intel_quark_register_i2c_clk()
142 clk_unregister(quark_mfd->i2c_clk); in intel_quark_register_i2c_clk()
158 clk_unregister(quark_mfd->i2c_clk); in intel_quark_unregister_i2c_clk()
/drivers/i2c/busses/
Di2c-axxia.c107 struct clk *i2c_clk; member
137 u32 divisor = clk_get_rate(idev->i2c_clk) / idev->bus_clk_rate; in axxia_i2c_init()
138 u32 clk_mhz = clk_get_rate(idev->i2c_clk) / 1000000; in axxia_i2c_init()
521 idev->i2c_clk = devm_clk_get(&pdev->dev, "i2c"); in axxia_i2c_probe()
522 if (IS_ERR(idev->i2c_clk)) { in axxia_i2c_probe()
524 return PTR_ERR(idev->i2c_clk); in axxia_i2c_probe()
548 ret = clk_prepare_enable(idev->i2c_clk); in axxia_i2c_probe()
567 clk_disable_unprepare(idev->i2c_clk); in axxia_i2c_probe()
578 clk_disable_unprepare(idev->i2c_clk); in axxia_i2c_remove()
Di2c-cadence.c161 unsigned int i2c_clk; member
742 unsigned long fscl = id->i2c_clk; in cdns_i2c_setclk()
786 unsigned long fscl = id->i2c_clk; in cdns_i2c_clk_notifier_cb()
944 &id->i2c_clk); in cdns_i2c_probe()
945 if (ret || (id->i2c_clk > CDNS_I2C_SPEED_MAX)) in cdns_i2c_probe()
946 id->i2c_clk = CDNS_I2C_SPEED_DEFAULT; in cdns_i2c_probe()
953 dev_err(&pdev->dev, "invalid SCL clock: %u Hz\n", id->i2c_clk); in cdns_i2c_probe()
979 id->i2c_clk / 1000, (unsigned long)r_mem->start, id->irq); in cdns_i2c_probe()
Di2c-jz4780.c264 int i2c_clk = i2c->speed; in jz4780_i2c_set_speed() local
274 cnt_period = dev_clk_khz / i2c_clk; in jz4780_i2c_set_speed()
276 if (i2c_clk <= 100) in jz4780_i2c_set_speed()
290 if (i2c_clk <= 100) { in jz4780_i2c_set_speed()
328 if (i2c_clk <= 100) { /* standard mode */ in jz4780_i2c_set_speed()
Di2c-nomadik.c354 u32 i2c_clk, div; in setup_i2c_controller() local
364 i2c_clk = clk_get_rate(dev->clk); in setup_i2c_controller()
378 ns = DIV_ROUND_UP_ULL(1000000000ULL, i2c_clk); in setup_i2c_controller()
412 brcr2 = (i2c_clk/(dev->clk_freq * div)) & 0xffff; in setup_i2c_controller()
426 brcr2 = i2c_clk/(100000 * 2) & 0xffff; in setup_i2c_controller()
/drivers/staging/nvec/
Dnvec.c730 clk_prepare_enable(nvec->i2c_clk); in tegra_init_i2c_slave()
740 clk_set_rate(nvec->i2c_clk, 8 * 80000); in tegra_init_i2c_slave()
756 clk_disable_unprepare(nvec->i2c_clk); in nvec_disable_i2c_slave()
792 struct clk *i2c_clk; in tegra_nvec_probe() local
828 i2c_clk = devm_clk_get(&pdev->dev, "div-clk"); in tegra_nvec_probe()
829 if (IS_ERR(i2c_clk)) { in tegra_nvec_probe()
841 nvec->i2c_clk = i2c_clk; in tegra_nvec_probe()
Dnvec.h143 struct clk *i2c_clk; member
/drivers/clk/tegra/
Dclk-dfll.c274 struct clk *i2c_clk; member
399 ret = clk_enable(td->i2c_clk); in tegra_dfll_runtime_resume()
424 clk_disable(td->i2c_clk); in tegra_dfll_runtime_suspend()
1295 td->i2c_clk = devm_clk_get(td->dev, "i2c"); in dfll_init_clks()
1296 if (IS_ERR(td->i2c_clk)) { in dfll_init_clks()
1298 return PTR_ERR(td->i2c_clk); in dfll_init_clks()
1300 td->i2c_clk_rate = clk_get_rate(td->i2c_clk); in dfll_init_clks()
1339 ret = clk_prepare(td->i2c_clk); in dfll_init()
1757 clk_unprepare(td->i2c_clk); in tegra_dfll_unregister()