Commit | Line | Data |
---|---|---|
28a196fe KK |
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 | |
55132b8b BD |
9 | |
10 | #include <linux/kernel.h> | |
11 | #include <linux/types.h> | |
1c739c7f | 12 | #include <linux/gpio.h> |
55132b8b BD |
13 | |
14 | struct platform_device; /* don't need the contents */ | |
15 | ||
436d42c6 | 16 | #include <linux/platform_data/i2c-s3c2410.h> |
55132b8b | 17 | #include <plat/gpio-cfg.h> |
b0161caa | 18 | #include <mach/gpio-samsung.h> |
55132b8b BD |
19 | |
20 | void s3c_i2c0_cfg_gpio(struct platform_device *dev) | |
21 | { | |
31858479 JS |
22 | s3c_gpio_cfgall_range(S3C64XX_GPB(5), 2, |
23 | S3C_GPIO_SFN(2), S3C_GPIO_PULL_UP); | |
55132b8b | 24 | } |