From: Minkyu Kang <mk7.kang@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V4 3/4] video: Modify exynos_fimd driver to support LCD console
Date: Tue, 08 Jan 2013 14:50:23 +0900 [thread overview]
Message-ID: <50EBB39F.50205@samsung.com> (raw)
In-Reply-To: <CAEC9eQNPdLB9EAi9NRkrU2SqiRQxzsB8L9yCWpXnQyrNUuxsZg@mail.gmail.com>
On 08/01/13 14:31, Ajay kumar wrote:
> Hi Minkyu,
>
> On Tue, Jan 8, 2013 at 8:05 AM, Minkyu Kang <mk7.kang@samsung.com> wrote:
>> Dear Ajay Kumar,
>>
>> On 21/12/12 19:35, Ajay Kumar wrote:
>>> Currently, exynos FIMD driver is being used to support only TIZEN LOGOs.
>>> In order to get LCD console, we need to enable half word swap feature
>>> of FIMD and use 16 BPP.
>>> LCD console and proprietary Logo cannot be used simultaneously.
>>> We use logo_on field inside vidinfo_t structure to decide whether
>>> user wants Logo or Console.
>>>
>>> Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
>>> ---
>>
>> Please add changelog here about what you changed since last version.
> I will send V5 soon. Please see my explanation below.
>>> drivers/video/exynos_fb.c | 7 +++++++
>>> drivers/video/exynos_fimd.c | 12 ++++++++----
>>> 2 files changed, 15 insertions(+), 4 deletions(-)
>>>
>>> diff --git a/drivers/video/exynos_fb.c b/drivers/video/exynos_fb.c
>>> index d9a3f9a..ee916be 100644
>>> --- a/drivers/video/exynos_fb.c
>>> +++ b/drivers/video/exynos_fb.c
>>> @@ -45,6 +45,13 @@ short console_row;
>>>
>>> static unsigned int panel_width, panel_height;
>>>
>>> +#ifndef CONFIG_CMD_BMP
>>> +int bmp_display(ulong addr, int x, int y)
>>> +{
>>> + return 0;
>>> +}
>>> +#endif
>
>
>> It's a common function of bmp command.
>> Please do not redefine such a function.
>
> I am using CONFIG_CMD_BMP to differentiate between LCD Logo and LCD console.
> I select CONFIG_CMD_BMP only when I need Logo, and
> I will not select CONFIG_CMD_BMP when I need console.
> Lets consider that we want console. So we don't define CONFIG_CMD_BMP now.
> And, exynos_fb.c has linking time dependency on "bmp_display", which
> is not defined!
> In such a case, I am left with 2 options:
> 1) Place an #ifdef CONFIG_CMD_BMP inside exynos_fb, where it makes a
> call to "bmp_display".
> 2) Redefine "bmp_display" to do nothing inside a header file(That's
> how it is done in this patch!)
> Kindly let me know if you have a better way to do this.
>
I think, 1) is better.
Thanks.
Minkyu Kang.
next prev parent reply other threads:[~2013-01-08 5:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-21 10:35 [U-Boot] [PATCH V4 0/4] Add support for FIMD and DP on SMDK5250 Ajay Kumar
2012-12-21 10:35 ` [U-Boot] [PATCH V2 RESEND 1/4] EXYNOS5: Change parent clock of FIMD to MPLL Ajay Kumar
2012-12-21 10:35 ` [U-Boot] [PATCH V2 2/4] EXYNOS: Add dummy definition to fix compilation dependency on CONFIG_EXYNOS_MIPI_DSIM Ajay Kumar
2012-12-21 10:35 ` [U-Boot] [PATCH V4 3/4] video: Modify exynos_fimd driver to support LCD console Ajay Kumar
2013-01-08 2:35 ` Minkyu Kang
2013-01-08 5:31 ` Ajay kumar
2013-01-08 5:50 ` Minkyu Kang [this message]
2012-12-21 10:35 ` [U-Boot] [PATCH V4 4/4] EXYNOS5: Add support for FIMD and DP Ajay Kumar
2012-12-21 11:47 ` Rajeshwari Birje
2012-12-21 11:58 ` Kyungmin Park
2012-12-21 12:05 ` Minkyu Kang
2012-12-21 12:12 ` Rajeshwari Birje
2013-01-08 2:40 ` Minkyu Kang
2013-01-08 5:31 ` Ajay kumar
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=50EBB39F.50205@samsung.com \
--to=mk7.kang@samsung.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.