From: "Antonino A. Daplas" <adaplas@hotpop.com>
To: Sascha Hauer <s.hauer@pengutronix.de>, adaplas@pol.net
Cc: linux-fbdev-devel@lists.sourceforge.net
Subject: Re: [PATCH 1/2]Freescale i.MX framebuffer driver
Date: Sat, 19 Mar 2005 04:47:31 +0800 [thread overview]
Message-ID: <200503190447.34677.adaplas@hotpop.com> (raw)
In-Reply-To: <20050318175407.GA25784@metis.extern.pengutronix.de>
On Saturday 19 March 2005 01:54, Sascha Hauer wrote:
> +/*
> + * imxfb_blank():
> + * Blank the display by setting all palette values to zero. Note, the
> + * 12 and 16 bpp modes don't really use the palette, so this will not
> + * blank the display in all modes.
> + */
> +static int imxfb_blank(int blank, struct fb_info *info)
> +{
> + struct imxfb_info *fbi = info->par;
> + int i;
> +
> + pr_debug("imxfb_blank: blank=%d\n", blank);
> +
> + switch (blank) {
> + case FB_BLANK_POWERDOWN:
> + case FB_BLANK_VSYNC_SUSPEND:
> + case FB_BLANK_HSYNC_SUSPEND:
> + if (info->fix.visual == FB_VISUAL_PSEUDOCOLOR ||
> + info->fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR)
> + for (i = 0; i < fbi->palette_size; i++)
> + imxfb_setpalettereg(i, 0, 0, 0, 0, info);
> + imxfb_disable_controller(fbi);
> + break;
> +
> + case FB_BLANK_UNBLANK:
> + if (info->fix.visual == FB_VISUAL_PSEUDOCOLOR ||
> + info->fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR)
> + fb_set_cmap(&info->cmap, info);
> + imxfb_enable_controller(fbi);
> + }
> + return 0;
> +}
FB_BLANK_NORMAL? It's actually important because FB_BLANK_UNBLANK and
FB_BLANK_NORMAL are commonly requested by fbcon. FB_BLANK_NORMAL is the case
where you need to blank the screen without turning off monitor sync signals,
ie, set cmap to all black but controller is still enabled.
Tony
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
next prev parent reply other threads:[~2005-03-18 20:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-17 17:36 [PATCH 1/2]Freescale i.MX framebuffer driver Sascha Hauer
2005-03-17 19:44 ` Antonino A. Daplas
2005-03-18 11:39 ` Sascha Hauer
2005-03-18 14:14 ` Antonino A. Daplas
2005-03-18 17:54 ` Sascha Hauer
2005-03-18 18:48 ` Geert Uytterhoeven
2005-03-18 20:47 ` Antonino A. Daplas [this message]
2005-03-22 9:31 ` Sascha Hauer
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=200503190447.34677.adaplas@hotpop.com \
--to=adaplas@hotpop.com \
--cc=adaplas@pol.net \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=s.hauer@pengutronix.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