irda-pxaficp.h 704 B

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