Searched refs:i2c_clk (Results 1 – 3 of 3) sorted by relevance
735 clk_prepare_enable(nvec->i2c_clk); in tegra_init_i2c_slave()737 tegra_periph_reset_assert(nvec->i2c_clk); in tegra_init_i2c_slave()739 tegra_periph_reset_deassert(nvec->i2c_clk); in tegra_init_i2c_slave()745 clk_set_rate(nvec->i2c_clk, 8 * 80000); in tegra_init_i2c_slave()755 clk_disable_unprepare(nvec->i2c_clk); in tegra_init_i2c_slave()763 clk_disable_unprepare(nvec->i2c_clk); in nvec_disable_i2c_slave()778 struct clk *i2c_clk; in tegra_nvec_probe() local827 i2c_clk = devm_clk_get(&pdev->dev, "div-clk"); in tegra_nvec_probe()828 if (IS_ERR(i2c_clk)) { in tegra_nvec_probe()835 nvec->i2c_clk = i2c_clk; in tegra_nvec_probe()[all …]
166 struct clk *i2c_clk; member
341 u32 i2c_clk, div; in setup_i2c_controller() local360 i2c_clk = clk_get_rate(dev->clk); in setup_i2c_controller()377 brcr2 = (i2c_clk/(dev->cfg.clk_freq * div)) & 0xffff; in setup_i2c_controller()391 brcr2 = i2c_clk/(100000 * 2) & 0xffff; in setup_i2c_controller()