mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ARM: EXYNOS: Add gpio functions for Exynos4412
@ 2012-08-06 13:57 Dongjin Kim
  2012-08-06 13:57 ` [PATCH] ARM: EXYNOS: Add HDMIPHY I2C adaptor Dongjin Kim
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Dongjin Kim @ 2012-08-06 13:57 UTC (permalink / raw)
  Cc: Dongjin Kim, Grant Likely, Linus Walleij, linux-kernel

GPIO functions are not registered for Exynos4412 yet,
therefore exynos4_gpiolib_init() is added to initialize Exynos4412 SoC.

Change-Id: I5945d94c6fbfc309ccf882eba067864a338c04ca
Signed-off-by: Dongjin Kim <dongjin.kim@agreeyamobility.net>
---
 drivers/gpio/gpio-samsung.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/gpio/gpio-samsung.c b/drivers/gpio/gpio-samsung.c
index 92f7b2b..6b312a9 100644
--- a/drivers/gpio/gpio-samsung.c
+++ b/drivers/gpio/gpio-samsung.c
@@ -2727,7 +2727,7 @@ static __init void exynos_gpiolib_attach_ofnode(struct samsung_gpio_chip *chip,
 
 static __init void exynos4_gpiolib_init(void)
 {
-#ifdef CONFIG_CPU_EXYNOS4210
+#ifdef CONFIG_ARCH_EXYNOS4
 	struct samsung_gpio_chip *chip;
 	int i, nr_chips;
 	void __iomem *gpio_base1, *gpio_base2, *gpio_base3;
@@ -2816,7 +2816,7 @@ err_ioremap2:
 	iounmap(gpio_base1);
 err_ioremap1:
 	return;
-#endif	/* CONFIG_CPU_EXYNOS4210 */
+#endif	/* CONFIG_ARCH_EXYNOS4 */
 }
 
 static __init void exynos5_gpiolib_init(void)
@@ -3014,6 +3014,8 @@ static __init int samsung_gpiolib_init(void)
 		exynos4_gpiolib_init();
 	} else if (soc_is_exynos5250()) {
 		exynos5_gpiolib_init();
+	} else if (soc_is_exynos4212() || soc_is_exynos4412()) {
+		exynos4_gpiolib_init();
 	} else {
 		WARN(1, "Unknown SoC in gpio-samsung, no GPIOs added\n");
 		return -ENODEV;
-- 
1.7.9.5


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

end of thread, other threads:[~2012-08-08  5:01 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-06 13:57 [PATCH] ARM: EXYNOS: Add gpio functions for Exynos4412 Dongjin Kim
2012-08-06 13:57 ` [PATCH] ARM: EXYNOS: Add HDMIPHY I2C adaptor Dongjin Kim
2012-08-07  6:56   ` Sachin Kamat
2012-08-07  7:28     ` Dongjin Kim
2012-08-08  5:01       ` Kukjin Kim
2012-08-06 13:57 ` [PATCH] ARM: EXYNOS: Add USB HSIC device Dongjin Kim
2012-08-07  4:36   ` Kyungmin Park
2012-08-06 13:57 ` [PATCH] ARM: EXYNOS: Enable multiple cores on Exynos4 Dongjin Kim
2012-08-06 13:57 ` [PATCH] video: s3c-fb: Fix compile error/warning if CONFIG_OF is not selected Dongjin Kim
2012-08-07  0:24   ` Jingoo Han
2012-08-07  0:47     ` Dongjin Kim
2012-08-07  6:38 ` [PATCH] ARM: EXYNOS: Add gpio functions for Exynos4412 Linus Walleij
2012-08-07  8:13   ` Kukjin Kim
2012-08-07  7:22 ` Thomas Abraham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®