]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/arm/plat-s5pc1xx/setup-i2c0.c
ARM: S5PC1xx: add platform helpers for i2c adapter devices
[net-next-2.6.git] / arch / arm / plat-s5pc1xx / setup-i2c0.c
index 3d00c025fffb3eeba4a161b16455c5d959dd7910..5e4a7c3a231e464b88fe637aea897ac3fced53dd 100644 (file)
 
 struct platform_device; /* don't need the contents */
 
+#include <linux/gpio.h>
 #include <plat/iic.h>
+#include <plat/gpio-cfg.h>
 
 void s3c_i2c0_cfg_gpio(struct platform_device *dev)
 {
-       /* Pin configuration would be needed */
+       s3c_gpio_cfgpin(S5PC100_GPD(3), S3C_GPIO_SFN(2));
+       s3c_gpio_setpull(S5PC100_GPD(3), S3C_GPIO_PULL_UP);
+       s3c_gpio_cfgpin(S5PC100_GPD(4), S3C_GPIO_SFN(2));
+       s3c_gpio_setpull(S5PC100_GPD(4), S3C_GPIO_PULL_UP);
 }