From: Tony Lindgren <tony@atomide.com>
To: "Hiremath, Vaibhav" <hvaibhav@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"tomi.valkeinen@nokia.com" <tomi.valkeinen@nokia.com>
Subject: Re: [PATCH 1/2] OMAP3EVM: Made backlight GPIO default state to off
Date: Thu, 1 Apr 2010 03:23:21 -0700 [thread overview]
Message-ID: <20100401102321.GN31200@atomide.com> (raw)
In-Reply-To: <19F8576C6E063C45BE387C64729E7394044DEBF3A5@dbde02.ent.ti.com>
* Hiremath, Vaibhav <hvaibhav@ti.com> [100330 01:07]:
>
> > -----Original Message-----
> > From: Hiremath, Vaibhav
> > Sent: Monday, March 22, 2010 6:41 PM
> > To: linux-omap@vger.kernel.org
> > Cc: tomi.valkeinen@nokia.com; tony@atomide.com; Hiremath, Vaibhav
> > Subject: [PATCH 1/2] OMAP3EVM: Made backlight GPIO default state to off
> >
> > From: Vaibhav Hiremath <hvaibhav@ti.com>
> >
> > If you choose default output to DVI, the LCD backlight still
> > gets powered, since panel->disable function never gets called for LCD.
> >
> > So, during init put backlight GPIO to off state and the driverr
> > code will decide which output to enable explicitly.
> >
> [Hiremath, Vaibhav] Tony,
>
> Do you see any issues with this patch? I think we can merge this patch series.
Looks like a valid fix to me.
Tony
> Thanks,
> Vaibhav
>
> > Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
> > ---
> > arch/arm/mach-omap2/board-omap3evm.c | 5 ++++-
> > 1 files changed, 4 insertions(+), 1 deletions(-)
> >
> > diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-
> > omap2/board-omap3evm.c
> > index 74bbdcb..f2a52c3 100644
> > --- a/arch/arm/mach-omap2/board-omap3evm.c
> > +++ b/arch/arm/mach-omap2/board-omap3evm.c
> > @@ -420,7 +420,10 @@ static int omap3evm_twl_gpio_setup(struct device *dev,
> >
> > /* TWL4030_GPIO_MAX + 0 == ledA, LCD Backlight control */
> > gpio_request(gpio + TWL4030_GPIO_MAX, "EN_LCD_BKL");
> > - gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0);
> > + if (get_omap3_evm_rev() >= OMAP3EVM_BOARD_GEN_2)
> > + gpio_direction_output(gpio + TWL4030_GPIO_MAX, 1);
> > + else
> > + gpio_direction_output(gpio + TWL4030_GPIO_MAX, 0);
> >
> > /* gpio + 7 == DVI Enable */
> > gpio_request(gpio + 7, "EN_DVI");
> > --
> > 1.6.2.4
>
next prev parent reply other threads:[~2010-04-01 10:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-22 13:11 [PATCH 1/2] OMAP3EVM: Made backlight GPIO default state to off hvaibhav
2010-03-30 8:10 ` Hiremath, Vaibhav
2010-04-01 10:23 ` Tony Lindgren [this message]
2010-04-01 11:54 ` Tomi Valkeinen
2010-04-01 12:11 ` Hiremath, Vaibhav
2010-04-01 13:32 ` Tomi Valkeinen
2010-04-12 11:47 ` Hiremath, Vaibhav
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=20100401102321.GN31200@atomide.com \
--to=tony@atomide.com \
--cc=hvaibhav@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=tomi.valkeinen@nokia.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