Re: [U-Boot] [PATCH v4] i2c, omap24xx: convert driver to new mutlibus/mutliadapter framework

2013-11-04 Thread Heiko Schocher

Hello Tom,

Am 29.10.2013 12:30, schrieb Heiko Schocher:

Hello Igor,

Am 29.10.2013 12:07, schrieb Igor Grinberg:

On 10/28/13 08:19, Heiko Schocher wrote:

Hello Igor,

Am 27.10.2013 08:30, schrieb Igor Grinberg:

Hi Heiko,

On 10/22/13 11:03, Heiko Schocher wrote:

- add omap24xx driver to new multibus/multiadpater support
- adapted all config files, which uses this driver

Tested on the am335x based siemens boards rut, dxr2 and pxm2
posted here:
http://patchwork.ozlabs.org/patch/263211/

Signed-off-by: Heiko Schocherh...@denx.de
Tested-by: Tom Rinitr...@ti.com
Cc: Lars Poeschelpoesc...@lemonage.de
Cc: Steve Sakomansako...@gmail.com
Cc: Thomas Weberwe...@corscience.de
Cc: Tom Rixtom@windriver.com
Cc: Grazvydas Ignotasnota...@gmail.com
Cc: Enric Balletbo i Serraeballe...@iseebcn.com
Cc: Luca Ceresoliluca.ceres...@comelit.it
Cc: Igor Grinberggrinb...@compulab.co.il
Cc: Ilya Yanokya...@emcraft.com
Cc: Stefano Babicsba...@denx.de
Cc: Nishanth Menonn...@ti.com
Cc: Pali Rohárpali.ro...@gmail.com
Cc: Peter Baradapeter.bar...@logicpd.com
Cc: Nagendra T Snagen...@mistralsolutions.com
Cc: Michael Jonesmichael.jo...@matrix-vision.de
Cc: Raphael Assenatr...@8d.com


[...]

[...]


diff --git a/board/compulab/cm_t35/eeprom.h b/board/compulab/cm_t35/eeprom.h
index 02ffbb1..a07559d 100644
--- a/board/compulab/cm_t35/eeprom.h
+++ b/board/compulab/cm_t35/eeprom.h
@@ -10,7 +10,7 @@
#ifndef _EEPROM_
#define _EEPROM_

-#ifdef CONFIG_DRIVER_OMAP34XX_I2C
+#ifdef CONFIG_SYS_I2C_OMAP34XX
int cm_t3x_eeprom_read_mac_addr(uchar *buf);
u32 cm_t3x_eeprom_get_board_rev(void);
#else


Please, rebase on top of:
http://patchwork.ozlabs.org/patch/275284/
which should be applied any time soon.

Otherwise,
Acked-by: Igor Grinberggrinb...@compulab.co.il


Hmm.. I cannot see, that your patch is accepted ... but I looked in it,
and it looks good to me. So, I propose to add this patch to the i2c tree,
so I do the necessary changes in my patch when applying it to the
i2c tree (as they are trivial changes) ...


Well, I have no problem with that, but we need to take into account
that there are several more patches (unrelated to i2c) on the mailing
list waiting for approval/apply and depend on my series.


Ok.


@Tom: Is this OK for you?


I think, it would be better to apply my series to u-boot-ti and you can
pull from it to the i2c tree?


Hmm.. u-boot-i2c is based on u-boot.git not on u-boot-ti, and I did
not want to change this. I can of course rebase my patch against u-boot-ti
when Tom added your patch to u-boot-ti and resend it, and tom pick up my
patch ...


Tom, what do you think?

bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v4] i2c, omap24xx: convert driver to new mutlibus/mutliadapter framework

