blob: 0d88366b234ce9754d9dadfb490941035772a257 [file] [log] [blame]
Krzysztof Kozlowski84b21702017-12-25 20:54:32 +01001// SPDX-License-Identifier: GPL-2.0
2//
3// Copyright 2008 Simtec Electronics
4// Ben Dooks <ben@simtec.co.uk>
5//
6// S3C24XX Base setup for i2c device
Ben Dooks3e1b7762008-10-31 16:14:40 +00007
8#include <linux/kernel.h>
Ben Dooksec976d62009-05-13 22:52:24 +01009#include <linux/gpio.h>
Ben Dooks3e1b7762008-10-31 16:14:40 +000010
11struct platform_device;
12
Arnd Bergmann436d42c2012-08-24 15:22:12 +020013#include <linux/platform_data/i2c-s3c2410.h>
Arnd Bergmannc6ff1322019-09-02 18:37:30 +020014
15#include "gpio-cfg.h"
16#include "regs-gpio.h"
17#include "gpio-samsung.h"
Ben Dooks3e1b7762008-10-31 16:14:40 +000018
19void s3c_i2c0_cfg_gpio(struct platform_device *dev)
20{
Ben Dooks40b956f2010-05-04 14:38:49 +090021 s3c_gpio_cfgpin(S3C2410_GPE(15), S3C2410_GPE15_IICSDA);
22 s3c_gpio_cfgpin(S3C2410_GPE(14), S3C2410_GPE14_IICSCL);
Ben Dooks3e1b7762008-10-31 16:14:40 +000023}