From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Weber Date: Thu, 16 Feb 2012 20:33:46 +0100 Subject: [U-Boot] [PATCH v3 1/3] ARM: I2C: I2C Multi byte address support In-Reply-To: <1327311852-2868-1-git-send-email-rachna@ti.com> References: <1327311852-2868-1-git-send-email-rachna@ti.com> Message-ID: <4F3D5A1A.2030400@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Rachna, On 01/23/2012 10:44 AM, Patil, Rachna wrote: > Existing OMAP I2C driver does not support address > length greater than one. Hence this patch is to > add support for 2 byte address read/write. > > Signed-off-by: Philip, Avinash > Signed-off-by: Hebbar, Gururaja > Signed-off-by: Patil, Rachna > --- > Changes for v3: > rebased, patches applied on top of master branch > > drivers/i2c/omap24xx_i2c.c | 467 ++++++++++++++++++++++++++++---------------- > drivers/i2c/omap24xx_i2c.h | 2 + > 2 files changed, 296 insertions(+), 173 deletions(-) > > diff --git a/drivers/i2c/omap24xx_i2c.c b/drivers/i2c/omap24xx_i2c.c > index a7ffd95..80932ef 100644 > --- a/drivers/i2c/omap24xx_i2c.c > +++ b/drivers/i2c/omap24xx_i2c.c > @@ -29,10 +29,11 @@ > > DECLARE_GLOBAL_DATA_PTR; > > -#define I2C_TIMEOUT 1000 > +#define I2C_STAT_TIMEO (1<< 31) > +#define I2C_TIMEOUT 10 > why do you change I2C_TIMEOUT from 1000 to 10? Thomas