
Hello Baruch,
Am 07.06.2018 um 11:38 schrieb Baruch Siach:
Equivalent code that disables the hidden i2c0 slave already exists in the Turris Omnia platform specific code. But this hidden i2c0 slave that interferes the i2c bus is not board specific. Armada 38x SoCs and at least some Kirkwood variants are affected as well. Add code to disable this slave to the i2c bus driver to make it work on all affected hardware.
Use the bind callback because we want this to always run at boot, regardless of whether U-Boot uses the i2c bus.
Cc: Rabeeh Khoury rabeeh@solid-run.com Cc: Chris Packham judge.packham@gmail.com Reviewed-by: Stefan Roese sr@denx.de Reviewed-by: Heiko Schocher hs@denx.de Signed-off-by: Baruch Siach baruch@tkos.co.il
v4:
- Add dummy 'debug' field to sunxi instead of platform #ifdef around the 'debug' field access (Stefan Roese, Heiko Schocher)
v3:
- Fix build for SUNXI (Heiko Schocher)
v2:
Use clrbits_le32 (Stefan Roese)
Apply to Kirkwood (Chris Packham)
Add review tags from Stefan and Heiko
drivers/i2c/mvtwsi.c | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-)
Applied to u-boot-i2c.git master
Thanks!
bye, Heiko