1 // SPDX-License-Identifier: GPL-2.0 2 // 3 // Copyright 2008 Simtec Electronics 4 // Ben Dooks <ben@simtec.co.uk> 5 // 6 // S3C24XX Base setup for i2c device 7 8 #include <linux/kernel.h> 9 #include <linux/gpio.h> 10 11 struct platform_device; 12 13 #include <plat/gpio-cfg.h> 14 #include <linux/platform_data/i2c-s3c2410.h> 15 #include <mach/hardware.h> 16 #include <mach/regs-gpio.h> 17 #include <mach/gpio-samsung.h> 18 s3c_i2c0_cfg_gpio(struct platform_device * dev)19void s3c_i2c0_cfg_gpio(struct platform_device *dev) 20 { 21 s3c_gpio_cfgpin(S3C2410_GPE(15), S3C2410_GPE15_IICSDA); 22 s3c_gpio_cfgpin(S3C2410_GPE(14), S3C2410_GPE14_IICSCL); 23 } 24