diff options
| -rw-r--r-- | arch/arm/mach-pxa/corgi.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/corgi.c b/arch/arm/mach-pxa/corgi.c index 60c8b9d8bb9c..656f73bbcb5a 100644 --- a/arch/arm/mach-pxa/corgi.c +++ b/arch/arm/mach-pxa/corgi.c | |||
| @@ -33,6 +33,7 @@ | |||
| 33 | 33 | ||
| 34 | #include <asm/arch/pxa-regs.h> | 34 | #include <asm/arch/pxa-regs.h> |
| 35 | #include <asm/arch/irq.h> | 35 | #include <asm/arch/irq.h> |
| 36 | #include <asm/arch/irda.h> | ||
| 36 | #include <asm/arch/mmc.h> | 37 | #include <asm/arch/mmc.h> |
| 37 | #include <asm/arch/udc.h> | 38 | #include <asm/arch/udc.h> |
| 38 | #include <asm/arch/corgi.h> | 39 | #include <asm/arch/corgi.h> |
| @@ -224,6 +225,22 @@ static struct pxamci_platform_data corgi_mci_platform_data = { | |||
| 224 | }; | 225 | }; |
| 225 | 226 | ||
| 226 | 227 | ||
| 228 | /* | ||
| 229 | * Irda | ||
| 230 | */ | ||
| 231 | static void corgi_irda_transceiver_mode(struct device *dev, int mode) | ||
| 232 | { | ||
| 233 | if (mode & IR_OFF) | ||
| 234 | GPSR(CORGI_GPIO_IR_ON) = GPIO_bit(CORGI_GPIO_IR_ON); | ||
| 235 | else | ||
| 236 | GPCR(CORGI_GPIO_IR_ON) = GPIO_bit(CORGI_GPIO_IR_ON); | ||
| 237 | } | ||
| 238 | |||
| 239 | static struct pxaficp_platform_data corgi_ficp_platform_data = { | ||
| 240 | .transceiver_cap = IR_SIRMODE | IR_OFF, | ||
| 241 | .transceiver_mode = corgi_irda_transceiver_mode, | ||
| 242 | }; | ||
| 243 | |||
| 227 | 244 | ||
| 228 | /* | 245 | /* |
| 229 | * USB Device Controller | 246 | * USB Device Controller |
| @@ -269,10 +286,13 @@ static void __init corgi_init(void) | |||
| 269 | 286 | ||
| 270 | corgi_ssp_set_machinfo(&corgi_ssp_machinfo); | 287 | corgi_ssp_set_machinfo(&corgi_ssp_machinfo); |
| 271 | 288 | ||
| 289 | pxa_gpio_mode(CORGI_GPIO_IR_ON | GPIO_OUT); | ||
| 272 | pxa_gpio_mode(CORGI_GPIO_USB_PULLUP | GPIO_OUT); | 290 | pxa_gpio_mode(CORGI_GPIO_USB_PULLUP | GPIO_OUT); |
| 273 | pxa_gpio_mode(CORGI_GPIO_HSYNC | GPIO_IN); | 291 | pxa_gpio_mode(CORGI_GPIO_HSYNC | GPIO_IN); |
| 292 | |||
| 274 | pxa_set_udc_info(&udc_info); | 293 | pxa_set_udc_info(&udc_info); |
| 275 | pxa_set_mci_info(&corgi_mci_platform_data); | 294 | pxa_set_mci_info(&corgi_mci_platform_data); |
| 295 | pxa_set_ficp_info(&corgi_ficp_platform_data); | ||
| 276 | 296 | ||
| 277 | scoop_num = 1; | 297 | scoop_num = 1; |
| 278 | scoop_devs = &corgi_pcmcia_scoop[0]; | 298 | scoop_devs = &corgi_pcmcia_scoop[0]; |
