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 <rab...@solid-run.com>
Cc: Chris Packham <judge.pack...@gmail.com>
Reviewed-by: Stefan Roese <s...@denx.de>
Reviewed-by: Heiko Schocher <h...@denx.de>
Signed-off-by: Baruch Siach <bar...@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
--
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: h...@denx.de
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to