1ec2a0833SArnd Bergmann /* 2ec2a0833SArnd Bergmann * DaVinci I2C controller platform_device info 3ec2a0833SArnd Bergmann * 4ec2a0833SArnd Bergmann * Author: Vladimir Barinov, MontaVista Software, Inc. <source@mvista.com> 5ec2a0833SArnd Bergmann * 6ec2a0833SArnd Bergmann * 2007 (c) MontaVista Software, Inc. This file is licensed under 7ec2a0833SArnd Bergmann * the terms of the GNU General Public License version 2. This program 8ec2a0833SArnd Bergmann * is licensed "as is" without any warranty of any kind, whether express 9ec2a0833SArnd Bergmann * or implied. 10ec2a0833SArnd Bergmann */ 11ec2a0833SArnd Bergmann 12ec2a0833SArnd Bergmann #ifndef __ASM_ARCH_I2C_H 13ec2a0833SArnd Bergmann #define __ASM_ARCH_I2C_H 14ec2a0833SArnd Bergmann 15ec2a0833SArnd Bergmann /* All frequencies are expressed in kHz */ 16ec2a0833SArnd Bergmann struct davinci_i2c_platform_data { 17ec2a0833SArnd Bergmann unsigned int bus_freq; /* standard bus frequency (kHz) */ 18ec2a0833SArnd Bergmann unsigned int bus_delay; /* post-transaction delay (usec) */ 19e5353765SLinus Walleij bool gpio_recovery; /* Use GPIO recovery method */ 20e5353765SLinus Walleij bool has_pfunc; /* Chip has a ICPFUNC register */ 21ec2a0833SArnd Bergmann }; 22ec2a0833SArnd Bergmann 23ec2a0833SArnd Bergmann /* for board setup code */ 24ec2a0833SArnd Bergmann void davinci_init_i2c(struct davinci_i2c_platform_data *); 25ec2a0833SArnd Bergmann 26ec2a0833SArnd Bergmann #endif /* __ASM_ARCH_I2C_H */ 27