xref: /linux/arch/arm/mach-s3c/setup-i2c0-s3c64xx.c (revision 71b9114d2c13a648fbe6523dd859e611c316ad90)
1*71b9114dSArnd Bergmann // SPDX-License-Identifier: GPL-2.0
2*71b9114dSArnd Bergmann //
3*71b9114dSArnd Bergmann // Copyright 2008 Openmoko, Inc.
4*71b9114dSArnd Bergmann // Copyright 2008 Simtec Electronics
5*71b9114dSArnd Bergmann //	Ben Dooks <ben@simtec.co.uk>
6*71b9114dSArnd Bergmann //	http://armlinux.simtec.co.uk/
7*71b9114dSArnd Bergmann //
8*71b9114dSArnd Bergmann // Base S3C64XX I2C bus 0 gpio configuration
9*71b9114dSArnd Bergmann 
10*71b9114dSArnd Bergmann #include <linux/kernel.h>
11*71b9114dSArnd Bergmann #include <linux/types.h>
12*71b9114dSArnd Bergmann #include <linux/gpio.h>
13*71b9114dSArnd Bergmann 
14*71b9114dSArnd Bergmann struct platform_device; /* don't need the contents */
15*71b9114dSArnd Bergmann 
16*71b9114dSArnd Bergmann #include <linux/platform_data/i2c-s3c2410.h>
17*71b9114dSArnd Bergmann #include <plat/gpio-cfg.h>
18*71b9114dSArnd Bergmann #include <mach/gpio-samsung.h>
19*71b9114dSArnd Bergmann 
20*71b9114dSArnd Bergmann void s3c_i2c0_cfg_gpio(struct platform_device *dev)
21*71b9114dSArnd Bergmann {
22*71b9114dSArnd Bergmann 	s3c_gpio_cfgall_range(S3C64XX_GPB(5), 2,
23*71b9114dSArnd Bergmann 			      S3C_GPIO_SFN(2), S3C_GPIO_PULL_UP);
24*71b9114dSArnd Bergmann }
25