2013-11-04 Thread Tom Rini
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 11/04/2013 01:56 AM, Heiko Schocher wrote:
 Hello Tom,
 
 Am 29.10.2013 12:30, schrieb Heiko Schocher:
 Hello Igor,
 
 Am 29.10.2013 12:07, schrieb Igor Grinberg:
 On 10/28/13 08:19, Heiko Schocher wrote:
 Hello Igor,
 
 Am 27.10.2013 08:30, schrieb Igor Grinberg:
 Hi Heiko,
 
 On 10/22/13 11:03, Heiko Schocher wrote:
 - add omap24xx driver to new multibus/multiadpater
 support - adapted all config files, which uses this
 driver
 
 Tested on the am335x based siemens boards rut, dxr2 and
 pxm2 posted here: 
 http://patchwork.ozlabs.org/patch/263211/
 
 Signed-off-by: Heiko Schocherh...@denx.de Tested-by: Tom
 Rinitr...@ti.com Cc: Lars
 Poeschelpoesc...@lemonage.de Cc: Steve
 Sakomansako...@gmail.com Cc: Thomas
 Weberwe...@corscience.de Cc: Tom
 Rixtom@windriver.com Cc: Grazvydas
 Ignotasnota...@gmail.com Cc: Enric Balletbo i
 Serraeballe...@iseebcn.com Cc: Luca
 Ceresoliluca.ceres...@comelit.it Cc: Igor
 Grinberggrinb...@compulab.co.il Cc: Ilya
 Yanokya...@emcraft.com Cc: Stefano
 Babicsba...@denx.de Cc: Nishanth Menonn...@ti.com Cc:
 Pali Rohárpali.ro...@gmail.com Cc: Peter
 Baradapeter.bar...@logicpd.com Cc: Nagendra T
 Snagen...@mistralsolutions.com Cc: Michael
 Jonesmichael.jo...@matrix-vision.de Cc: Raphael
 Assenatr...@8d.com
 
 [...]
 [...]
 
 diff --git a/board/compulab/cm_t35/eeprom.h 
 b/board/compulab/cm_t35/eeprom.h index 02ffbb1..a07559d
 100644 --- a/board/compulab/cm_t35/eeprom.h +++
 b/board/compulab/cm_t35/eeprom.h @@ -10,7 +10,7 @@ 
 #ifndef _EEPROM_ #define _EEPROM_
 
 -#ifdef CONFIG_DRIVER_OMAP34XX_I2C +#ifdef
 CONFIG_SYS_I2C_OMAP34XX int
 cm_t3x_eeprom_read_mac_addr(uchar *buf); u32
 cm_t3x_eeprom_get_board_rev(void); #else
 
 Please, rebase on top of: 
 http://patchwork.ozlabs.org/patch/275284/ which should be
 applied any time soon.
 
 Otherwise, Acked-by: Igor
 Grinberggrinb...@compulab.co.il
 
 Hmm.. I cannot see, that your patch is accepted ... but I
 looked in it, and it looks good to me. So, I propose to add
 this patch to the i2c tree, so I do the necessary changes in
 my patch when applying it to the i2c tree (as they are
 trivial changes) ...
 
 Well, I have no problem with that, but we need to take into
 account that there are several more patches (unrelated to i2c)
 on the mailing list waiting for approval/apply and depend on my
 series.
 
 Ok.
 
 @Tom: Is this OK for you?
 
 I think, it would be better to apply my series to u-boot-ti and
 you can pull from it to the i2c tree?
 
 Hmm.. u-boot-i2c is based on u-boot.git not on u-boot-ti, and I
 did not want to change this. I can of course rebase my patch
 against u-boot-ti when Tom added your patch to u-boot-ti and
 resend it, and tom pick up my patch ...
 
 Tom, what do you think?

You should keep your tree based on u-boot/master.  I actually grabbed
Igor's patches Friday for u-boot-ti but didn't get a chance to send
out replies to everything I picked up before packing it up for the
weekend.

