i2c-davinci.h 913 B

123456789101112131415161718192021222324252627
  1. /*
  2. * DaVinci I2C controller platform_device info
  3. *
  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. #ifndef __ASM_ARCH_I2C_H
  12. #define __ASM_ARCH_I2C_H
  13. /* All frequencies are expressed in kHz */
  14. struct davinci_i2c_platform_data {
  15. unsigned int bus_freq; /* standard bus frequency (kHz) */
  16. unsigned int bus_delay; /* post-transaction delay (usec) */
  17. unsigned int sda_pin; /* GPIO pin ID to use for SDA */
  18. unsigned int scl_pin; /* GPIO pin ID to use for SCL */
  19. bool has_pfunc; /*chip has a ICPFUNC register */
  20. };
  21. /* for board setup code */
  22. void davinci_init_i2c(struct davinci_i2c_platform_data *);
  23. #endif /* __ASM_ARCH_I2C_H */