[U-Boot] [PATCH v3 1/2] video: atmel: implement lcd_setcolreg funtion

Marek Vasut marex at denx.de
Tue Nov 6 23:54:33 CET 2012


Dear Andreas Bießmann,

> From: Bo Shen <voice.shen at atmel.com>

Missing commit message

> Signed-off-by: Bo Shen <voice.shen at atmel.com>
> Signed-off-by: Andreas Bießmann <andreas.devel at googlemail.com>
> ---
> since v2:
>  * add this single patch
> 
>  drivers/video/atmel_hlcdfb.c |    6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/video/atmel_hlcdfb.c b/drivers/video/atmel_hlcdfb.c
> index beb7fa3..4110d4d 100644
> --- a/drivers/video/atmel_hlcdfb.c
> +++ b/drivers/video/atmel_hlcdfb.c
> @@ -51,6 +51,12 @@ short console_row;
>  #define lcdc_readl(reg)		__raw_readl((reg))
>  #define lcdc_writel(reg, val)	__raw_writel((val), (reg))
> 
> +void lcd_setcolreg(ushort regno, ushort red, ushort green, ushort blue)
> +{
> +	lcdc_writel((red << 16) | (green << 8) | blue,
> +			panel_info.mmio + ATMEL_LCDC_LUT(regno));

So this is RGB666? Or what are those magic numbers ?

> +}
> +
>  void lcd_ctrl_init(void *lcdbase)
>  {
>  	unsigned long value;

Best regards,
Marek Vasut


More information about the U-Boot mailing list