[U-Boot] [PATCH 1/2] exynos5-dt: enable new CONFIG_SYS_I2C symbols

Naveen Krishna Chatradhi ch.naveen at samsung.com
Wed Nov 20 11:47:40 CET 2013


This patch enables the new I2C framework for Exynos5-dt,
Also removes HARD_I2C.

Signed-off-by: Naveen Krishna Chatradhi <ch.naveen at samsung.com>
---
These patches were based on v6 version of patches adding support5yy for
Exynos5420 on u-boot-samsung.git

https://patches.linaro.org/21255/

 include/configs/VCMA9.h      |    5 +++--
 include/configs/arndale.h    |    6 +++---
 include/configs/exynos5-dt.h |    8 ++++----
 3 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/include/configs/VCMA9.h b/include/configs/VCMA9.h
index 2034493..363744a 100644
--- a/include/configs/VCMA9.h
+++ b/include/configs/VCMA9.h
@@ -73,12 +73,13 @@
  * the MPL VCMA9 is equipped with an ATMEL 24C256 EEPROM at
  * address 0x50 with 16bit addressing
  */
-#define CONFIG_HARD_I2C				/* I2C with hardware support */
 #define CONFIG_SYS_I2C_SPEED		100000	/* I2C speed */
 #define CONFIG_SYS_I2C_SLAVE		0x7F	/* I2C slave addr */
 
 /* we use the built-in I2C controller */
-#define CONFIG_DRIVER_S3C24X0_I2C
+#define CONFIG_SYS_I2C_S3C24X0_I2C
+#define CONFIG_SYS_NUM_I2C_ADAPTERS 1
+#define CONFIG_SYS_I2C
 
 #define CONFIG_SYS_I2C_EEPROM_ADDR	0x50
 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN	2
diff --git a/include/configs/arndale.h b/include/configs/arndale.h
index ed44a04..ab0a794 100644
--- a/include/configs/arndale.h
+++ b/include/configs/arndale.h
@@ -216,14 +216,14 @@
 
 /* I2C */
 #define CONFIG_SYS_I2C_INIT_BOARD
-#define CONFIG_HARD_I2C
 #define CONFIG_CMD_I2C
 #define CONFIG_SYS_I2C_SPEED	100000		/* 100 Kbps */
-#define CONFIG_DRIVER_S3C24X0_I2C
-#define CONFIG_I2C_MULTI_BUS
 #define CONFIG_MAX_I2C_NUM	8
 #define CONFIG_SYS_I2C_SLAVE    0x0
 #define CONFIG_I2C_EDID
+#define CONFIG_SYS_I2C_S3C24X0_I2C
+#define CONFIG_SYS_NUM_I2C_ADAPTERS 8
+#define CONFIG_SYS_I2C
 
 /* PMIC */
 #define CONFIG_PMIC
diff --git a/include/configs/exynos5-dt.h b/include/configs/exynos5-dt.h
index fa6bb89..8a63cb8 100644
--- a/include/configs/exynos5-dt.h
+++ b/include/configs/exynos5-dt.h
@@ -237,12 +237,12 @@
 
 /* I2C */
 #define CONFIG_SYS_I2C_INIT_BOARD
-#define CONFIG_HARD_I2C
-#define CONFIG_CMD_I2C
+#define CONFIG_SYS_I2C_S3C24X0_I2C
 #define CONFIG_SYS_I2C_SPEED	100000		/* 100 Kbps */
-#define CONFIG_DRIVER_S3C24X0_I2C
-#define CONFIG_I2C_MULTI_BUS
 #define CONFIG_SYS_I2C_SLAVE    0x0
+#define CONFIG_SYS_NUM_I2C_ADAPTERS 11
+#define CONFIG_SYS_I2C
+#define CONFIG_CMD_I2C
 #define CONFIG_I2C_EDID
 
 /* SPI */
-- 
1.7.10.4



More information about the U-Boot mailing list