mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 20:23:57 +08:00
c4bd017273
and convert PXA-based devices to gpio_pwdown where possible. Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
26 lines
665 B
C
26 lines
665 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);
|
|
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
|