diff options
| -rw-r--r-- | arch/arm/mach-pxa/spitz.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index d0ab428c2d7d..b838842b6a20 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c | |||
| @@ -34,6 +34,7 @@ | |||
| 34 | 34 | ||
| 35 | #include <asm/arch/pxa-regs.h> | 35 | #include <asm/arch/pxa-regs.h> |
| 36 | #include <asm/arch/irq.h> | 36 | #include <asm/arch/irq.h> |
| 37 | #include <asm/arch/irda.h> | ||
| 37 | #include <asm/arch/mmc.h> | 38 | #include <asm/arch/mmc.h> |
| 38 | #include <asm/arch/udc.h> | 39 | #include <asm/arch/udc.h> |
| 39 | #include <asm/arch/pxafb.h> | 40 | #include <asm/arch/pxafb.h> |
| @@ -277,6 +278,23 @@ static struct pxamci_platform_data spitz_mci_platform_data = { | |||
| 277 | 278 | ||
| 278 | 279 | ||
| 279 | /* | 280 | /* |
| 281 | * Irda | ||
| 282 | */ | ||
| 283 | static void spitz_irda_transceiver_mode(struct device *dev, int mode) | ||
| 284 | { | ||
| 285 | if (mode & IR_OFF) | ||
| 286 | set_scoop_gpio(&spitzscoop2_device.dev, SPITZ_SCP2_IR_ON); | ||
| 287 | else | ||
| 288 | reset_scoop_gpio(&spitzscoop2_device.dev, SPITZ_SCP2_IR_ON); | ||
| 289 | } | ||
| 290 | |||
| 291 | static struct pxaficp_platform_data spitz_ficp_platform_data = { | ||
| 292 | .transceiver_cap = IR_SIRMODE | IR_OFF, | ||
| 293 | .transceiver_mode = spitz_irda_transceiver_mode, | ||
| 294 | }; | ||
| 295 | |||
| 296 | |||
| 297 | /* | ||
| 280 | * Spitz PXA Framebuffer | 298 | * Spitz PXA Framebuffer |
| 281 | */ | 299 | */ |
| 282 | static struct pxafb_mach_info spitz_pxafb_info __initdata = { | 300 | static struct pxafb_mach_info spitz_pxafb_info __initdata = { |
| @@ -326,6 +344,7 @@ static void __init common_init(void) | |||
| 326 | 344 | ||
| 327 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 345 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
| 328 | pxa_set_mci_info(&spitz_mci_platform_data); | 346 | pxa_set_mci_info(&spitz_mci_platform_data); |
| 347 | pxa_set_ficp_info(&spitz_ficp_platform_data); | ||
| 329 | set_pxa_fb_parent(&spitzssp_device.dev); | 348 | set_pxa_fb_parent(&spitzssp_device.dev); |
| 330 | set_pxa_fb_info(&spitz_pxafb_info); | 349 | set_pxa_fb_info(&spitz_pxafb_info); |
| 331 | } | 350 | } |
