diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-at91/at91sam9261_devices.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/at91sam9261_devices.c b/arch/arm/mach-at91/at91sam9261_devices.c index 64979a9023c2..1d03844a607a 100644 --- a/arch/arm/mach-at91/at91sam9261_devices.c +++ b/arch/arm/mach-at91/at91sam9261_devices.c | |||
@@ -507,6 +507,17 @@ void __init at91_add_device_lcdc(struct atmel_lcdfb_info *data) | |||
507 | return; | 507 | return; |
508 | } | 508 | } |
509 | 509 | ||
510 | #if defined(CONFIG_FB_ATMEL_STN) | ||
511 | at91_set_A_periph(AT91_PIN_PB0, 0); /* LCDVSYNC */ | ||
512 | at91_set_A_periph(AT91_PIN_PB1, 0); /* LCDHSYNC */ | ||
513 | at91_set_A_periph(AT91_PIN_PB2, 0); /* LCDDOTCK */ | ||
514 | at91_set_A_periph(AT91_PIN_PB3, 0); /* LCDDEN */ | ||
515 | at91_set_A_periph(AT91_PIN_PB4, 0); /* LCDCC */ | ||
516 | at91_set_A_periph(AT91_PIN_PB5, 0); /* LCDD0 */ | ||
517 | at91_set_A_periph(AT91_PIN_PB6, 0); /* LCDD1 */ | ||
518 | at91_set_A_periph(AT91_PIN_PB7, 0); /* LCDD2 */ | ||
519 | at91_set_A_periph(AT91_PIN_PB8, 0); /* LCDD3 */ | ||
520 | #else | ||
510 | at91_set_A_periph(AT91_PIN_PB1, 0); /* LCDHSYNC */ | 521 | at91_set_A_periph(AT91_PIN_PB1, 0); /* LCDHSYNC */ |
511 | at91_set_A_periph(AT91_PIN_PB2, 0); /* LCDDOTCK */ | 522 | at91_set_A_periph(AT91_PIN_PB2, 0); /* LCDDOTCK */ |
512 | at91_set_A_periph(AT91_PIN_PB3, 0); /* LCDDEN */ | 523 | at91_set_A_periph(AT91_PIN_PB3, 0); /* LCDDEN */ |
@@ -529,6 +540,7 @@ void __init at91_add_device_lcdc(struct atmel_lcdfb_info *data) | |||
529 | at91_set_B_periph(AT91_PIN_PB26, 0); /* LCDD21 */ | 540 | at91_set_B_periph(AT91_PIN_PB26, 0); /* LCDD21 */ |
530 | at91_set_B_periph(AT91_PIN_PB27, 0); /* LCDD22 */ | 541 | at91_set_B_periph(AT91_PIN_PB27, 0); /* LCDD22 */ |
531 | at91_set_B_periph(AT91_PIN_PB28, 0); /* LCDD23 */ | 542 | at91_set_B_periph(AT91_PIN_PB28, 0); /* LCDD23 */ |
543 | #endif | ||
532 | 544 | ||
533 | lcdc_data = *data; | 545 | lcdc_data = *data; |
534 | platform_device_register(&at91_lcdc_device); | 546 | platform_device_register(&at91_lcdc_device); |