Nicolas Pitre | 6f475c0 | 2005-10-28 16:39:33 +0100 | [diff] [blame] | 1 | #ifndef ASMARM_ARCH_IRDA_H |
| 2 | #define ASMARM_ARCH_IRDA_H |
| 3 | |
| 4 | /* board specific transceiver capabilities */ |
| 5 | |
| 6 | #define IR_OFF 1 |
| 7 | #define IR_SIRMODE 2 |
| 8 | #define IR_FIRMODE 4 |
| 9 | |
| 10 | struct pxaficp_platform_data { |
| 11 | int transceiver_cap; |
| 12 | void (*transceiver_mode)(struct device *dev, int mode); |
Dmitry Baryshkov | baf1c5d | 2008-04-12 20:08:16 +0100 | [diff] [blame] | 13 | int (*startup)(struct device *dev); |
| 14 | void (*shutdown)(struct device *dev); |
Marek Vasut | c4bd017 | 2009-07-17 12:50:43 +0200 | [diff] [blame] | 15 | int gpio_pwdown; /* powerdown GPIO for the IrDA chip */ |
| 16 | bool gpio_pwdown_inverted; /* gpio_pwdown is inverted */ |
Nicolas Pitre | 6f475c0 | 2005-10-28 16:39:33 +0100 | [diff] [blame] | 17 | }; |
| 18 | |
| 19 | extern void pxa_set_ficp_info(struct pxaficp_platform_data *info); |
| 20 | |
Dmitry Baryshkov | 918dbcb | 2008-07-02 13:53:45 +0100 | [diff] [blame] | 21 | #if defined(CONFIG_PXA25x) || defined(CONFIG_PXA27x) |
| 22 | void pxa2xx_transceiver_mode(struct device *dev, int mode); |
| 23 | #endif |
| 24 | |
Nicolas Pitre | 6f475c0 | 2005-10-28 16:39:33 +0100 | [diff] [blame] | 25 | #endif |