- -- 
Tom
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJSd6OQAAoJENk4IS6UOR1WQA8P/3vRW0UDmLNmKi9N4BpqqPsh
ZBeO2zbsnsLcUvRO/aeQD92cTY1c4WljPj7rFcutWmOwODGzG1CGvDnlcSaV/ENG
qjsn6mbM9zZm/HjNtP/bDPlvhVsKhbO42MMQL6jX+9F5ZdsQewQRAG0QhNTbejFo
cswtmM4SIFax5xVR+LJzqrX0vMdnLf+4Qy5jBJ7j14f/WV0Z+qme7t92xFvQC1ts
qSZkpSsGOC6ZhgdWkK2PXUh1mW+9jJ6senGIS0UV/87kDjv3iIl+CeD2eVxX+3wW
4kqL23HdR1wZnv7trS9Sn9p7oeJv6k8PJQaZoC9ZC/CFfypoA5D9L6FidWRjuOYB
bRXFmflHMls8dMwyosHMsRaIlVto1caHXhPH+z3I3xAQl3e/Ax8y5JrEsh5OABKQ
ZEo9aamL4YPuOklAHfd+Gtnn+kgbyzyKYRLrFljxT0g3lAi5UkFeYYRYLMnMOW23
ZQX6K998KYUsdJwi2caMnxmzrpmlTHZp+VfSxouzW+WACmYcJPfOPeUMMI8L29nR
89r7ODjkI93NrbS5pt8rWq3XXYwnVbBZHCBfu5cdw0ytOKedbaIduk4bjvU7HvAj
XecI95It00ze7mhFwsvlSe3K/G2FlRIywjHQpXCDam3rOF7fDesCHbF6n6ByEfnQ
WH6I+L3z1GeVYdAFBTRv
=96H9
-END PGP SIGNATURE-
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v4] i2c, omap24xx: convert driver to new mutlibus/mutliadapter framework

2013-10-29 Thread Heiko Schocher

Hello Igor,

Am 29.10.2013 12:07, schrieb Igor Grinberg:

On 10/28/13 08:19, Heiko Schocher wrote:

Hello Igor,

Am 27.10.2013 08:30, schrieb Igor Grinberg:

Hi Heiko,

On 10/22/13 11:03, Heiko Schocher wrote:

- add omap24xx driver to new multibus/multiadpater support
- adapted all config files, which uses this driver

Tested on the am335x based siemens boards rut, dxr2 and pxm2
posted here:
http://patchwork.ozlabs.org/patch/263211/

Signed-off-by: Heiko Schocherh...@denx.de
Tested-by: Tom Rinitr...@ti.com
Cc: Lars Poeschelpoesc...@lemonage.de
Cc: Steve Sakomansako...@gmail.com
Cc: Thomas Weberwe...@corscience.de
Cc: Tom Rixtom@windriver.com
Cc: Grazvydas Ignotasnota...@gmail.com
Cc: Enric Balletbo i Serraeballe...@iseebcn.com
Cc: Luca Ceresoliluca.ceres...@comelit.it
Cc: Igor Grinberggrinb...@compulab.co.il
Cc: Ilya Yanokya...@emcraft.com
Cc: Stefano Babicsba...@denx.de
Cc: Nishanth Menonn...@ti.com
Cc: Pali Rohárpali.ro...@gmail.com
Cc: Peter Baradapeter.bar...@logicpd.com
Cc: Nagendra T Snagen...@mistralsolutions.com
Cc: Michael Jonesmichael.jo...@matrix-vision.de
Cc: Raphael Assenatr...@8d.com


[...]

[...]


diff --git a/board/compulab/cm_t35/eeprom.h b/board/compulab/cm_t35/eeprom.h
index 02ffbb1..a07559d 100644
--- a/board/compulab/cm_t35/eeprom.h
+++ b/board/compulab/cm_t35/eeprom.h
@@ -10,7 +10,7 @@
   #ifndef _EEPROM_
   #define _EEPROM_

-#ifdef CONFIG_DRIVER_OMAP34XX_I2C
+#ifdef CONFIG_SYS_I2C_OMAP34XX
   int cm_t3x_eeprom_read_mac_addr(uchar *buf);
   u32 cm_t3x_eeprom_get_board_rev(void);
   #else


Please, rebase on top of:
http://patchwork.ozlabs.org/patch/275284/
which should be applied any time soon.

