From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Tue, 13 Sep 2011 14:56:47 +0200 Subject: [U-Boot] [PATCH 05/15] iMX28: Add I2C bus driver In-Reply-To: <20110913120530.GA5080@pengutronix.de> References: <1315800409-19876-1-git-send-email-marek.vasut@gmail.com> <1315800409-19876-6-git-send-email-marek.vasut@gmail.com> <20110913120530.GA5080@pengutronix.de> Message-ID: <201109131456.48110.marek.vasut@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 On Tuesday, September 13, 2011 02:05:30 PM Wolfram Sang wrote: > Hi Marek, > > On Mon, Sep 12, 2011 at 06:06:39AM +0200, Marek Vasut wrote: > > Signed-off-by: Marek Vasut > > Cc: Heiko Schocher > > Cc: Stefano Babic > > Cc: Wolfgang Denk > > Cc: Detlev Zundel > > --- > > > > drivers/i2c/Makefile | 1 + > > drivers/i2c/mxs_i2c.c | 240 > > +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 241 > > insertions(+), 0 deletions(-) > > create mode 100644 drivers/i2c/mxs_i2c.c > > > > diff --git a/drivers/i2c/Makefile b/drivers/i2c/Makefile > > index a48047a..2fb521e 100644 > > --- a/drivers/i2c/Makefile > > +++ b/drivers/i2c/Makefile > > @@ -31,6 +31,7 @@ COBJS-$(CONFIG_FSL_I2C) += fsl_i2c.o > > > > COBJS-$(CONFIG_I2C_MVTWSI) += mvtwsi.o > > COBJS-$(CONFIG_I2C_MV) += mv_i2c.o > > COBJS-$(CONFIG_I2C_MXC) += mxc_i2c.o > > > > +COBJS-$(CONFIG_I2C_MXS) += mxs_i2c.o > > > > COBJS-$(CONFIG_DRIVER_OMAP1510_I2C) += omap1510_i2c.o > > COBJS-$(CONFIG_DRIVER_OMAP24XX_I2C) += omap24xx_i2c.o > > COBJS-$(CONFIG_DRIVER_OMAP34XX_I2C) += omap24xx_i2c.o > > > > diff --git a/drivers/i2c/mxs_i2c.c b/drivers/i2c/mxs_i2c.c > > new file mode 100644 > > index 0000000..9f380a0 > > --- /dev/null > > +++ b/drivers/i2c/mxs_i2c.c > > @@ -0,0 +1,240 @@ > > +/* > > + * Freescale i.MX28 I2C Driver > > + * > > + * Copyright (C) 2011 Marek Vasut > > + * on behalf of DENX Software Engineering GmbH > > Do you mind adding the copyrights from the kernel driver here? It looks > quite inspired to me, even if you didn't like some of the variable names > and defines :) Bits are from the STMP3xxx driver, not much though. > > Regards, > > Wolfram