public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] compulab: eeprom: enable any i2c driver
@ 2014-04-16 10:48 Ilya Ledvich
  2014-04-16 14:32 ` Ilya Ledvich
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ilya Ledvich @ 2014-04-16 10:48 UTC (permalink / raw)
  To: u-boot

Make the common eeprom library available for any I2C driver.

Signed-off-by: Ilya Ledvich <ilya@compulab.co.il>
---
 board/compulab/common/Makefile |    2 +-
 board/compulab/common/eeprom.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/compulab/common/Makefile b/board/compulab/common/Makefile
index 6d7d068..4044ac9 100644
--- a/board/compulab/common/Makefile
+++ b/board/compulab/common/Makefile
@@ -6,5 +6,5 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-obj-$(CONFIG_SYS_I2C_OMAP34XX) += eeprom.o
+obj-$(CONFIG_SYS_I2C) += eeprom.o
 obj-$(CONFIG_LCD) += omap3_display.o
diff --git a/board/compulab/common/eeprom.h b/board/compulab/common/eeprom.h
index e871629..85d5bf0 100644
--- a/board/compulab/common/eeprom.h
+++ b/board/compulab/common/eeprom.h
@@ -10,7 +10,7 @@
 #ifndef _EEPROM_
 #define _EEPROM_
 
-#ifdef CONFIG_SYS_I2C_OMAP34XX
+#ifdef CONFIG_SYS_I2C
 int cl_eeprom_read_mac_addr(uchar *buf);
 u32 cl_eeprom_get_board_rev(void);
 #else
-- 
1.7.9.5

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

* [U-Boot] [PATCH] compulab: eeprom: enable any i2c driver
  2014-04-16 10:48 [U-Boot] [PATCH] compulab: eeprom: enable any i2c driver Ilya Ledvich
@ 2014-04-16 14:32 ` Ilya Ledvich
  2014-05-14 20:59 ` [U-Boot] " Tom Rini
  2014-05-23 23:51 ` [U-Boot] compulab: eeprom: enable any i2c driver Tom Rini
  2 siblings, 0 replies; 6+ messages in thread
From: Ilya Ledvich @ 2014-04-16 14:32 UTC (permalink / raw)
  To: u-boot

On 04/16/2014 01:48 PM, Ilya Ledvich wrote:
> Make the common eeprom library available for any I2C driver.
>
> Signed-off-by: Ilya Ledvich <ilya@compulab.co.il>

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>

> ---
>   board/compulab/common/Makefile |    2 +-
>   board/compulab/common/eeprom.h |    2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/board/compulab/common/Makefile b/board/compulab/common/Makefile
> index 6d7d068..4044ac9 100644
> --- a/board/compulab/common/Makefile
> +++ b/board/compulab/common/Makefile
> @@ -6,5 +6,5 @@
>   # SPDX-License-Identifier:	GPL-2.0+
>   #
>
> -obj-$(CONFIG_SYS_I2C_OMAP34XX) += eeprom.o
> +obj-$(CONFIG_SYS_I2C) += eeprom.o
>   obj-$(CONFIG_LCD) += omap3_display.o
> diff --git a/board/compulab/common/eeprom.h b/board/compulab/common/eeprom.h
> index e871629..85d5bf0 100644
> --- a/board/compulab/common/eeprom.h
> +++ b/board/compulab/common/eeprom.h
> @@ -10,7 +10,7 @@
>   #ifndef _EEPROM_
>   #define _EEPROM_
>
> -#ifdef CONFIG_SYS_I2C_OMAP34XX
> +#ifdef CONFIG_SYS_I2C
>   int cl_eeprom_read_mac_addr(uchar *buf);
>   u32 cl_eeprom_get_board_rev(void);
>   #else
>

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

* [U-Boot] compulab: eeprom: enable any i2c driver
  2014-04-16 10:48 [U-Boot] [PATCH] compulab: eeprom: enable any i2c driver Ilya Ledvich
  2014-04-16 14:32 ` Ilya Ledvich
@ 2014-05-14 20:59 ` Tom Rini
  2014-05-15  8:25   ` [U-Boot] [PATCH] compulab: eeprom: add default eeprom address Igor Grinberg
  2014-05-23 23:51 ` [U-Boot] compulab: eeprom: enable any i2c driver Tom Rini
  2 siblings, 1 reply; 6+ messages in thread
