Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
6f475c01 NP |
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); | |
baf1c5d2 DB |
14 | int (*startup)(struct device *dev); |
15 | void (*shutdown)(struct device *dev); | |
c4bd0172 MV |
16 | int gpio_pwdown; /* powerdown GPIO for the IrDA chip */ |
17 | bool gpio_pwdown_inverted; /* gpio_pwdown is inverted */ | |
6f475c01 NP |
18 | }; |
19 | ||
20 | extern void pxa_set_ficp_info(struct pxaficp_platform_data *info); | |
21 | ||
918dbcba DB |
22 | #if defined(CONFIG_PXA25x) || defined(CONFIG_PXA27x) |
23 | void pxa2xx_transceiver_mode(struct device *dev, int mode); | |
24 | #endif | |
25 | ||
6f475c01 | 26 | #endif |