From 392e8802486cb573b916e746010e141a75f507e6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 09:58:27 +0800 Subject: init android origin source code --- .../arch/arm/mach-pxa/include/mach/irda.h | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ANDROID_3.4.5/arch/arm/mach-pxa/include/mach/irda.h (limited to 'ANDROID_3.4.5/arch/arm/mach-pxa/include/mach/irda.h') diff --git a/ANDROID_3.4.5/arch/arm/mach-pxa/include/mach/irda.h b/ANDROID_3.4.5/arch/arm/mach-pxa/include/mach/irda.h new file mode 100644 index 00000000..3cd41f77 --- /dev/null +++ b/ANDROID_3.4.5/arch/arm/mach-pxa/include/mach/irda.h @@ -0,0 +1,25 @@ +#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); + int gpio_pwdown; /* powerdown GPIO for the IrDA chip */ + bool gpio_pwdown_inverted; /* gpio_pwdown is inverted */ +}; + +extern void pxa_set_ficp_info(struct pxaficp_platform_data *info); + +#if defined(CONFIG_PXA25x) || defined(CONFIG_PXA27x) +void pxa2xx_transceiver_mode(struct device *dev, int mode); +#endif + +#endif -- cgit