From: Bo Shen <voice.shen@atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2 02/13] lcd: split configuration_get_cmap
Date: Mon, 9 Feb 2015 11:43:57 +0800 [thread overview]
Message-ID: <54D82CFD.6040203@atmel.com> (raw)
In-Reply-To: <54D749E4.7090102@compulab.co.il>
Hi Nikita Kiryanov,
On 02/08/2015 07:35 PM, Nikita Kiryanov wrote:
> Hi Bo,
>
> On 02/04/2015 09:25 AM, Bo Shen wrote:
>> Hi Nikita Kiryanov,
>>
>> On 02/03/2015 07:32 PM, Nikita Kiryanov wrote:
>
> [..]
>
>>> #ifdef CONFIG_LCD_LOGO
>>> void bitmap_plot(int x, int y)
>>> diff --git a/drivers/video/atmel_hlcdfb.c b/drivers/video/atmel_hlcdfb.c
>>> index 935ae42..0ce2370 100644
>>> --- a/drivers/video/atmel_hlcdfb.c
>>> +++ b/drivers/video/atmel_hlcdfb.c
>>> @@ -13,6 +13,10 @@
>>> #include <lcd.h>
>>> #include <atmel_hlcdc.h>
>>>
>>> +#if defined(CONFIG_LCD_LOGO)
>>> +#include <bmp_logo.h>
>>> +#endif
>>
>> I think we can include this file directly.
>
> bmp_logo.h does not exist without CONFIG_LCD_LOGO.
Oh yes, my bad.
>>
>>> /* configurable parameters */
>>> #define ATMEL_LCDC_CVAL_DEFAULT 0xc8
>>> #define ATMEL_LCDC_DMA_BURST_LEN 8
>>> @@ -37,6 +41,15 @@ void lcd_setcolreg(ushort regno, ushort red,
>>> ushort green, ushort blue)
>>> panel_info.mmio + ATMEL_LCDC_LUT(regno));
>>> }
>>>
>>> +ushort *configuration_get_cmap(void)
>>> +{
>>> +#if defined(CONFIG_LCD_LOGO)
>>> + return bmp_logo_palette;
>>> +#else
>>> + return NULL;
>>> +#endif
>>> +}
>>
>> Here, I think no need to do the CONFIG_LCD_LOGO check, return
>> bmp_logo_palette directly, as it will be used when use bmp command in
>> 8 bit mode. However, no hardware to test LCDC work or not in 8 bit
>> mode :(
>
> This would make CONFIG_LCD_LOGO a prerequisite for this driver
> (bmp_logo_palette does not exist otherwise), and I don't think it's
> right to couple the two.
OK. let's keep this as is.
>>
>>> void lcd_ctrl_init(void *lcdbase)
>>> {
>>> unsigned long value;
>>> diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c
>>> index 3cf008c..fa6a82c 100644
>>> --- a/drivers/video/atmel_lcdfb.c
>>> +++ b/drivers/video/atmel_lcdfb.c
>>> @@ -29,6 +29,11 @@
>>> #define lcdc_readl(mmio, reg) __raw_readl((mmio)+(reg))
>>> #define lcdc_writel(mmio, reg, val) __raw_writel((val),
>>> (mmio)+(reg))
>>>
>
Best Regards,
Bo Shen
next prev parent reply other threads:[~2015-02-09 3:43 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-03 11:32 [U-Boot] [PATCH V2 00/13] common lcd refactor Nikita Kiryanov
2015-02-03 11:32 ` [U-Boot] [PATCH V2 01/13] lcd: move platform-specific structs to their own headers Nikita Kiryanov
2015-02-04 6:48 ` Bo Shen
2015-02-03 11:32 ` [U-Boot] [PATCH V2 02/13] lcd: split configuration_get_cmap Nikita Kiryanov
2015-02-04 7:25 ` Bo Shen
2015-02-08 11:35 ` Nikita Kiryanov
2015-02-09 3:43 ` Bo Shen [this message]
2015-02-03 11:32 ` [U-Boot] [PATCH V2 03/13] lcd: atmel: move atmel-specific fb_put_word to atmel_lcdfb Nikita Kiryanov
2015-02-04 7:26 ` Bo Shen
2015-02-03 11:32 ` [U-Boot] [PATCH V2 04/13] lcd: mpc8xx: move mpc823-specific fb_put_byte to mpc8xx_lcd.c Nikita Kiryanov
2015-02-03 11:32 ` [U-Boot] [PATCH V2 05/13] lcd: atmel: introduce lcd_logo_set_cmap Nikita Kiryanov
2015-02-03 11:32 ` [U-Boot] [PATCH V2 06/13] lcd: mpc823: move mpc823-specific lcd_logo_set_cmap code to mpc8xx_lcd.c Nikita Kiryanov
2015-02-03 11:32 ` [U-Boot] [PATCH V2 07/13] lcd: logo: move generic cmap setting to lcd_logo_set_cmap() Nikita Kiryanov
2015-02-03 11:32 ` [U-Boot] [PATCH V2 08/13] lcd: introduce lcd_set_cmap Nikita Kiryanov
2015-02-03 11:32 ` [U-Boot] [PATCH V2 09/13] lcd: remove unused includes Nikita Kiryanov
2015-02-03 11:32 ` [U-Boot] [PATCH V2 10/13] lcd: various cleanups Nikita Kiryanov
2015-02-03 11:32 ` [U-Boot] [PATCH V2 11/13] lcd: rename bitmap_plot to better represent its functionality Nikita Kiryanov
2015-02-03 11:32 ` [U-Boot] [PATCH V2 12/13] lcd: dt: extract simplefb support Nikita Kiryanov
2015-02-03 11:32 ` [U-Boot] [PATCH V2 13/13] lcd: split splash code into its own function Nikita Kiryanov
2015-02-04 2:37 ` [U-Boot] [PATCH V2 00/13] common lcd refactor Josh Wu
2015-02-04 8:03 ` Bo Shen
2015-02-10 12:43 ` Anatolij Gustschin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54D82CFD.6040203@atmel.com \
--to=voice.shen@atmel.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox