From: Minkyu Kang <mk7.kang@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH RESEND 2/4] video: Fix compilation dependency of exynos_dp and exynos_mipi on exynos_fb
Date: Sat, 15 Dec 2012 14:25:19 +0900 [thread overview]
Message-ID: <50CC09BF.6010203@samsung.com> (raw)
In-Reply-To: <1355398167-24845-3-git-send-email-ajaykumar.rs@samsung.com>
Dear Ajay,
On 13/12/12 20:29, Ajay Kumar wrote:
> When only DP is used, we need not enable CONFIG_EXYNOS_MIPI_DSIM.
> Similarly, when only MIPI is used, we need not enable CONFIG_EXYNOS_DP.
> But the current structuring of code forces us to enable both
> CONFIG_EXYNOS_MIPI_DSIM and CONFIG_EXYNOS_DP.
> This patch adds conditional compilation check to remove the dependency.
>
> Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
> Acked-by: Simon Glass <sjg@chromium.org>
> ---
> drivers/video/exynos_fb.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/video/exynos_fb.c b/drivers/video/exynos_fb.c
> index d9a3f9a..39d3b74 100644
> --- a/drivers/video/exynos_fb.c
> +++ b/drivers/video/exynos_fb.c
> @@ -103,8 +103,10 @@ static void lcd_panel_on(vidinfo_t *vid)
>
> udelay(vid->power_on_delay);
>
> +#ifdef CONFIG_EXYNOS_DP
> if (vid->dp_enabled)
> exynos_init_dp();
> +#endif
Unnecessary.
please see arch/arm/include/asm/arch-exynos/dp_info.h
#ifdef CONFIG_EXYNOS_DP
unsigned int exynos_init_dp(void);
#else
unsigned int exynos_init_dp(void)
{
return 0;
}
#endif
>
> if (vid->reset_lcd) {
> vid->reset_lcd();
> @@ -120,8 +122,10 @@ static void lcd_panel_on(vidinfo_t *vid)
> if (vid->enable_ldo)
> vid->enable_ldo(1);
>
> +#ifdef CONFIG_EXYNOS_MIPI_DSIM
> if (vid->mipi_enabled)
> exynos_mipi_dsi_init();
> +#endif
This should be modified like exynos_init_dp?
Donghwa, how you think?
> }
>
> void lcd_ctrl_init(void *lcdbase)
>
Thanks.
Minkyu Kang.
next prev parent reply other threads:[~2012-12-15 5:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-13 11:29 [U-Boot] [PATCH V2 0/4] Add support for FIMD and DP on SMDK5250 Ajay Kumar
2012-12-13 11:29 ` [U-Boot] [PATCH V2 1/4] EXYNOS5: Change parent clock of FIMD to MPLL Ajay Kumar
2012-12-15 5:13 ` Minkyu Kang
2012-12-17 1:12 ` Donghwa Lee
2012-12-13 11:29 ` [U-Boot] [PATCH RESEND 2/4] video: Fix compilation dependency of exynos_dp and exynos_mipi on exynos_fb Ajay Kumar
2012-12-15 5:25 ` Minkyu Kang [this message]
2012-12-17 0:53 ` Donghwa Lee
2012-12-13 11:29 ` [U-Boot] [PATCH V2 3/4] video: Modify exynos_fimd driver to support LCD console Ajay Kumar
2012-12-14 22:38 ` Simon Glass
2012-12-13 11:29 ` [U-Boot] [PATCH V2 4/4] EXYNOS5: Add support for FIMD and DP Ajay Kumar
2012-12-15 5:22 ` Minkyu Kang
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=50CC09BF.6010203@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox