From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Tue, 11 Oct 2011 07:37:56 +0200 Subject: [U-Boot] [PATCH V2 05/13] i2c: Create common default i2c_set_bus_num() function In-Reply-To: References: <1318091769-30979-1-git-send-email-sbabic@denx.de> <1318239351-10835-1-git-send-email-sbabic@denx.de> Message-ID: <4E93D634.6080707@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 Tabi, Tabi Timur-B04825 wrote: > On Mon, Oct 10, 2011 at 4:35 AM, Stefano Babic wrote: >> New default, weak i2c_set_bus_num() function. >> >> Signed-off-by: Stefano Babic >> Cc: Heiko Schocher > > I would prefer to see a new set of I2C functions that take a bus > number as a parameter, so that we can eliminate i2c_set_bus_num() (and > the global variable it modifies) altogether. Then please have a look at: http://git.denx.de/?p=u-boot/u-boot-i2c.git;a=shortlog;h=refs/heads/multibus_v2 It is a complete i2c rework with adding multiadapter/multibus to the i2c framework (and a i2c_core.c) ... It needs a rebase and tests, but my last tests (Ok, 6 months ago ... :-( ) on 2 powerpc architectures and one arm looked good ... bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany