blob: 89fd34727a24a81fb2bc105bde40e6c3f4b536b6 [file] [log] [blame]
Vladimir Barinov95a7f102007-10-13 23:56:30 +02001/*
Stefan Weil947af292010-01-07 00:03:52 +01002 * DaVinci I2C controller platform_device info
Vladimir Barinov95a7f102007-10-13 23:56:30 +02003 *
4 * Author: Vladimir Barinov, MontaVista Software, Inc. <source@mvista.com>
5 *
6 * 2007 (c) MontaVista Software, Inc. This file is licensed under
7 * the terms of the GNU General Public License version 2. This program
8 * is licensed "as is" without any warranty of any kind, whether express
9 * or implied.
10*/
11
12#ifndef __ASM_ARCH_I2C_H
13#define __ASM_ARCH_I2C_H
14
15/* All frequencies are expressed in kHz */
16struct davinci_i2c_platform_data {
Komal Shahd395e6a2008-09-07 23:41:28 -070017 unsigned int bus_freq; /* standard bus frequency (kHz) */
18 unsigned int bus_delay; /* post-transaction delay (usec) */
Philby John00642f62010-01-11 15:53:31 +053019 unsigned int sda_pin; /* GPIO pin ID to use for SDA */
20 unsigned int scl_pin; /* GPIO pin ID to use for SCL */
Grygorii Strashko7ef97e92015-04-06 15:38:41 +030021 bool has_pfunc; /*chip has a ICPFUNC register */
Vladimir Barinov95a7f102007-10-13 23:56:30 +020022};
23
Komal Shahd395e6a2008-09-07 23:41:28 -070024/* for board setup code */
25void davinci_init_i2c(struct davinci_i2c_platform_data *);
26
Vladimir Barinov95a7f102007-10-13 23:56:30 +020027#endif /* __ASM_ARCH_I2C_H */