xref: /linux/arch/arm/mach-s3c/setup-i2c0-s3c64xx.c (revision cbecf716ca618fd44feda6bd9a64a8179d031fc5)
171b9114dSArnd Bergmann // SPDX-License-Identifier: GPL-2.0
271b9114dSArnd Bergmann //
371b9114dSArnd Bergmann // Copyright 2008 Openmoko, Inc.
471b9114dSArnd Bergmann // Copyright 2008 Simtec Electronics
571b9114dSArnd Bergmann //	Ben Dooks <ben@simtec.co.uk>
671b9114dSArnd Bergmann //	http://armlinux.simtec.co.uk/
771b9114dSArnd Bergmann //
871b9114dSArnd Bergmann // Base S3C64XX I2C bus 0 gpio configuration
971b9114dSArnd Bergmann 
1071b9114dSArnd Bergmann #include <linux/kernel.h>
1171b9114dSArnd Bergmann #include <linux/types.h>
1271b9114dSArnd Bergmann #include <linux/gpio.h>
1371b9114dSArnd Bergmann 
1471b9114dSArnd Bergmann struct platform_device; /* don't need the contents */
1571b9114dSArnd Bergmann 
1671b9114dSArnd Bergmann #include <linux/platform_data/i2c-s3c2410.h>
17*c6ff132dSArnd Bergmann #include "gpio-cfg.h"
18*c6ff132dSArnd Bergmann #include "gpio-samsung.h"
1971b9114dSArnd Bergmann 
s3c_i2c0_cfg_gpio(struct platform_device * dev)2071b9114dSArnd Bergmann void s3c_i2c0_cfg_gpio(struct platform_device *dev)
2171b9114dSArnd Bergmann {
2271b9114dSArnd Bergmann 	s3c_gpio_cfgall_range(S3C64XX_GPB(5), 2,
2371b9114dSArnd Bergmann 			      S3C_GPIO_SFN(2), S3C_GPIO_PULL_UP);
2471b9114dSArnd Bergmann }
25