All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] exynos5-dt: enable new CONFIG_SYS_I2C symbols
@ 2013-11-20 10:47 Naveen Krishna Chatradhi
  2013-11-20 10:53 ` Heiko Schocher
  0 siblings, 1 reply; 3+ messages in thread
From: Naveen Krishna Chatradhi @ 2013-11-20 10:47 UTC (permalink / raw)
  To: u-boot

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 */
-- 
1.7.10.4

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

* [U-Boot] [PATCH 1/2] exynos5-dt: enable new CONFIG_SYS_I2C symbols
  2013-11-20 10:47 [U-Boot] [PATCH 1/2] exynos5-dt: enable new CONFIG_SYS_I2C symbols Naveen Krishna Chatradhi
@ 2013-11-20 10:53 ` Heiko Schocher
  2013-11-20 11:08   ` Naveen Krishna Ch
  0 siblings, 1 reply; 3+ messages in thread
From: Heiko Schocher @ 2013-11-20 10:53 UTC (permalink / raw)
  To: u-boot

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 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(-)

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
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

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

* [U-Boot] [PATCH 1/2] exynos5-dt: enable new CONFIG_SYS_I2C symbols
  2013-11-20 10:53 ` Heiko Schocher
@ 2013-11-20 11:08   ` Naveen Krishna Ch
  0 siblings, 0 replies; 3+ messages in thread
From: Naveen Krishna Ch @ 2013-11-20 11:08 UTC (permalink / raw)
  To: u-boot

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 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(-)
>
>
> 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



-- 
Shine bright,
(: Nav :)

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

end of thread, other threads:[~2013-11-20 11:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-20 10:47 [U-Boot] [PATCH 1/2] exynos5-dt: enable new CONFIG_SYS_I2C symbols Naveen Krishna Chatradhi
2013-11-20 10:53 ` Heiko Schocher
2013-11-20 11:08   ` Naveen Krishna Ch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.