[U-Boot] [PATCH v2 08/17] dm: i2c: Add a uclass for I2C
Heiko Schocher
hs at denx.de
Mon Nov 17 07:37:17 CET 2014
Hello Simon,
Am 11.11.2014 18:46, schrieb Simon Glass:
> The uclass implements the same operations as the current I2C framework but
> makes some changes to make it fit driver model better:
>
> - Remove the chip address from API calls
> - Remove the address length from API calls
> - Remove concept of 'current' I2C bus
> - Drop all existing init functions
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v2:
> - Fix cihp typo
> - Implement generic I2C devices to allow 'i2c probe' on unknown devices
> - Return the probed device from i2c_probe()
> - Set the bus speed after the bus is probed
> - Add some debugging for generic I2C device binding
> - Add a 'deblock' method to recover an I2C bus stuck in mid-transaction
> - Add a helper function to find a chip on a particular bus number
>
> drivers/i2c/Makefile | 1 +
> drivers/i2c/i2c-uclass.c | 275 +++++++++++++++++++++++++++++++++++++++++++
> include/config_fallbacks.h | 6 +
> include/dm/uclass-id.h | 2 +
> include/i2c.h | 288 +++++++++++++++++++++++++++++++++++++++++++++
> 5 files changed, 572 insertions(+)
> create mode 100644 drivers/i2c/i2c-uclass.c
Thanks for your work.
Acked-by: Heiko Schocher <hs at denx.de>
bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
More information about the U-Boot
mailing list