i2c-davinci.h 835 B

1234567891011121314151617181920212223242526
  1. /*
  2. * DaVinci I2C controller platform_device info
  3. *
  4. * Author: Vladimir Barinov, MontaVista Software, Inc. <[email protected]>
  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. bool gpio_recovery; /* Use GPIO recovery method */
  18. bool has_pfunc; /* Chip has a ICPFUNC register */
  19. };
  20. /* for board setup code */
  21. void davinci_init_i2c(struct davinci_i2c_platform_data *);
  22. #endif /* __ASM_ARCH_I2C_H */