diff mbox

[U-Boot] compulab: eeprom: enable any i2c driver

Message ID 1397645306-23346-1-git-send-email-ilya@compulab.co.il
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Ilya Ledvich April 16, 2014, 10:48 a.m. UTC
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(-)

Comments

Ilya Ledvich April 16, 2014, 2:32 p.m. UTC | #1
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
>
Tom Rini May 14, 2014, 8:59 p.m. UTC | #2
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 Rini May 23, 2014, 11:51 p.m. UTC | #3
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!
diff mbox

Patch

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