blob: 1852696ca16e6347b854f2a6c245ad61aa59ded7 [file] [log] [blame]
Ben Dooks3e1b7762008-10-31 16:14:40 +00001/* 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 Dooksec976d62009-05-13 22:52:24 +010014#include <linux/gpio.h>
Ben Dooks3e1b7762008-10-31 16:14:40 +000015
16struct platform_device;
17
Ben Dooks40b956f2010-05-04 14:38:49 +090018#include <plat/gpio-cfg.h>
Arnd Bergmann436d42c2012-08-24 15:22:12 +020019#include <linux/platform_data/i2c-s3c2410.h>
Ben Dooks3e1b7762008-10-31 16:14:40 +000020#include <mach/hardware.h>
21#include <mach/regs-gpio.h>
Linus Walleijb0161ca2014-01-14 14:24:24 +010022#include <mach/gpio-samsung.h>
Ben Dooks3e1b7762008-10-31 16:14:40 +000023
24void s3c_i2c0_cfg_gpio(struct platform_device *dev)
25{
Ben Dooks40b956f2010-05-04 14:38:49 +090026 s3c_gpio_cfgpin(S3C2410_GPE(15), S3C2410_GPE15_IICSDA);
27 s3c_gpio_cfgpin(S3C2410_GPE(14), S3C2410_GPE14_IICSCL);
Ben Dooks3e1b7762008-10-31 16:14:40 +000028}