mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +00:00
940dd16242
At present the i2c ports are enumerated in a strange way - the fdtdec_find_aliases_for_id() function is used, but then the ID returned is ignored and the ports are renumbered. The effect is the same provided that the device tree has the ports in the same order, or uses aliases, and has no gaps, but it is not correct. Adjust the code to use the function as intended. This will allows device tree aliases to change the device order if required. As a result, the i2c_busses variable is dropped. We can't be sure that there are no 'holes' in the list of buses, so must check the whole array. Note: it seems that non-FDT operation is now broken in this drive and will need to be reinstated for upstream. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/59369 Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com> |
||
---|---|---|
.. | ||
bfin-twi_i2c.c | ||
davinci_i2c.c | ||
designware_i2c.c | ||
designware_i2c.h | ||
fsl_i2c.c | ||
fti2c010.c | ||
fti2c010.h | ||
i2c_core.c | ||
Makefile | ||
mv_i2c.c | ||
mv_i2c.h | ||
mvtwsi.c | ||
mxc_i2c.c | ||
mxs_i2c.c | ||
omap24xx_i2c.c | ||
omap24xx_i2c.h | ||
omap1510_i2c.c | ||
pca9564_i2c.c | ||
ppc4xx_i2c.c | ||
rcar_i2c.c | ||
s3c24x0_i2c.c | ||
s3c24x0_i2c.h | ||
sh_i2c.c | ||
sh_sh7734_i2c.c | ||
soft_i2c.c | ||
tegra_i2c.c | ||
tsi108_i2c.c | ||
u8500_i2c.c | ||
u8500_i2c.h | ||
zynq_i2c.c |