Otherwise,
Acked-by: Igor Grinberggrinb...@compulab.co.il


Hmm.. I cannot see, that your patch is accepted ... but I looked in it,
and it looks good to me. So, I propose to add this patch to the i2c tree,
so I do the necessary changes in my patch when applying it to the
i2c tree (as they are trivial changes) ...


Well, I have no problem with that, but we need to take into account
that there are several more patches (unrelated to i2c) on the mailing
list waiting for approval/apply and depend on my series.


Ok.


@Tom: Is this OK for you?


I think, it would be better to apply my series to u-boot-ti and you can
pull from it to the i2c tree?


Hmm.. u-boot-i2c is based on u-boot.git not on u-boot-ti, and I did
not want to change this. I can of course rebase my patch against u-boot-ti
when Tom added your patch to u-boot-ti and resend it, and tom pick up my
patch ...

bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v4] i2c, omap24xx: convert driver to new mutlibus/mutliadapter framework

2013-10-29 Thread Igor Grinberg
On 10/28/13 08:19, Heiko Schocher wrote:
 Hello Igor,
 
 Am 27.10.2013 08:30, schrieb Igor Grinberg:
 Hi Heiko,

 On 10/22/13 11:03, Heiko Schocher wrote:
 - add omap24xx driver to new multibus/multiadpater support
 - adapted all config files, which uses this driver

 Tested on the am335x based siemens boards rut, dxr2 and pxm2
 posted here:
 http://patchwork.ozlabs.org/patch/263211/

 Signed-off-by: Heiko Schocherh...@denx.de
 Tested-by: Tom Rinitr...@ti.com
 Cc: Lars Poeschelpoesc...@lemonage.de
 Cc: Steve Sakomansako...@gmail.com
 Cc: Thomas Weberwe...@corscience.de
 Cc: Tom Rixtom@windriver.com
 Cc: Grazvydas Ignotasnota...@gmail.com
 Cc: Enric Balletbo i Serraeballe...@iseebcn.com
 Cc: Luca Ceresoliluca.ceres...@comelit.it
 Cc: Igor Grinberggrinb...@compulab.co.il
 Cc: Ilya Yanokya...@emcraft.com
 Cc: Stefano Babicsba...@denx.de
 Cc: Nishanth Menonn...@ti.com
 Cc: Pali Rohárpali.ro...@gmail.com
 Cc: Peter Baradapeter.bar...@logicpd.com
 Cc: Nagendra T Snagen...@mistralsolutions.com
 Cc: Michael Jonesmichael.jo...@matrix-vision.de
 Cc: Raphael Assenatr...@8d.com

 [...]
 [...]
 
 diff --git a/board/compulab/cm_t35/eeprom.h b/board/compulab/cm_t35/eeprom.h
 index 02ffbb1..a07559d 100644
 --- a/board/compulab/cm_t35/eeprom.h
 +++ b/board/compulab/cm_t35/eeprom.h
 @@ -10,7 +10,7 @@
   #ifndef _EEPROM_
   #define _EEPROM_

 -#ifdef CONFIG_DRIVER_OMAP34XX_I2C
 +#ifdef CONFIG_SYS_I2C_OMAP34XX
   int cm_t3x_eeprom_read_mac_addr(uchar *buf);
   u32 cm_t3x_eeprom_get_board_rev(void);
   #else

 Please, rebase on top of:
 http://patchwork.ozlabs.org/patch/275284/
 which should be applied any time soon.

 Otherwise,
 Acked-by: Igor Grinberggrinb...@compulab.co.il
 
 Hmm.. I cannot see, that your patch is accepted ... but I looked in it,
 and it looks good to me. So, I propose to add this patch to the i2c tree,
 so I do the necessary changes in my patch when applying it to the
 i2c tree (as they are trivial changes) ...

Well, I have no problem with that, but we need to take into account
that there are several more patches (unrelated to i2c) on the mailing
list waiting for approval/apply and depend on my series.

 
 @Tom: Is this OK for you?

