linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] I2C driver support for Nomadik/Ux500
@ 2010-01-08 10:30 srinidhi kasagar
  2010-01-08 10:31 ` [PATCH 1/2] ARM nomadik: add platform specific i2c configuration structures srinidhi kasagar
  2010-01-10 13:15 ` [PATCH v2 0/2] I2C driver support for Nomadik/Ux500 Ben Dooks
  0 siblings, 2 replies; 4+ messages in thread
From: srinidhi kasagar @ 2010-01-08 10:30 UTC (permalink / raw)
  To: linux-arm-kernel

This is the v2 version of the patch which adds support for the
ST-Ericsson's I2C block found in U8500/Nomadik 8815 platforms.

---
Changelog v1->v2
- file rename from i2c-nmk.c to i2c-nomadik.c (Jean Delvare)
- remove the unnecessary return statement (Jean Delvare)
- kernel doc style comment fix & other fixes (Linus Walleij)
- Added support for 400 KHz.

- patch 1/2 : targets plat-nomadik folder
- patch v2 2/2 : fixes the above comments.
---

srinidhi kasagar (2):
  ARM nomadik: add platform specific i2c configuration structures
  i2c: Add support for Ux500/Nomadik I2C controller

 arch/arm/plat-nomadik/include/plat/i2c.h |   37 ++
 drivers/i2c/busses/Kconfig               |    7 +
 drivers/i2c/busses/Makefile              |    1 +
 drivers/i2c/busses/i2c-nomadik.c         |  980 ++++++++++++++++++++++++++++++
 4 files changed, 1025 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/plat-nomadik/include/plat/i2c.h
 create mode 100644 drivers/i2c/busses/i2c-nomadik.c

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] ARM nomadik: add platform specific i2c configuration structures
  2010-01-08 10:30 [PATCH v2 0/2] I2C driver support for Nomadik/Ux500 srinidhi kasagar
@ 2010-01-08 10:31 ` srinidhi kasagar
  2010-01-10 13:15 ` [PATCH v2 0/2] I2C driver support for Nomadik/Ux500 Ben Dooks
  1 sibling, 0 replies; 4+ messages in thread
From: srinidhi kasagar @ 2010-01-08 10:31 UTC (permalink / raw)
  To: linux-arm-kernel

This adds the platform specific i2c configuration
data structures to setup the nomadik/Ux500 I2C
block.

Signed-off-by: srinidhi kasagar <srinidhi.kasagar@stericsson.com>
Acked-by: Andrea Gallo <andrea.gallo@stericsson.com>
---
 arch/arm/plat-nomadik/include/plat/i2c.h |   37 ++++++++++++++++++++++++++++++
 1 files changed, 37 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/plat-nomadik/include/plat/i2c.h

