blob: bd35ddcf3068263d6bf3ac0c0f8e25961b489a1b [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Nicolas Pitre6f475c02005-10-28 16:39:33 +01002#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
11struct pxaficp_platform_data {
12 int transceiver_cap;
13 void (*transceiver_mode)(struct device *dev, int mode);
Dmitry Baryshkovbaf1c5d2008-04-12 20:08:16 +010014 int (*startup)(struct device *dev);
15 void (*shutdown)(struct device *dev);
Marek Vasutc4bd0172009-07-17 12:50:43 +020016 int gpio_pwdown; /* powerdown GPIO for the IrDA chip */
17 bool gpio_pwdown_inverted; /* gpio_pwdown is inverted */
Nicolas Pitre6f475c02005-10-28 16:39:33 +010018};
19
20extern void pxa_set_ficp_info(struct pxaficp_platform_data *info);
21
Dmitry Baryshkov918dbcb2008-07-02 13:53:45 +010022#if defined(CONFIG_PXA25x) || defined(CONFIG_PXA27x)
23void pxa2xx_transceiver_mode(struct device *dev, int mode);
24#endif
25
Nicolas Pitre6f475c02005-10-28 16:39:33 +010026#endif