I think, it would be better to apply my series to u-boot-ti and you can
pull from it to the i2c tree?


-- 
Regards,
Igor.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v4] i2c, omap24xx: convert driver to new mutlibus/mutliadapter framework

2013-10-28 Thread Heiko Schocher

Hello Igor,

Am 27.10.2013 08:30, schrieb Igor Grinberg:

Hi Heiko,

On 10/22/13 11:03, Heiko Schocher wrote:

- add omap24xx driver to new multibus/multiadpater support
- adapted all config files, which uses this driver

Tested on the am335x based siemens boards rut, dxr2 and pxm2
posted here:
http://patchwork.ozlabs.org/patch/263211/

Signed-off-by: Heiko Schocherh...@denx.de
Tested-by: Tom Rinitr...@ti.com
Cc: Lars Poeschelpoesc...@lemonage.de
Cc: Steve Sakomansako...@gmail.com
Cc: Thomas Weberwe...@corscience.de
Cc: Tom Rixtom@windriver.com
Cc: Grazvydas Ignotasnota...@gmail.com
Cc: Enric Balletbo i Serraeballe...@iseebcn.com
Cc: Luca Ceresoliluca.ceres...@comelit.it
Cc: Igor Grinberggrinb...@compulab.co.il
Cc: Ilya Yanokya...@emcraft.com
Cc: Stefano Babicsba...@denx.de
Cc: Nishanth Menonn...@ti.com
Cc: Pali Rohárpali.ro...@gmail.com
Cc: Peter Baradapeter.bar...@logicpd.com
Cc: Nagendra T Snagen...@mistralsolutions.com
Cc: Michael Jonesmichael.jo...@matrix-vision.de
Cc: Raphael Assenatr...@8d.com


[...]

[...]


diff --git a/board/compulab/cm_t35/eeprom.h b/board/compulab/cm_t35/eeprom.h
index 02ffbb1..a07559d 100644
--- a/board/compulab/cm_t35/eeprom.h
+++ b/board/compulab/cm_t35/eeprom.h
@@ -10,7 +10,7 @@
  #ifndef _EEPROM_
  #define _EEPROM_

-#ifdef CONFIG_DRIVER_OMAP34XX_I2C
+#ifdef CONFIG_SYS_I2C_OMAP34XX
  int cm_t3x_eeprom_read_mac_addr(uchar *buf);
  u32 cm_t3x_eeprom_get_board_rev(void);
  #else


Please, rebase on top of:
http://patchwork.ozlabs.org/patch/275284/
which should be applied any time soon.

Otherwise,
Acked-by: Igor Grinberggrinb...@compulab.co.il


Hmm.. I cannot see, that your patch is accepted ... but I looked in it,
and it looks good to me. So, I propose to add this patch to the i2c tree,
so I do the necessary changes in my patch when applying it to the
i2c tree (as they are trivial changes) ...

@Tom: Is this OK for you?

bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v4] i2c, omap24xx: convert driver to new mutlibus/mutliadapter framework

2013-10-28 Thread Stefano Babic
On 22/10/2013 11:03, Heiko Schocher wrote:
 - add omap24xx driver to new multibus/multiadpater support
 - adapted all config files, which uses this driver
 
 Tested on the am335x based siemens boards rut, dxr2 and pxm2
 posted here:
 http://patchwork.ozlabs.org/patch/263211/
 
 Signed-off-by: Heiko Schocher h...@denx.de
 Tested-by: Tom Rini tr...@ti.com
 Cc: Lars Poeschel poesc...@lemonage.de
 Cc: Steve Sakoman sako...@gmail.com
 Cc: Thomas Weber we...@corscience.de
 Cc: Tom Rix tom@windriver.com
 Cc: Grazvydas Ignotas nota...@gmail.com
 Cc: Enric Balletbo i Serra eballe...@iseebcn.com
 Cc: Luca Ceresoli luca.ceres...@comelit.it
 Cc: Igor Grinberg grinb...@compulab.co.il
 Cc: Ilya Yanok ya...@emcraft.com
 Cc: Stefano Babic sba...@denx.de
 Cc: Nishanth Menon n...@ti.com
 Cc: Pali Rohár pali.ro...@gmail.com
 Cc: Peter Barada peter.bar...@logicpd.com
 Cc: Nagendra T S  nagen...@mistralsolutions.com
 Cc: Michael Jones michael.jo...@matrix-vision.de
 Cc: Raphael Assenat r...@8d.com
 
 ---