diff --git a/arch/arm/plat-nomadik/include/plat/i2c.h b/arch/arm/plat-nomadik/include/plat/i2c.h
new file mode 100644
index 0000000..1621db6
--- /dev/null
+++ b/arch/arm/plat-nomadik/include/plat/i2c.h
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2009 ST-Ericsson
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2, as
+ * published by the Free Software Foundation.
+ */
+#ifndef __PLAT_I2C_H
+#define __PLAT_I2C_H
+
+enum i2c_freq_mode {
+	I2C_FREQ_MODE_STANDARD,		/* up to 100 Kb/s */
+	I2C_FREQ_MODE_FAST,		/* up to 400 Kb/s */
+	I2C_FREQ_MODE_FAST_PLUS,	/* up to 1 Mb/s */
+	I2C_FREQ_MODE_HIGH_SPEED	/* up to 3.4 Mb/s */
+};
+
+/**
+ * struct nmk_i2c_controller - client specific controller configuration
+ * @clk_freq:	clock frequency for the operation mode
+ * @slsu:	Slave data setup time in ns.
+ *		The needed setup time for three modes of operation
+ *		are 250ns, 100ns and 10ns respectively thus leading
+ *		to the values of 14, 6, 2 for a 48 MHz i2c clk
+ * @tft:	Tx FIFO Threshold in bytes
+ * @rft:	Rx FIFO Threshold in bytes
+ * @sm:		speed mode
+ */
+struct nmk_i2c_controller {
+	unsigned long	clk_freq;
+	unsigned short	slsu;
+	unsigned char 	tft;
+	unsigned char 	rft;
+	enum i2c_freq_mode	sm;
+};
+
+#endif	/* __PLAT_I2C_H */
-- 
1.6.3.GIT

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v2 0/2] I2C driver support for Nomadik/Ux500
  2010-01-08 10:30 [PATCH v2 0/2] I2C driver support for Nomadik/Ux500 srinidhi kasagar
  2010-01-08 10:31 ` [PATCH 1/2] ARM nomadik: add platform specific i2c configuration structures srinidhi kasagar
@ 2010-01-10 13:15 ` Ben Dooks
  2010-01-17 20:20   ` srinidhi kasagar
  1 sibling, 1 reply; 4+ messages in thread
From: Ben Dooks @ 2010-01-10 13:15 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Jan 08, 2010 at 04:00:24PM +0530, srinidhi kasagar wrote:
> This is the v2 version of the patch which adds support for the
> ST-Ericsson's I2C block found in U8500/Nomadik 8815 platforms.
> 
> ---
> Changelog v1->v2
> - file rename from i2c-nmk.c to i2c-nomadik.c (Jean Delvare)
> - remove the unnecessary return statement (Jean Delvare)
> - kernel doc style comment fix & other fixes (Linus Walleij)
> - Added support for 400 KHz.
> 
> - patch 1/2 : targets plat-nomadik folder
> - patch v2 2/2 : fixes the above comments.
> ---
> 
> srinidhi kasagar (2):
>   ARM nomadik: add platform specific i2c configuration structures
>   i2c: Add support for Ux500/Nomadik I2C controller
> 
>  arch/arm/plat-nomadik/include/plat/i2c.h |   37 ++
>  drivers/i2c/busses/Kconfig               |    7 +
>  drivers/i2c/busses/Makefile              |    1 +
>  drivers/i2c/busses/i2c-nomadik.c         |  980 ++++++++++++++++++++++++++++++
>  4 files changed, 1025 insertions(+), 0 deletions(-)
>  create mode 100644 arch/arm/plat-nomadik/include/plat/i2c.h
>  create mode 100644 drivers/i2c/busses/i2c-nomadik.c

I'll get round to reviewing the new patches in the next day or two.

-- 
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2 0/2] I2C driver support for Nomadik/Ux500
  2010-01-10 13:15 ` [PATCH v2 0/2] I2C driver support for Nomadik/Ux500 Ben Dooks
@ 2010-01-17 20:20   ` srinidhi kasagar
  0 siblings, 0 replies; 4+ messages in thread
From: srinidhi kasagar @ 2010-01-17 20:20 UTC (permalink / raw)
  To: linux-arm-kernel

Ben,

On Sun, 2010-01-10 at 14:15 +0100, Ben Dooks wrote:
> On Fri, Jan 08, 2010 at 04:00:24PM +0530, srinidhi kasagar wrote:
> > This is the v2 version of the patch which adds support for the
> > ST-Ericsson's I2C block found in U8500/Nomadik 8815 platforms.
> > 
> > ---
> > Changelog v1->v2
> > - file rename from i2c-nmk.c to i2c-nomadik.c (Jean Delvare)
> > - remove the unnecessary return statement (Jean Delvare)
> > - kernel doc style comment fix & other fixes (Linus Walleij)
> > - Added support for 400 KHz.
> > 
> > - patch 1/2 : targets plat-nomadik folder
> > - patch v2 2/2 : fixes the above comments.
> > ---
> > 
> > srinidhi kasagar (2):
> >   ARM nomadik: add platform specific i2c configuration structures
> >   i2c: Add support for Ux500/Nomadik I2C controller
> > 
> >  arch/arm/plat-nomadik/include/plat/i2c.h |   37 ++
> >  drivers/i2c/busses/Kconfig               |    7 +
> >  drivers/i2c/busses/Makefile              |    1 +
> >  drivers/i2c/busses/i2c-nomadik.c         |  980 ++++++++++++++++++++++++++++++
> >  4 files changed, 1025 insertions(+), 0 deletions(-)
> >  create mode 100644 arch/arm/plat-nomadik/include/plat/i2c.h
> >  create mode 100644 drivers/i2c/busses/i2c-nomadik.c
> 
> I'll get round to reviewing the new patches in the next day or two.

Any comments on this patch set?

regards,
Srinidhi

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-17 20:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-08 10:30 [PATCH v2 0/2] I2C driver support for Nomadik/Ux500 srinidhi kasagar
2010-01-08 10:31 ` [PATCH 1/2] ARM nomadik: add platform specific i2c configuration structures srinidhi kasagar
2010-01-10 13:15 ` [PATCH v2 0/2] I2C driver support for Nomadik/Ux500 Ben Dooks
2010-01-17 20:20   ` srinidhi kasagar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).