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