Acked-by: Stefano Babic sba...@denx.de

Best regards,
Stefano Babic


-- 
=
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v4] i2c, omap24xx: convert driver to new mutlibus/mutliadapter framework

2013-10-27 Thread Igor Grinberg
Hi Heiko,

On 10/22/13 11:03, Heiko Schocher wrote:
 - add omap24xx driver to new multibus/multiadpater support
 - adapted all config files, which uses this driver
 
 Tested on the am335x based siemens boards rut, dxr2 and pxm2
 posted here:
 http://patchwork.ozlabs.org/patch/263211/
 
 Signed-off-by: Heiko Schocher h...@denx.de
 Tested-by: Tom Rini tr...@ti.com
 Cc: Lars Poeschel poesc...@lemonage.de
 Cc: Steve Sakoman sako...@gmail.com
 Cc: Thomas Weber we...@corscience.de
 Cc: Tom Rix tom@windriver.com
 Cc: Grazvydas Ignotas nota...@gmail.com
 Cc: Enric Balletbo i Serra eballe...@iseebcn.com
 Cc: Luca Ceresoli luca.ceres...@comelit.it
 Cc: Igor Grinberg grinb...@compulab.co.il
 Cc: Ilya Yanok ya...@emcraft.com
 Cc: Stefano Babic sba...@denx.de
 Cc: Nishanth Menon n...@ti.com
 Cc: Pali Rohár pali.ro...@gmail.com
 Cc: Peter Barada peter.bar...@logicpd.com
 Cc: Nagendra T S  nagen...@mistralsolutions.com
 Cc: Michael Jones michael.jo...@matrix-vision.de
 Cc: Raphael Assenat r...@8d.com

[...]

  board/compulab/cm_t35/Makefile |   2 +-
  board/compulab/cm_t35/cm_t35.c |   2 +-
  board/compulab/cm_t35/eeprom.h |   2 +-

[...]

  include/configs/cm_t35.h   |   8 +-

