Skip to contentSkip to conversation

ARM: EXYNOS4: Set appropriate I2C device variant

PATCH New Sylwester Nawrocki 2 participants 2 messages Jun 29, 2011 – Jul 6, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: EXYNOS4: Set appropriate I2C device variant

Set up a correct I2C bus controller variant name for Exynos4. Without this change the I2C bus driver fails to acquire its clocks.

---

This change is required to enable the I2C bus controller driver operation on exynos4 with the clkdev patches applied.

Regards,
Sylwester

---
 arch/arm/mach-exynos4/cpu.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
arch/arm/mach-exynos4/cpu.c +6 -0
index 1196f39..67918c0 100644
@@ -23,6 +23,7 @@
 #include <plat/sdhci.h>
 #include <plat/devs.h>
 #include <plat/fimc-core.h>
+#include <plat/iic-core.h>
 
 #include <mach/regs-irq.h>
 
@@ -137,6 +138,11 @@ void __init exynos4_map_io(void)
 	s3c_fimc_setname(1, "exynos4-fimc");
 	s3c_fimc_setname(2, "exynos4-fimc");
 	s3c_fimc_setname(3, "exynos4-fimc");
+
+	/* The I2C bus controllers are directly compatible with s3c2440 */
+	s3c_i2c0_setname("s3c2440-i2c");
+	s3c_i2c1_setname("s3c2440-i2c");
+	s3c_i2c2_setname("s3c2440-i2c");
 }
 
 void __init exynos4_init_clocks(int xtal)
Signature · 1 line
1.7.2.5
#1 lore raw

PATCH 1/1 ARM: EXYNOS4: Set appropriate I2C device variant

Quoted 43 lines · Sylwester Nawrocki

Set up a correct I2C bus controller variant name for Exynos4. Without this change the I2C bus driver fails to acquire its clocks.

---

This change is required to enable the I2C bus controller driver operation on exynos4 with the clkdev patches applied.

Regards,
Sylwester

---
 arch/arm/mach-exynos4/cpu.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
arch/arm/mach-exynos4/cpu.c +6 -1
index 1196f39..67918c0 100644
@@ -23,6 +23,7 @@
 #include <plat/sdhci.h>
 #include <plat/devs.h>
 #include <plat/fimc-core.h>
+#include <plat/iic-core.h>
 
 #include <mach/regs-irq.h>
 
@@ -137,6 +138,11 @@ void __init exynos4_map_io(void)
 	s3c_fimc_setname(1, "exynos4-fimc");
 	s3c_fimc_setname(2, "exynos4-fimc");
 	s3c_fimc_setname(3, "exynos4-fimc");
+
+	/* The I2C bus controllers are directly compatible with s3c2440 */
+	s3c_i2c0_setname("s3c2440-i2c");
+	s3c_i2c1_setname("s3c2440-i2c");
+	s3c_i2c2_setname("s3c2440-i2c");
 }
 
 void __init exynos4_init_clocks(int xtal)
--
Quoted 1 line

1.7.2.5

Right, will apply into -fix tree.
Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.