Path: blob/master/arch/arm/mach-davinci/include/mach/i2c.h
17628 views
/*1* DaVinci I2C controller platform_device info2*3* Author: Vladimir Barinov, MontaVista Software, Inc. <[email protected]>4*5* 2007 (c) MontaVista Software, Inc. This file is licensed under6* the terms of the GNU General Public License version 2. This program7* is licensed "as is" without any warranty of any kind, whether express8* or implied.9*/1011#ifndef __ASM_ARCH_I2C_H12#define __ASM_ARCH_I2C_H1314/* All frequencies are expressed in kHz */15struct davinci_i2c_platform_data {16unsigned int bus_freq; /* standard bus frequency (kHz) */17unsigned int bus_delay; /* post-transaction delay (usec) */18unsigned int sda_pin; /* GPIO pin ID to use for SDA */19unsigned int scl_pin; /* GPIO pin ID to use for SCL */20};2122/* for board setup code */23void davinci_init_i2c(struct davinci_i2c_platform_data *);2425#endif /* __ASM_ARCH_I2C_H */262728