[...]

 diff --git a/board/compulab/cm_t35/Makefile b/board/compulab/cm_t35/Makefile
 index 6d07947..9014d2a 100644
 --- a/board/compulab/cm_t35/Makefile
 +++ b/board/compulab/cm_t35/Makefile
 @@ -11,7 +11,7 @@ include $(TOPDIR)/config.mk
  
  LIB  = $(obj)lib$(BOARD).o
  
 -COBJS-$(CONFIG_DRIVER_OMAP34XX_I2C) += eeprom.o
 +COBJS-$(CONFIG_SYS_I2C_OMAP34XX) += eeprom.o
  COBJS-$(CONFIG_LCD) += display.o
  
  COBJS:= cm_t35.o leds.o $(COBJS-y)
 diff --git a/board/compulab/cm_t35/cm_t35.c b/board/compulab/cm_t35/cm_t35.c
 index 3caa5be..1dd3647 100644
 --- a/board/compulab/cm_t35/cm_t35.c
 +++ b/board/compulab/cm_t35/cm_t35.c
 @@ -470,7 +470,7 @@ static void setup_net_chip_gmpc(void)
   ctrl_base-gpmc_nadv_ale);
  }
  
 -#ifdef CONFIG_DRIVER_OMAP34XX_I2C
 +#ifdef CONFIG_SYS_I2C_OMAP34XX
  /*
   * Routine: reset_net_chip
   * Description: reset the Ethernet controller via TPS65930 GPIO
 diff --git a/board/compulab/cm_t35/eeprom.h b/board/compulab/cm_t35/eeprom.h
 index 02ffbb1..a07559d 100644
 --- a/board/compulab/cm_t35/eeprom.h
 +++ b/board/compulab/cm_t35/eeprom.h
 @@ -10,7 +10,7 @@
  #ifndef _EEPROM_
  #define _EEPROM_
  
 -#ifdef CONFIG_DRIVER_OMAP34XX_I2C
 +#ifdef CONFIG_SYS_I2C_OMAP34XX
  int cm_t3x_eeprom_read_mac_addr(uchar *buf);
  u32 cm_t3x_eeprom_get_board_rev(void);
  #else

Please, rebase on top of:
http://patchwork.ozlabs.org/patch/275284/
which should be applied any time soon.

Otherwise,
Acked-by: Igor Grinberg grinb...@compulab.co.il

[...]

 diff --git a/include/configs/cm_t35.h b/include/configs/cm_t35.h
 index bc5b66c..c301697 100644
 --- a/include/configs/cm_t35.h
 +++ b/include/configs/cm_t35.h
 @@ -140,10 +140,10 @@
  #undef CONFIG_CMD_IMLS   /* List all found images*/
  
  #define CONFIG_SYS_NO_FLASH
 -#define CONFIG_HARD_I2C
 -#define CONFIG_SYS_I2C_SPEED 10
 -#define CONFIG_SYS_I2C_SLAVE 1
 -#define CONFIG_DRIVER_OMAP34XX_I2C
 +#define CONFIG_SYS_I2C
 +#define CONFIG_SYS_OMAP24_I2C_SPEED  10
 +#define CONFIG_SYS_OMAP24_I2C_SLAVE  1
 +#define CONFIG_SYS_I2C_OMAP34XX
  #define CONFIG_SYS_I2C_EEPROM_ADDR   0x50
  #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN   1
  #define CONFIG_I2C_MULTI_BUS

[...]


-- 
Regards,
Igor.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v4] i2c, omap24xx: convert driver to new mutlibus/mutliadapter framework

2013-10-22 Thread Heiko Schocher
- add omap24xx driver to new multibus/multiadpater support
- adapted all config files, which uses this driver

Tested on the am335x based siemens boards rut, dxr2 and pxm2
posted here:
http://patchwork.ozlabs.org/patch/263211/

Signed-off-by: Heiko Schocher h...@denx.de
Tested-by: Tom Rini tr...@ti.com
Cc: Lars Poeschel poesc...@lemonage.de
Cc: Steve Sakoman sako...@gmail.com
Cc: Thomas Weber we...@corscience.de
Cc: Tom Rix tom@windriver.com
Cc: Grazvydas Ignotas nota...@gmail.com
Cc: Enric Balletbo i Serra eballe...@iseebcn.com
Cc: Luca Ceresoli luca.ceres...@comelit.it
Cc: Igor Grinberg grinb...@compulab.co.il
Cc: Ilya Yanok ya...@emcraft.com
Cc: Stefano Babic sba...@denx.de
Cc: Nishanth Menon n...@ti.com
Cc: Pali Rohár pali.ro...@gmail.com
Cc: Peter Barada peter.bar...@logicpd.com
Cc: Nagendra T S  nagen...@mistralsolutions.com
Cc: Michael Jones michael.jo...@matrix-vision.de
Cc: Raphael Assenat r...@8d.com

---
- changes for v2:
  rebased against u-boot-ti 425faf74cd8189c87919f7e72a0101c684ee3b9f
- changes for v3:
  rebase against: u-boot-it 901ce27c6f018992b7dd6c08d3c98cf217cc4c96
  add siemens boards (rut, dxr2 and pxm2)
- changes for v4:
  fix u-boot spl mode
