All of lore.kernel.org
 help / color / mirror / Atom feed
From: "stanley.miao" <stanley.miao@windriver.com>
To: iqbal@ti.com
Cc: linux-omap@vger.kernel.org
Subject: Re: omapfb problem on 3430sdp
Date: Fri, 29 Aug 2008 20:28:33 +0800	[thread overview]
Message-ID: <1220012913.14924.55.camel@localhost> (raw)
In-Reply-To: <56537.192.168.10.89.1219847223.squirrel@dbdmail.itg.ti.com>


I have tried. It is not backlight's problem.

I found that only green color was showed, red and blue were filtered. So
the picture looked green and dark.

The color mode is RGB565. I wrote 0x07e0, 0xffe0, and 0xffff to /dev/fb0
respectively. All of them are showed to the same color, it's green.

I am using the latest code from source.mvista.com on omap3430sdp. Does
anybody encounter this problem ?

Thanks
Stanley.


On Wed, 2008-08-27 at 19:57 +0530, iqbal wrote:
> > The linux bootup logo is green, and LCD is dark. It looks like backlight
> > disabled.
> >
> > I commented the following two sentences in lcd_2430.c, there is still
> > the same thing. It seems these two sentences doesn't work.
> >
> >  96         omap_set_gpio_dataout(enable_gpio, 1);
> >  97         omap_set_gpio_dataout(backlight_gpio, 1);
> >
> > Both the the latest kernels from omapzoom.org and linux-omap-2.6 have
> > this problem.  However, the old version in linux-omap-2.6, 2.6.21,
> > doesn't have this problem.
> >
> > Stanley.
> 
> If I use this piece of code in panel suspend and resume, I see that the panel
> backlight is going off on suspend and comes back while calling resume. Give a
> try .
> 
>  static int sdp2430_panel_suspend(struct platform_device *pdev, pm_message_t mesg)
>  {
> +       omap_set_gpio_dataout(backlight_gpio, 0);
> +       twl4030_i2c_write_u8(TWL4030_MODULE_PM_RECEIVER,0x0,
> +                               TWL4030_VPLL2_DEDICATED);
> +       twl4030_i2c_write_u8(TWL4030_MODULE_PM_RECEIVER,0x0,
> +                               TWL4030_VPLL2_DEV_GRP);
> +       mdelay(4);
>         return 0;
>  }
> 
>  static int sdp2430_panel_resume(struct platform_device *pdev)
>  {
> +       if (lcd_in_use)
> +       return 0;
> +       twl4030_i2c_write_u8(TWL4030_MODULE_PM_RECEIVER,
> +                       ENABLE_VPLL2_DEDICATED,TWL4030_VPLL2_DEDICATED);
> +       twl4030_i2c_write_u8(TWL4030_MODULE_PM_RECEIVER,
> +                       ENABLE_VPLL2_DEV_GRP,TWL4030_VPLL2_DEV_GRP);
> +       omap_set_gpio_dataout(backlight_gpio, 1);
> +
>         return 0;
>  }
> 
> >
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >
> >
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2008-08-29 12:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-27  9:28 omapfb problem on 3430sdp stanley.miao
2008-08-27  9:43 ` Felipe Balbi
2008-08-27 13:03   ` stanley.miao
2008-08-27 13:32     ` Felipe Balbi
2008-08-27 14:09       ` iqbal
2008-08-27 14:27 ` iqbal
2008-08-29 12:28   ` stanley.miao [this message]
     [not found]     ` <c656a4d20808290848q3c676ddbn19df1d5fff43e5ad@mail.gmail.com>
     [not found]       ` <1220232703.14924.68.camel@localhost>
2008-09-01  6:38         ` arun c
  -- strict thread matches above, loose matches on Subject: below --
2008-07-30  6:35 OMAPFB problem on 3430SDP Tomi Valkeinen
2008-07-30  6:51 ` iqbal

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=1220012913.14924.55.camel@localhost \
    --to=stanley.miao@windriver.com \
    --cc=iqbal@ti.com \
    --cc=linux-omap@vger.kernel.org \
    /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.