irda-pxaficp.h 665 B

12345678910111213141516171819202122232425
  1. #ifndef ASMARM_ARCH_IRDA_H
  2. #define ASMARM_ARCH_IRDA_H
  3. /* board specific transceiver capabilities */
  4. #define IR_OFF 1
  5. #define IR_SIRMODE 2
  6. #define IR_FIRMODE 4
  7. struct pxaficp_platform_data {
  8. int transceiver_cap;
  9. void (*transceiver_mode)(struct device *dev, int mode);
  10. int (*startup)(struct device *dev);
  11. void (*shutdown)(struct device *dev);
  12. int gpio_pwdown; /* powerdown GPIO for the IrDA chip */
  13. bool gpio_pwdown_inverted; /* gpio_pwdown is inverted */
  14. };
  15. extern void pxa_set_ficp_info(struct pxaficp_platform_data *info);
  16. #if defined(CONFIG_PXA25x) || defined(CONFIG_PXA27x)
  17. void pxa2xx_transceiver_mode(struct device *dev, int mode);
  18. #endif
  19. #endif