---
 README |  13 ++
 arch/arm/cpu/armv7/omap-common/clocks-common.c |   3 +-
 arch/arm/cpu/armv7/omap-common/u-boot-spl.lds  |   4 +
 arch/arm/cpu/armv7/omap3/board.c   |   2 +-
 arch/arm/cpu/armv7/omap3/clock.c   |   2 +-
 arch/arm/include/asm/arch-am33xx/i2c.h |   6 +-
 board/compulab/cm_t35/Makefile |   2 +-
 board/compulab/cm_t35/cm_t35.c |   2 +-
 board/compulab/cm_t35/eeprom.h |   2 +-
 board/logicpd/am3517evm/am3517evm.c|   4 +-
 board/overo/overo.c|   2 +-
 board/phytec/pcm051/board.c|   4 +-
 board/siemens/common/board.c   |   4 +-
 board/ti/am335x/board.c|   2 +-
 board/ti/am3517crane/am3517crane.c |   4 +-
 board/ti/evm/evm.c |   4 +-
 drivers/i2c/Makefile   |   4 +-
 drivers/i2c/omap24xx_i2c.c | 172 -
 include/configs/am335x_evm.h   |   1 -
 include/configs/am3517_crane.h |   8 +-
 include/configs/am3517_evm.h   |   8 +-
 include/configs/cm_t35.h   |   8 +-
 include/configs/devkit8000.h   |   8 +-
 include/configs/dig297.h   |   8 +-
 include/configs/igep00x0.h |   8 +-
 include/configs/mcx.h  |   8 +-
 include/configs/nokia_rx51.h   |   8 +-
 include/configs/omap3_beagle.h |   9 +-
 include/configs/omap3_evm_common.h |   9 +-
 include/configs/omap3_logic.h  |  10 +-
 include/configs/omap3_mvblx.h  |   9 +-
 include/configs/omap3_overo.h  |   9 +-
 include/configs/omap3_pandora.h|   8 +-
 include/configs/omap3_sdp3430.h|   8 +-
 include/configs/omap3_zoom1.h  |   8 +-
 include/configs/omap3_zoom2.h  |   8 +-
 include/configs/omap4_common.h |   9 +-
 include/configs/pcm051.h   |   9 +-
 include/configs/siemens-am33x-common.h |   9 +-
 include/configs/tam3517-common.h   |  11 +-
 include/configs/ti_armv7_common.h  |   9 +-
 include/configs/tricorder.h|   8 +-
 42 files changed, 242 insertions(+), 192 deletions(-)

diff --git a/README b/README
index 09662a4..e6e0465 100644
--- a/README
+++ b/README
@@ -2003,6 +2003,19 @@ CBFS (Coreboot Filesystem) support
  - CONFIG_SYS_I2C_PPC4XX_CH0 activate hardware channel 0
  - CONFIG_SYS_I2C_PPC4XX_CH1 activate hardware channel 1
 
+   - drivers/i2c/omap24xx_i2c.c
+ - activate this driver with CONFIG_SYS_I2C_OMAP24XX
+ - CONFIG_SYS_OMAP24_I2C_SPEED speed channel 0
+ - CONFIG_SYS_OMAP24_I2C_SLAVE slave addr channel 0
+ - CONFIG_SYS_OMAP24_I2C_SPEED1 speed channel 1
+ - CONFIG_SYS_OMAP24_I2C_SLAVE1 slave addr channel 1
+ - CONFIG_SYS_OMAP24_I2C_SPEED2 speed channel 2
+ - CONFIG_SYS_OMAP24_I2C_SLAVE2 slave addr channel 2
+ - CONFIG_SYS_OMAP24_I2C_SPEED3 speed channel 3
+ - CONFIG_SYS_OMAP24_I2C_SLAVE3 slave addr channel 3
+ - CONFIG_SYS_OMAP24_I2C_SPEED4 speed channel 4
+ - CONFIG_SYS_OMAP24_I2C_SLAVE4 slave addr channel 4
+
additional defines:
 
CONFIG_SYS_NUM_I2C_BUSES
diff --git a/arch/arm/cpu/armv7/omap-common/clocks-common.c 
b/arch/arm/cpu/armv7/omap-common/clocks-common.c
index ab0c568..98c3630 100644
---