| Ben Dooks | 3e1b776 | 2008-10-31 16:14:40 +0000 | [diff] [blame] | 1 | /* linux/arch/arm/plat-s3c24xx/setup-i2c.c | 
 | 2 |  * | 
 | 3 |  * Copyright 2008 Simtec Electronics | 
 | 4 |  *	Ben Dooks <ben@simtec.co.uk> | 
 | 5 |  * | 
 | 6 |  * S3C24XX Base setup for i2c device | 
 | 7 |  * | 
 | 8 |  * This program is free software; you can redistribute it and/or modify | 
 | 9 |  * it under the terms of the GNU General Public License version 2 as | 
 | 10 |  * published by the Free Software Foundation. | 
 | 11 | */ | 
 | 12 |  | 
 | 13 | #include <linux/kernel.h> | 
| Ben Dooks | ec976d6 | 2009-05-13 22:52:24 +0100 | [diff] [blame] | 14 | #include <linux/gpio.h> | 
| Ben Dooks | 3e1b776 | 2008-10-31 16:14:40 +0000 | [diff] [blame] | 15 |  | 
 | 16 | struct platform_device; | 
 | 17 |  | 
| Ben Dooks | 40b956f | 2010-05-04 14:38:49 +0900 | [diff] [blame] | 18 | #include <plat/gpio-cfg.h> | 
| Ben Dooks | 3e1b776 | 2008-10-31 16:14:40 +0000 | [diff] [blame] | 19 | #include <plat/iic.h> | 
 | 20 | #include <mach/hardware.h> | 
 | 21 | #include <mach/regs-gpio.h> | 
 | 22 |  | 
 | 23 | void s3c_i2c0_cfg_gpio(struct platform_device *dev) | 
 | 24 | { | 
| Ben Dooks | 40b956f | 2010-05-04 14:38:49 +0900 | [diff] [blame] | 25 | 	s3c_gpio_cfgpin(S3C2410_GPE(15), S3C2410_GPE15_IICSDA); | 
 | 26 | 	s3c_gpio_cfgpin(S3C2410_GPE(14), S3C2410_GPE14_IICSCL); | 
| Ben Dooks | 3e1b776 | 2008-10-31 16:14:40 +0000 | [diff] [blame] | 27 | } |