Lines Matching refs:i2c_bus
271 struct imx_lpi2c_bus *i2c_bus = dev_get_priv(bus); in bus_i2c_set_bus_speed() local
284 clock_rate = clk_get_rate(&i2c_bus->per_clk); in bus_i2c_set_bus_speed()
442 struct imx_lpi2c_bus *i2c_bus = dev_get_priv(bus); in imx_lpi2c_probe() local
446 i2c_bus->driver_data = dev_get_driver_data(bus); in imx_lpi2c_probe()
452 i2c_bus->base = addr; in imx_lpi2c_probe()
453 i2c_bus->index = bus->seq; in imx_lpi2c_probe()
454 i2c_bus->bus = bus; in imx_lpi2c_probe()
464 ret = clk_get_by_name(bus, "per", &i2c_bus->per_clk); in imx_lpi2c_probe()
469 ret = clk_enable(&i2c_bus->per_clk); in imx_lpi2c_probe()
475 ret = clk_get_by_name(bus, "ipg", &i2c_bus->ipg_clk); in imx_lpi2c_probe()
480 ret = clk_enable(&i2c_bus->ipg_clk); in imx_lpi2c_probe()
497 bus->seq, i2c_bus->base, in imx_lpi2c_probe()
498 i2c_bus->speed); in imx_lpi2c_probe()