[ARM] S3C: Make i2c device definition common to plat-s3c
[linux-2.6/openmoko-kernel.git] / arch / arm / plat-s3c24xx / setup-i2c.c
blobd62b7e7fb3556c72bb32731d7588b2be31fccda0
1 /* linux/arch/arm/plat-s3c24xx/setup-i2c.c
3 * Copyright 2008 Simtec Electronics
4 * Ben Dooks <ben@simtec.co.uk>
6 * S3C24XX Base setup for i2c device
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.
13 #include <linux/kernel.h>
15 struct platform_device;
17 #include <plat/iic.h>
18 #include <mach/hardware.h>
19 #include <mach/regs-gpio.h>
21 void s3c_i2c0_cfg_gpio(struct platform_device *dev)
23 s3c2410_gpio_cfgpin(S3C2410_GPE15, S3C2410_GPE15_IICSDA);
24 s3c2410_gpio_cfgpin(S3C2410_GPE14, S3C2410_GPE14_IICSCL);