Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * DaVinci I2C controller platform_device info
0003  *
0004  * Author: Vladimir Barinov, MontaVista Software, Inc. <source@mvista.com>
0005  *
0006  * 2007 (c) MontaVista Software, Inc. This file is licensed under
0007  * the terms of the GNU General Public License version 2. This program
0008  * is licensed "as is" without any warranty of any kind, whether express
0009  * or implied.
0010 */
0011 
0012 #ifndef __ASM_ARCH_I2C_H
0013 #define __ASM_ARCH_I2C_H
0014 
0015 /* All frequencies are expressed in kHz */
0016 struct davinci_i2c_platform_data {
0017     unsigned int    bus_freq;   /* standard bus frequency (kHz) */
0018     unsigned int    bus_delay;  /* post-transaction delay (usec) */
0019     bool        gpio_recovery;  /* Use GPIO recovery method */
0020     bool        has_pfunc;  /* Chip has a ICPFUNC register */
0021 };
0022 
0023 /* for board setup code */
0024 void davinci_init_i2c(struct davinci_i2c_platform_data *);
0025 
0026 #endif /* __ASM_ARCH_I2C_H */