[U-Boot] [PATCH 01/03 v2] Add inverted clock polarity support for Atmel LCD driver

Wolfgang Denk wd at denx.de
Tue Jul 14 21:49:32 CEST 2009


Dear Dimitar Dimitrov,

In message <200907142209.57504.dinuxbg at gmail.com> you wrote:
> This is my second try for Olimex SAM9-L9260/61 board support patches. 
> I deleted the board ethernet initialization and hopefully will add
> it later in a state that can be accepted.
> 
> 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_ATMEL_LCD_INVCLK.
> 
> Signed-off-by: Dimitar Dimitrov <dinuxbg at gmail.com>
> ---
>  drivers/video/atmel_lcdfb.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c
> index db86763..64f8e87 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);
> +#if defined(CONFIG_ATMEL_LCD_INVCLK)
> +	value |= ATMEL_LCDC_INVCLK_INVERTED;
> +#endif

Please remove the "ATMEL_" part from the #define. The feature might
be interesting for other processors / systems as well.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Q: What do you get when you cross an ethernet with an income statement?
A: A local area networth.


More information about the U-Boot mailing list