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

This patch enables the new I2C framework for Exynos5-dt, Also removes HARD_I2C.
Signed-off-by: Naveen Krishna Chatradhi ch.naveen@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 */

Hello Naveen,
Am 20.11.2013 11:47, schrieb Naveen Krishna Chatradhi:
This patch enables the new I2C framework for Exynos5-dt, Also removes HARD_I2C.
Signed-off-by: Naveen Krishna Chatradhich.naveen@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(-)
Could you try the patches from Piotr Wilczek ?
[U-Boot,V2,1/2] driver:i2c:s3c24x0: adapt driver to new i2c http://patchwork.ozlabs.org/patch/292705/
Thanks!
bye, Heiko

Hello Heiko,
On 20 November 2013 16:23, Heiko Schocher hs@denx.de wrote:
Hello Naveen,
Am 20.11.2013 11:47, schrieb Naveen Krishna Chatradhi:
This patch enables the new I2C framework for Exynos5-dt, Also removes HARD_I2C.
Signed-off-by: Naveen Krishna Chatradhich.naveen@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(-)
Could you try the patches from Piotr Wilczek ?
[U-Boot,V2,1/2] driver:i2c:s3c24x0: adapt driver to new i2c http://patchwork.ozlabs.org/patch/292705/
I have not come across them. My bad. Will go through his patches.
Thanks!
bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
participants (3)
-
Heiko Schocher
-
Naveen Krishna Ch
-
Naveen Krishna Chatradhi