Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef ASMARM_ARCH_IRDA_H
0003 #define ASMARM_ARCH_IRDA_H
0004 
0005 /* board specific transceiver capabilities */
0006 
0007 #define IR_OFF      1
0008 #define IR_SIRMODE  2
0009 #define IR_FIRMODE  4
0010 
0011 struct pxaficp_platform_data {
0012     int transceiver_cap;
0013     void (*transceiver_mode)(struct device *dev, int mode);
0014     int (*startup)(struct device *dev);
0015     void (*shutdown)(struct device *dev);
0016     int gpio_pwdown;        /* powerdown GPIO for the IrDA chip */
0017     bool gpio_pwdown_inverted;  /* gpio_pwdown is inverted */
0018 };
0019 
0020 extern void pxa_set_ficp_info(struct pxaficp_platform_data *info);
0021 
0022 #if defined(CONFIG_PXA25x) || defined(CONFIG_PXA27x)
0023 void pxa2xx_transceiver_mode(struct device *dev, int mode);
0024 #endif
0025 
0026 #endif