GNU Linux-libre 4.14.265-gnu1
[releases.git] / include / linux / platform_data / irda-pxaficp.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef ASMARM_ARCH_IRDA_H
3 #define ASMARM_ARCH_IRDA_H
4
5 /* board specific transceiver capabilities */
6
7 #define IR_OFF          1
8 #define IR_SIRMODE      2
9 #define IR_FIRMODE      4
10
11 struct pxaficp_platform_data {
12         int transceiver_cap;
13         void (*transceiver_mode)(struct device *dev, int mode);
14         int (*startup)(struct device *dev);
15         void (*shutdown)(struct device *dev);
16         int gpio_pwdown;                /* powerdown GPIO for the IrDA chip */
17         bool gpio_pwdown_inverted;      /* gpio_pwdown is inverted */
18 };
19
20 extern void pxa_set_ficp_info(struct pxaficp_platform_data *info);
21
22 #if defined(CONFIG_PXA25x) || defined(CONFIG_PXA27x)
23 void pxa2xx_transceiver_mode(struct device *dev, int mode);
24 #endif
25
26 #endif