Browse Source

ARM: S5P6442: Implement i2c-gpio config

Signed-off-by: Jassi Brar <jassi.brar@samsung.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Jassi Brar 14 years ago
parent
commit
85e0dbf94e
1 changed files with 4 additions and 1 deletions
  1. 4 1
      arch/arm/mach-s5p6442/setup-i2c0.c

+ 4 - 1
arch/arm/mach-s5p6442/setup-i2c0.c

@@ -14,12 +14,15 @@
 
 #include <linux/kernel.h>
 #include <linux/types.h>
+#include <linux/gpio.h>
 
 struct platform_device; /* don't need the contents */
 
+#include <plat/gpio-cfg.h>
 #include <plat/iic.h>
 
 void s3c_i2c0_cfg_gpio(struct platform_device *dev)
 {
-	/* Will be populated later */
+	s3c_gpio_cfgall_range(S5P6442_GPD1(0), 2,
+			      S3C_GPIO_SFN(2), S3C_GPIO_PULL_UP);
 }