From a1df417e74aa6dae7352dc8cbb0ad471af5b7c69 Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Mon, 25 Apr 2016 10:00:44 -0400 Subject: initial Olimex linux tree from Daniel, originally Feb 3, 2016 --- linux/arch/arm/mach-s3c64xx/setup-i2c1.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 linux/arch/arm/mach-s3c64xx/setup-i2c1.c (limited to 'linux/arch/arm/mach-s3c64xx/setup-i2c1.c') diff --git a/linux/arch/arm/mach-s3c64xx/setup-i2c1.c b/linux/arch/arm/mach-s3c64xx/setup-i2c1.c new file mode 100644 index 00000000..cd1df71e --- /dev/null +++ b/linux/arch/arm/mach-s3c64xx/setup-i2c1.c @@ -0,0 +1,29 @@ +/* linux/arch/arm/plat-s3c64xx/setup-i2c1.c + * + * Copyright 2008 Openmoko, Inc. + * Copyright 2008 Simtec Electronics + * Ben Dooks + * http://armlinux.simtec.co.uk/ + * + * Base S3C64XX I2C bus 1 gpio configuration + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. +*/ + +#include +#include +#include + +struct platform_device; /* don't need the contents */ + +#include +#include +#include + +void s3c_i2c1_cfg_gpio(struct platform_device *dev) +{ + s3c_gpio_cfgall_range(S3C64XX_GPB(2), 2, + S3C_GPIO_SFN(6), S3C_GPIO_PULL_UP); +} -- cgit