Skip to contentSkip to conversation

LCDVSYNC not set up in Atmel AT91SAM9RL device code

DISCUSSION Nicholas Kinar 2 participants 3 messages May 23, 2011 – May 25, 2011

lore
Share & tools
lore
#0 lore raw

Hello,

I've been setting up an LCD display interfaced to the Atmel AT91SAM9RL processor, and I noticed that in the /arch/arm/mach-at91/at91sam9rl_devices.c file, the GPIO pin AT91_PIN_PC4 is not switched over to the LCD peripheral.

To make the LCD display peripheral operate properly, I had to add the following line to the at91_add_device_lcdc() function:

at91_set_A_periph(AT91_PIN_PC4, 0); /* LCDVSYNC */

Perhaps this could be patched? I do not know if a similar issue also occurs in other device setup files.

Nicholas

#1 lore raw

Hi Nicholas,

Quoted 15 lines

-----Original Message-----
From: linux-arm-kernel-bounces at lists.infradead.org [mailto:linux-arm-kernel-bounces at lists.infradead.org] On Behalf Of Nicholas Kinar
Sent: Tuesday, May 24, 2011 4:53 AM
To: linux-arm-kernel at lists.infradead.org
Subject: LCDVSYNC not set up in Atmel AT91SAM9RL device code

Hello,

I've been setting up an LCD display interfaced to the Atmel AT91SAM9RL processor, and I noticed that in the /arch/arm/mach-at91/at91sam9rl_devices.c file, the GPIO pin AT91_PIN_PC4 is not switched over to the LCD peripheral.

Quoted 4 lines

To make the LCD display peripheral operate properly, I had to add the following line to the at91_add_device_lcdc() function:

at91_set_A_periph(AT91_PIN_PC4, 0); /* LCDVSYNC */

You're right. Although the LCD panel on Atmel's AT91SAM9RL-EK does not need the VSYNC, you board needs. I just sent out a small patch about this and put you in the "Reported-by" line. Thanks.

Quoted 2 lines

Perhaps this could be patched? I do not know if a similar issue also occurs in other device setup files.

AT91SAM9263-EK has the same issue as you specified, another patch will be sent out, thanks.

BR,
Eric

#2 lore raw
Quoted 20 lines · Hong

Hi Nicholas,

Quoted 15 lines

-----Original Message-----
From: linux-arm-kernel-bounces at lists.infradead.org [mailto:linux-arm-kernel-bounces at lists.infradead.org] On Behalf Of Nicholas Kinar
Sent: Tuesday, May 24, 2011 4:53 AM
To: linux-arm-kernel at lists.infradead.org
Subject: LCDVSYNC not set up in Atmel AT91SAM9RL device code

Hello,

I've been setting up an LCD display interfaced to the Atmel AT91SAM9RL processor, and I noticed that in the /arch/arm/mach-at91/at91sam9rl_devices.c file, the GPIO pin AT91_PIN_PC4 is not switched over to the LCD peripheral.

Quoted 4 lines

To make the LCD display peripheral operate properly, I had to add the following line to the at91_add_device_lcdc() function:

at91_set_A_periph(AT91_PIN_PC4, 0); /* LCDVSYNC */

Quoted 9 lines

You're right. Although the LCD panel on Atmel's AT91SAM9RL-EK does not need the VSYNC, you board needs. I just sent out a small patch about this and put you in the "Reported-by" line. Thanks.

Quoted 2 lines

Perhaps this could be patched? I do not know if a similar issue also occurs in other device setup files.

AT91SAM9263-EK has the same issue as you specified, another patch will be sent out, thanks.

BR,
Eric

Thank you; this is very useful.

Nicholas