From: Ilya Ledvich Date: Wed, 16 Apr 2014 10:48:26 +0000 (+0300) Subject: compulab: eeprom: enable any i2c driver X-Git-Tag: v2014.07-rc2~2^2^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=39338a30fab2ce7d80dfe0d457071573727f499f;p=u-boot compulab: eeprom: enable any i2c driver Make the common eeprom library available for any I2C driver. Signed-off-by: Ilya Ledvich Signed-off-by: Igor Grinberg --- diff --git a/board/compulab/common/Makefile b/board/compulab/common/Makefile index 6d7d06815c..4044ac9d62 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 e87162930d..85d5bf03d6 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