u-boot-2016/drivers/i2c
Przemyslaw Marczak a989ec8dd4 sandbox: i2c: search child emul dev and check its uclass id
The function get_emul() in sandbox i2c bus driver, always returns
first child as i2c emul device. This may only work for i2c devices
with a single child, which is an only i2c emul device.

In case when i2c device has more than one child (e.g. PMIC), and
one is i2c emul, then the function should search it by check uclass
id for each child. This patch add this change to the get_emul().

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Simon Glass <sjg@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
Tested on sandbox:
Tested-by: Simon Glass <sjg@chromium.org>
2015-05-14 19:58:34 -06:00
..
adi_i2c.c dm: i2c: Make API accessible even without CONFIG_DM 2015-02-12 10:35:33 -07:00
davinci_i2c.c
davinci_i2c.h
designware_i2c.c
designware_i2c.h
fsl_i2c.c
fti2c010.c
fti2c010.h
i2c-emul-uclass.c dm: i2c: Add I2C emulation driver for sandbox 2014-12-11 13:18:42 -07:00
i2c-gpio.c dm: i2c-gpio: Remove redundant dm_gpio_set_value() call 2015-05-05 20:58:41 -06:00
i2c-uclass-compat.c dm: i2c: Add two more I2C init functions to the compatibility layer 2015-01-29 17:10:01 -07:00
i2c-uclass.c dm: i2c: Add a function to find out the chip offset length 2015-05-14 18:49:33 -06:00
i2c-uniphier-f.c common: Make sure arch-specific map_sysmem() is defined 2015-04-18 11:11:09 -06:00
i2c-uniphier.c common: Make sure arch-specific map_sysmem() is defined 2015-04-18 11:11:09 -06:00
i2c_core.c
ihs_i2c.c
Kconfig sandbox: Move CONFIG_SYS_I2C_SANDBOX to Kconfig 2015-04-18 11:11:38 -06:00
kona_i2c.c dm: i2c: Make API accessible even without CONFIG_DM 2015-02-12 10:35:33 -07:00
lpc32xx_i2c.c lpc32xx: i2c: add LPC32xx I2C interface support 2015-04-10 14:23:07 +02:00
Makefile dm: i2c: add i2c-gpio driver 2015-04-18 11:11:17 -06:00
mv_i2c.c mv_i2c: fix warnings on 64-bit builds 2015-03-18 09:13:17 +01:00
mv_i2c.h
mvtwsi.c i2c: mvtwsi: Support for up to 4 different controllers 2015-04-15 16:33:17 +02:00
mxc_i2c.c i2c: mxc: refactor i2c driver and support dm 2015-05-14 18:49:36 -06:00
mxs_i2c.c
omap24xx_i2c.c
omap24xx_i2c.h
pca9564_i2c.c
ppc4xx_i2c.c
rcar_i2c.c
s3c24x0_i2c.c dm: core: Rename driver data function to dev_get_driver_data() 2015-04-18 11:11:19 -06:00
s3c24x0_i2c.h
sandbox_i2c.c sandbox: i2c: search child emul dev and check its uclass id 2015-05-14 19:58:34 -06:00
sh_i2c.c
sh_sh7734_i2c.c
soft_i2c.c
tegra_i2c.c dm: core: Rename driver data function to dev_get_driver_data() 2015-04-18 11:11:19 -06:00
tsi108_i2c.c
u8500_i2c.c
u8500_i2c.h
zynq_i2c.c