From: Tom Rini @ 2014-05-14 20:59 UTC (permalink / raw)
  To: u-boot

On Wed, Apr 16, 2014 at 01:48:26PM +0300, Ilya Ledvich wrote:

> Make the common eeprom library available for any I2C driver.
> 
> Signed-off-by: Ilya Ledvich <ilya@compulab.co.il>
> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>

This breaks the compulab trimslice board, please fix.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140514/e7d02df0/attachment.pgp>

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

* [U-Boot] [PATCH] compulab: eeprom: add default eeprom address
  2014-05-14 20:59 ` [U-Boot] " Tom Rini
@ 2014-05-15  8:25   ` Igor Grinberg
  2014-05-23 23:50     ` [U-Boot] " Tom Rini
  0 siblings, 1 reply; 6+ messages in thread
From: Igor Grinberg @ 2014-05-15  8:25 UTC (permalink / raw)
  To: u-boot

Add default eeprom address setting.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
---
Tom, please apply this one first and then the
"compulab: eeprom: enable any i2c driver".

Thanks!

 board/compulab/common/eeprom.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/board/compulab/common/eeprom.c b/board/compulab/common/eeprom.c
index 5aa3dbd..20fe3e1 100644
--- a/board/compulab/common/eeprom.c
+++ b/board/compulab/common/eeprom.c
@@ -10,6 +10,11 @@
 #include <common.h>
 #include <i2c.h>
 
+#ifndef CONFIG_SYS_I2C_EEPROM_ADDR
+# define CONFIG_SYS_I2C_EEPROM_ADDR	0x50
+# define CONFIG_SYS_I2C_EEPROM_ADDR_LEN	1
+#endif
+
 #define EEPROM_LAYOUT_VER_OFFSET	44
 #define BOARD_SERIAL_OFFSET		20
 #define BOARD_SERIAL_OFFSET_LEGACY	8
-- 
1.8.5.5

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

* [U-Boot] compulab: eeprom: add default eeprom address
  2014-05-15  8:25   ` [U-Boot] [PATCH] compulab: eeprom: add default eeprom address Igor Grinberg
@ 2014-05-23 23:50     ` Tom Rini
  0 siblings, 0 replies; 6+ messages in thread
From: Tom Rini @ 2014-05-23 23:50 UTC (permalink / raw)
  To: u-boot

On Thu, May 15, 2014 at 11:25:09AM +0300, Igor Grinberg wrote:

> Add default eeprom address setting.
> 
> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>

Applied to u-boot-ti/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140523/51b283e2/attachment.pgp>

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

* [U-Boot] compulab: eeprom: enable any i2c driver
  2014-04-16 10:48 [U-Boot] [PATCH] compulab: eeprom: enable any i2c driver Ilya Ledvich
  2014-04-16 14:32 ` Ilya Ledvich
  2014-05-14 20:59 ` [U-Boot] " Tom Rini
@ 2014-05-23 23:51 ` Tom Rini
  2 siblings, 0 replies; 6+ messages in thread
From: Tom Rini @ 2014-05-23 23:51 UTC (permalink / raw)
  To: u-boot

On Wed, Apr 16, 2014 at 01:48:26PM +0300, Ilya Ledvich wrote:

> Make the common eeprom library available for any I2C driver.
> 
> Signed-off-by: Ilya Ledvich <ilya@compulab.co.il>
> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>

Applied to u-boot-ti/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140523/a27747a4/attachment.pgp>

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

end of thread, other threads:[~2014-05-23 23:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-16 10:48 [U-Boot] [PATCH] compulab: eeprom: enable any i2c driver Ilya Ledvich
2014-04-16 14:32 ` Ilya Ledvich
2014-05-14 20:59 ` [U-Boot] " Tom Rini
2014-05-15  8:25   ` [U-Boot] [PATCH] compulab: eeprom: add default eeprom address Igor Grinberg
2014-05-23 23:50     ` [U-Boot] " Tom Rini
2014-05-23 23:51 ` [U-Boot] compulab: eeprom: enable any i2c driver Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox