From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Mon, 17 Nov 2014 07:37:17 +0100 Subject: [U-Boot] [PATCH v2 08/17] dm: i2c: Add a uclass for I2C In-Reply-To: <1415727993-22032-9-git-send-email-sjg@chromium.org> References: <1415727993-22032-1-git-send-email-sjg@chromium.org> <1415727993-22032-9-git-send-email-sjg@chromium.org> Message-ID: <5469979D.70408@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > > 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 bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany