linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "K, Mythri P" <mythripk@ti.com>
To: jg1.han@samsung.com
Cc: Kukjin Kim <kgene.kim@samsung.com>,
	Paul Mundt <lethal@linux-sh.org>,
	"linux-samsung-soc@vger.kernel.org"
	<linux-samsung-soc@vger.kernel.org>,
	"linux-fbdev@vger.kernel.org" <linux-fbdev@vger.kernel.org>,
	Jong-Hun Han <jonghun.han@samsung.com>,
	ANAND KUMAR N <anand.kn@samsung.com>,
	Sylwester Nawrocki <s.nawrocki@samsung.com>,
	THOMAS P ABRAHAM <thomas.ab@samsung.com>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	Kyungmin Park <kmpark@infradead.org>,
	In-Ki Dae <inki.dae@samsung.com>,
	ARM Linux <linux@arm.linux.org.uk>,
	Ben Dooks <ben-linux@fluff.org>
Subject: Re: [PATCH V4 5/5] ARM: EXYNOS4: Add platform data for EXYNOS4 FIMD
Date: Thu, 23 Jun 2011 09:15:43 +0000	[thread overview]
Message-ID: <BANLkTin7J=fBbp+4Ti_a2D6bgU15sVZHzg@mail.gmail.com> (raw)
In-Reply-To: <11291403.110251308714504687.JavaMail.weblogic@epml08>

2011/6/22 JinGoo Han <jg1.han@samsung.com>:
> From: Jonghun Han <jonghun.han@samsung.com>
>
> This patch adds support EXYNOS4 FIMD0 and LTE480WV LCD pannel.
>
> Signed-off-by: Jonghun Han <jonghun.han@samsung.com>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---
>  arch/arm/mach-exynos4/mach-smdkc210.c |  114 +++++++++++++++++++++++++++++++++
>  arch/arm/mach-exynos4/mach-smdkv310.c |  114 +++++++++++++++++++++++++++++++++
>  2 files changed, 228 insertions(+), 0 deletions(-)
>
<<snip>>
> +static void lcd_lte480wv_set_power(struct plat_lcd_data *pd,
> +                                  unsigned int power)
> +{
> +       if (power) {
> +#if !defined(CONFIG_BACKLIGHT_PWM)
> +               gpio_request(EXYNOS4_GPD0(1), "GPD0");
> +               gpio_direction_output(EXYNOS4_GPD0(1), 1);
> +               gpio_free(EXYNOS4_GPD0(1));
> +#endif
> +               /* fire nRESET on power up */
> +               gpio_request(EXYNOS4_GPX0(6), "GPX0");
> +
> +               gpio_direction_output(EXYNOS4_GPX0(6), 1);
> +               mdelay(100);
> +
> +               gpio_set_value(EXYNOS4_GPX0(6), 0);
> +               mdelay(10);
> +
> +               gpio_set_value(EXYNOS4_GPX0(6), 1);
> +               mdelay(10);
> +
> +               gpio_free(EXYNOS4_GPX0(6));
> +       } else {
> +#if !defined(CONFIG_BACKLIGHT_PWM)
> +               gpio_request(EXYNOS4_GPD0(1), "GPD0");
> +               gpio_direction_output(EXYNOS4_GPD0(1), 0);
> +               gpio_free(EXYNOS4_GPD0(1));
> +#endif
> +       }
> +}
> +

have you considered using gpio_request_one instead ? It simplifies the
three step API.

<<snip>>

> +       if (power) {
> +#if !defined(CONFIG_BACKLIGHT_PWM)
> +               gpio_request(EXYNOS4_GPD0(1), "GPD0");
> +               gpio_direction_output(EXYNOS4_GPD0(1), 1);
> +               gpio_free(EXYNOS4_GPD0(1));
> +#endif
> +               /* fire nRESET on power up */
> +               gpio_request(EXYNOS4_GPX0(6), "GPX0");
> +
> +               gpio_direction_output(EXYNOS4_GPX0(6), 1);
> +               mdelay(100);
> +
> +               gpio_set_value(EXYNOS4_GPX0(6), 0);
> +               mdelay(10);
> +
> +               gpio_set_value(EXYNOS4_GPX0(6), 1);
> +               mdelay(10);
> +
> +               gpio_free(EXYNOS4_GPX0(6));
> +       } else {
> +#if !defined(CONFIG_BACKLIGHT_PWM)
> +               gpio_request(EXYNOS4_GPD0(1), "GPD0");
> +               gpio_direction_output(EXYNOS4_GPD0(1), 0);
> +               gpio_free(EXYNOS4_GPD0(1));
> +#endif
> +       }
> +}

same comment as above.

<<snip>>



-- 
Thanks and regards,
Mythri.

  reply	other threads:[~2011-06-23  9:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-22  3:48 [PATCH V4 5/5] ARM: EXYNOS4: Add platform data for EXYNOS4 FIMD and JinGoo Han
2011-06-23  9:15 ` K, Mythri P [this message]
2011-06-23 11:08 ` Re: [PATCH V4 5/5] ARM: EXYNOS4: Add platform data for EXYNOS4 JinGoo Han

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='BANLkTin7J=fBbp+4Ti_a2D6bgU15sVZHzg@mail.gmail.com' \
    --to=mythripk@ti.com \
    --cc=anand.kn@samsung.com \
    --cc=ben-linux@fluff.org \
    --cc=inki.dae@samsung.com \
    --cc=jg1.han@samsung.com \
    --cc=jonghun.han@samsung.com \
    --cc=kgene.kim@samsung.com \
    --cc=kmpark@infradead.org \
    --cc=lethal@linux-sh.org \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=m.szyprowski@samsung.com \
    --cc=s.nawrocki@samsung.com \
    --cc=thomas.ab@samsung.com \
    /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;
as well as URLs for NNTP newsgroup(s).