Home
last modified time | relevance | path

Searched refs:i2c_bus (Results 1 – 22 of 22) sorted by relevance

/u-boot/drivers/i2c/
A Dtegra_i2c.c32 struct i2c_bus { struct
44 static void set_packet_mode(struct i2c_bus *i2c_bus) in set_packet_mode() argument
64 static void i2c_reset_controller(struct i2c_bus *i2c_bus) in i2c_reset_controller() argument
96 static void i2c_init_controller(struct i2c_bus *i2c_bus) in i2c_init_controller() argument
106 i2c_init_clock(i2c_bus, i2c_bus->speed * 2 * 8); in i2c_init_controller()
145 struct i2c_bus *i2c_bus, in send_packet_headers() argument
351 struct i2c_bus *i2c_bus = dev_get_priv(dev); in tegra_i2c_set_bus_speed() local
361 struct i2c_bus *i2c_bus = dev_get_priv(dev); in tegra_i2c_probe() local
407 i2c_bus->control = &i2c_bus->regs->control; in tegra_i2c_probe()
466 struct i2c_bus *i2c_bus = dev_get_priv(bus); in tegra_i2c_probe_chip() local
[all …]
A Dmxc_i2c.c400 if (i2c_bus && i2c_bus->idle_bus_fn) in i2c_idle_bus()
401 return i2c_bus->idle_bus_fn(i2c_bus->idle_bus_data); in i2c_idle_bus()
517 if (!i2c_bus->base) in i2c_init_transfer()
524 i2c_imx_stop(i2c_bus); in i2c_init_transfer()
699 i2c_imx_stop(i2c_bus); in bus_i2c_read()
731 i2c_imx_stop(i2c_bus); in bus_i2c_write()
917 i2c_bus->base = addr;
919 i2c_bus->bus = bus;
971 i2c_bus->speed);
989 i2c_imx_stop(i2c_bus);
[all …]
A Dexynos_hs_i2c.c169 i2c_bus->clk_div = i; in hsi2c_get_clk_details()
190 n_clkdiv = i2c_bus->clk_div; in hsi2c_ch_init()
191 t_scl_l = i2c_bus->clk_cycle / 2; in hsi2c_ch_init()
192 t_scl_h = i2c_bus->clk_cycle / 2; in hsi2c_ch_init()
242 hsi2c_ch_init(i2c_bus); in exynos5_i2c_reset()
482 exynos5_i2c_reset(i2c_bus); in exynos_hs_i2c_xfer()
498 hsi2c_ch_init(i2c_bus); in s3c24x0_i2c_set_bus_speed()
533 i2c_bus->clock_frequency = in s3c_i2c_of_to_plat()
536 i2c_bus->node = node; in s3c_i2c_of_to_plat()
537 i2c_bus->bus_num = dev_seq(dev); in s3c_i2c_of_to_plat()
[all …]
A Ds3c24x0_i2c.c90 i2c_bus->clock_frequency = speed; in s3c24x0_i2c_set_bus_speed()
92 i2c_ch_init(i2c_bus->regs, i2c_bus->clock_frequency, in s3c24x0_i2c_set_bus_speed()
231 struct s3c24x0_i2c *i2c = i2c_bus->regs; in s3c24x0_do_msg()
284 struct s3c24x0_i2c *i2c = i2c_bus->regs; in s3c24x0_i2c_xfer()
297 ret = s3c24x0_do_msg(i2c_bus, &msg[i], i); in s3c24x0_i2c_xfer()
314 i2c_bus->regs = dev_read_addr_ptr(dev); in s3c_i2c_of_to_plat()
318 i2c_bus->clock_frequency = in s3c_i2c_of_to_plat()
321 i2c_bus->node = node; in s3c_i2c_of_to_plat()
322 i2c_bus->bus_num = dev_seq(dev); in s3c_i2c_of_to_plat()
324 exynos_pinmux_config(i2c_bus->id, 0); in s3c_i2c_of_to_plat()
[all …]
A Dimx_lpi2c.c100 struct imx_lpi2c_bus *i2c_bus = dev_get_priv(bus); in bus_i2c_send() local
122 struct imx_lpi2c_bus *i2c_bus = dev_get_priv(bus); in bus_i2c_receive() local
167 struct imx_lpi2c_bus *i2c_bus = dev_get_priv(bus); in bus_i2c_start() local
286 clock_rate = clk_get_rate(&i2c_bus->per_clk); in bus_i2c_set_bus_speed()
454 i2c_bus->base = addr; in imx_lpi2c_probe()
455 i2c_bus->index = dev_seq(bus); in imx_lpi2c_probe()
456 i2c_bus->bus = bus; in imx_lpi2c_probe()
471 ret = clk_enable(&i2c_bus->per_clk); in imx_lpi2c_probe()
482 ret = clk_enable(&i2c_bus->ipg_clk); in imx_lpi2c_probe()
499 dev_seq(bus), i2c_bus->base, in imx_lpi2c_probe()
[all …]
A Di2c-cdns.c252 struct cdns_i2c_regs *regs = i2c_bus->regs; in cdns_i2c_write_data()
290 if (!i2c_bus->hold_flag) in cdns_i2c_write_data()
314 struct cdns_i2c_regs *regs = i2c_bus->regs; in cdns_i2c_read_data()
345 !i2c_bus->hold_flag) { in cdns_i2c_read_data()
405 struct i2c_cdns_bus *i2c_bus = dev_get_priv(dev); in cdns_i2c_xfer() local
429 i2c_bus->hold_flag = 1; in cdns_i2c_xfer()
432 i2c_bus->hold_flag = 0; in cdns_i2c_xfer()
466 struct i2c_cdns_bus *i2c_bus = dev_get_priv(dev); in cdns_i2c_of_to_plat() local
473 if (!i2c_bus->regs) in cdns_i2c_of_to_plat()
477 i2c_bus->quirks = pdata->quirks; in cdns_i2c_of_to_plat()
[all …]
A Dcros_ec_tunnel.c28 struct cros_ec_i2c_bus *i2c_bus = dev_get_priv(dev); in cros_ec_i2c_xfer() local
30 return cros_ec_i2c_tunnel(dev->parent, i2c_bus->remote_bus, msg, nmsgs); in cros_ec_i2c_xfer()
35 struct cros_ec_i2c_bus *i2c_bus = dev_get_priv(dev); in cros_ec_i2c_of_to_plat() local
39 i2c_bus->remote_bus = fdtdec_get_uint(blob, node, "google,remote-bus", in cros_ec_i2c_of_to_plat()
A Ddavinci_i2c.c26 struct i2c_bus { struct
439 struct i2c_bus *i2c_bus = dev_get_priv(bus);
463 struct i2c_bus *i2c_bus = dev_get_priv(dev);
465 i2c_bus->speed = speed;
471 struct i2c_bus *i2c_bus = dev_get_priv(dev);
473 i2c_bus->id = dev_seq(dev);
474 i2c_bus->regs = dev_read_addr_ptr(dev);
476 i2c_bus->speed = 100000;
477 _davinci_i2c_init(i2c_bus->regs, i2c_bus->speed, 0);
485 struct i2c_bus *i2c_bus = dev_get_priv(bus);
[all …]
A Di2c_core.c37 struct i2c_bus_hose i2c_bus[CONFIG_SYS_NUM_I2C_BUSES] = variable
111 struct i2c_bus_hose *i2c_bus_tmp = &i2c_bus[I2C_BUS]; in i2c_mux_set_all()
136 struct i2c_bus_hose *i2c_bus_tmp = &i2c_bus[I2C_BUS]; in i2c_mux_disconnect_all()
/u-boot/drivers/i2c/muxes/
A Di2c-mux-uclass.c24 struct udevice *i2c_bus; member
112 priv->i2c_bus = dev_get_parent(mux); in i2c_mux_post_probe()
113 debug("%s: bus=%p/%s\n", __func__, priv->i2c_bus, in i2c_mux_post_probe()
114 priv->i2c_bus->name); in i2c_mux_post_probe()
119 &priv->i2c_bus); in i2c_mux_post_probe()
122 debug("%s: bus=%p/%s\n", __func__, priv->i2c_bus, priv->i2c_bus->name); in i2c_mux_post_probe()
160 ret = dm_i2c_set_bus_speed(priv->i2c_bus, speed); in i2c_mux_bus_set_bus_speed()
171 struct dm_i2c_ops *ops = i2c_get_ops(priv->i2c_bus); in i2c_mux_bus_probe()
180 ret = ops->probe_chip(priv->i2c_bus, chip_addr, chip_flags); in i2c_mux_bus_probe()
191 struct dm_i2c_ops *ops = i2c_get_ops(priv->i2c_bus); in i2c_mux_bus_xfer()
[all …]
/u-boot/cmd/
A Deeprom.c240 static int parse_i2c_bus_addr(int *i2c_bus, ulong *i2c_addr, int argc, in parse_i2c_bus_addr() argument
248 *i2c_bus = -1; in parse_i2c_bus_addr()
255 *i2c_bus = -1; in parse_i2c_bus_addr()
262 *i2c_bus = parse_numeric_param(argv[0]); in parse_i2c_bus_addr()
306 static int eeprom_execute_command(enum eeprom_action action, int i2c_bus, in eeprom_execute_command() argument
320 eeprom_init(i2c_bus); in eeprom_execute_command()
363 int i2c_bus = -1, index = 0; in do_eeprom() local
393 ret = parse_i2c_bus_addr(&i2c_bus, &i2c_addr, argc, in do_eeprom()
397 ret = parse_i2c_bus_addr(&i2c_bus, &i2c_addr, argc, in do_eeprom()
401 ret = parse_i2c_bus_addr(&i2c_bus, &i2c_addr, argc, in do_eeprom()
[all …]
A Di2c.c1753 if (i2c_bus[i].next_hop[j].chip == 0) in do_i2c_show_bus()
1756 i2c_bus[i].next_hop[j].mux.name, in do_i2c_show_bus()
1757 i2c_bus[i].next_hop[j].chip, in do_i2c_show_bus()
1758 i2c_bus[i].next_hop[j].channel); in do_i2c_show_bus()
1788 if (i2c_bus[i].next_hop[j].chip == 0) in do_i2c_show_bus()
1791 i2c_bus[i].next_hop[j].mux.name, in do_i2c_show_bus()
1792 i2c_bus[i].next_hop[j].chip, in do_i2c_show_bus()
1793 i2c_bus[i].next_hop[j].channel); in do_i2c_show_bus()
/u-boot/drivers/video/
A Danx9804.h19 void anx9804_init(unsigned int i2c_bus, u8 lanes, u8 data_rate, int bpp);
21 static inline void anx9804_init(unsigned int i2c_bus, u8 lanes, u8 data_rate, in anx9804_init() argument
A Danx9804.c29 void anx9804_init(unsigned int i2c_bus, u8 lanes, u8 data_rate, int bpp) in anx9804_init() argument
35 i2c_set_bus_num(i2c_bus); in anx9804_init()
/u-boot/drivers/sysinfo/
A Dgazerbeam.c62 struct udevice *i2c_bus; in _read_sysinfo_variant_data() local
69 res = uclass_get_device_by_seq(UCLASS_I2C, I2C_BUS_SEQ_NO, &i2c_bus); in _read_sysinfo_variant_data()
76 if (!i2c_bus) { in _read_sysinfo_variant_data()
82 mc2_sc = !dm_i2c_probe(i2c_bus, MC2_EXPANDER_ADDR, 0, &dummy); in _read_sysinfo_variant_data()
83 mc4 = !dm_i2c_probe(i2c_bus, MC4_EXPANDER_ADDR, 0, &dummy); in _read_sysinfo_variant_data()
/u-boot/drivers/net/
A Dmdio_mux_i2creg.c51 struct udevice *i2c_bus; in mdio_mux_i2creg_probe() local
67 err = uclass_get_device_by_ofnode(UCLASS_I2C, bus_node, &i2c_bus); in mdio_mux_i2creg_probe()
81 err = i2c_get_chip(i2c_bus, (uint)chip_addr, 1, &priv->chip); in mdio_mux_i2creg_probe()
/u-boot/include/
A Dsound.h18 int i2c_bus; member
A Di2c.h681 extern struct i2c_bus_hose i2c_bus[];
683 #define I2C_ADAPTER(bus) i2c_bus[bus].adapter
/u-boot/arch/arm/include/asm/mach-imx/
A Dmxc_i2c.h104 int i2c_idle_bus(struct mxc_i2c_bus *i2c_bus);
/u-boot/board/freescale/ls1021atwr/
A Dls1021atwr.c485 unsigned int i2c_bus; in ls1twr_program_regulator() local
486 i2c_bus = i2c_get_bus_num(); in ls1twr_program_regulator()
501 i2c_set_bus_num(i2c_bus); in ls1twr_program_regulator()
/u-boot/board/ti/common/
A Dboard_detect.c33 static int __maybe_unused ti_i2c_eeprom_init(int i2c_bus, int dev_addr) in ti_i2c_eeprom_init() argument
37 if (i2c_bus >= 0) { in ti_i2c_eeprom_init()
38 rc = i2c_set_bus_num(i2c_bus); in ti_i2c_eeprom_init()
/u-boot/doc/driver-model/
A Dlivetree.rst97 i2c_bus->regs = (struct i2c_ctlr *)devfdt_get_addr(dev);
106 i2c_bus->regs = (struct i2c_ctlr *)dev_read_addr(dev);

Completed in 29 milliseconds