baf1c5d2a0
Let platform do some specific initialisation and cleanup things during pxaficp_ir probing and removing. E.g. this can be usefull to request/free gpios used by the platform to control the transceiver. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
20 lines
428 B
C
20 lines
428 B
C
#ifndef ASMARM_ARCH_IRDA_H
|
|
#define ASMARM_ARCH_IRDA_H
|
|
|
|
/* board specific transceiver capabilities */
|
|
|
|
#define IR_OFF 1
|
|
#define IR_SIRMODE 2
|
|
#define IR_FIRMODE 4
|
|
|
|
struct pxaficp_platform_data {
|
|
int transceiver_cap;
|
|
void (*transceiver_mode)(struct device *dev, int mode);
|
|
int (*startup)(struct device *dev);
|
|
void (*shutdown)(struct device *dev);
|
|
};
|
|
|
|
extern void pxa_set_ficp_info(struct pxaficp_platform_data *info);
|
|
|
|
#endif
|