aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAndrew Victor <linux@maxim.org.za>2008-01-22 05:37:32 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-01-26 10:00:31 -0500
commitf06e656fb4f6f41ae9cba0f5d6948a6c7f6250ba (patch)
treebed5fabf69b8ce377e78b7f893eecdf6185f69d1 /arch
parenta50d49dbb72aff90601fda90ea37a02a606d2d90 (diff)
[ARM] 4750/1: [AT91] STN LCD displays on SAM9261
Add support for STN LCD displays on Atmel AT91SAM9261-based boards. Patch from Nicolas Ferre. Signed-off-by: Andrew Victor <linux@maxim.org.za> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-at91/at91sam9261_devices.c12
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);