diff mbox

[U-Boot] Add inverted clock polarity support for Atmel LCD driver

Message ID 200907151856.24888.dinuxbg@gmail.com
State Not Applicable
Delegated to: Reinhard Meyer
Headers show

Commit Message

Dimitar Dimitrov July 15, 2009, 3:56 p.m. UTC
This is my third try for Olimex SAM9-L9260/61 board support patches. 

Here follows the first patch.

Boards utilizing the Atmel LCD driver can now specify that the LCD clock must
be inverted by defining the macro CONFIG_LCD_INVERTED_CLOCK.
 README                      |    5 +++++
 drivers/video/atmel_lcdfb.c |    3 +++
 2 files changed, 8 insertions(+), 0 deletions(-)
diff mbox


diff --git a/README b/README
index de700bd..d7c0afe 100644
--- a/README
+++ b/README
@@ -1063,6 +1063,11 @@  The following options need to be configured:
 		Normally display is black on white background; define
 		CONFIG_SYS_WHITE_ON_BLACK to get it inverted.
+		Define this if your LCD needs inverted clock polarity. Note
+		that this feature will work only if the selected LCD driver 
+		and hardware controller support it.
 - Splash Screen Support: CONFIG_SPLASH_SCREEN
 		If this option is set, the environment is checked for
diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c
index db86763..d3e988e 100644
--- a/drivers/video/atmel_lcdfb.c
+++ b/drivers/video/atmel_lcdfb.c
@@ -112,6 +112,9 @@  void lcd_ctrl_init(void *lcdbase)
 	value |= panel_info.vl_sync;
 	value |= (panel_info.vl_bpix << 5);
 	lcdc_writel(panel_info.mmio, ATMEL_LCDC_LCDCON2, value);
 	/* Vertical timing */