From: Nicolas Ferre <nicolas.ferre@atmel.com>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/2] atmel_lcdfb: Use proper blanking on negative contrast
Date: Mon, 09 Jan 2012 16:17:18 +0000 [thread overview]
Message-ID: <4F0B130E.10701@atmel.com> (raw)
In-Reply-To: <1317801598-23757-2-git-send-email-alexander.stein@systec-electronic.com>
On 10/05/2011 09:59 AM, Alexander Stein :
> If used with negative polarity the PWM unit cannot be disabled. This would
> result in a full contrast screen.
> Instead let the PWM unit enabled using 0x0 as compare value which darkens
> the display.
> In result no power saving is possible if inverted contrast polarity
> is used.
Ok, this patch looks correct.
> Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Florian, you can propagate this one upstream.
Thanks you, best regards,
> ---
> drivers/video/atmel_lcdfb.c | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c
> index 816d528..2bd75b5 100644
> --- a/drivers/video/atmel_lcdfb.c
> +++ b/drivers/video/atmel_lcdfb.c
> @@ -96,8 +96,11 @@ static int atmel_bl_update_status(struct backlight_device *bl)
> brightness = 0;
>
> lcdc_writel(sinfo, ATMEL_LCDC_CONTRAST_VAL, brightness);
> - lcdc_writel(sinfo, ATMEL_LCDC_CONTRAST_CTR,
> + if (contrast_ctr & ATMEL_LCDC_POL_POSITIVE)
> + lcdc_writel(sinfo, ATMEL_LCDC_CONTRAST_CTR,
> brightness ? contrast_ctr : 0);
> + else
> + lcdc_writel(sinfo, ATMEL_LCDC_CONTRAST_CTR, contrast_ctr);
>
> bl->props.fb_blank = bl->props.power = sinfo->bl_power = power;
>
--
Nicolas Ferre
WARNING: multiple messages have this Message-ID (diff)
From: nicolas.ferre@atmel.com (Nicolas Ferre)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] atmel_lcdfb: Use proper blanking on negative contrast polarity
Date: Mon, 09 Jan 2012 17:17:18 +0100 [thread overview]
Message-ID: <4F0B130E.10701@atmel.com> (raw)
In-Reply-To: <1317801598-23757-2-git-send-email-alexander.stein@systec-electronic.com>
On 10/05/2011 09:59 AM, Alexander Stein :
> If used with negative polarity the PWM unit cannot be disabled. This would
> result in a full contrast screen.
> Instead let the PWM unit enabled using 0x0 as compare value which darkens
> the display.
> In result no power saving is possible if inverted contrast polarity
> is used.
Ok, this patch looks correct.
> Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Florian, you can propagate this one upstream.
Thanks you, best regards,
> ---
> drivers/video/atmel_lcdfb.c | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c
> index 816d528..2bd75b5 100644
> --- a/drivers/video/atmel_lcdfb.c
> +++ b/drivers/video/atmel_lcdfb.c
> @@ -96,8 +96,11 @@ static int atmel_bl_update_status(struct backlight_device *bl)
> brightness = 0;
>
> lcdc_writel(sinfo, ATMEL_LCDC_CONTRAST_VAL, brightness);
> - lcdc_writel(sinfo, ATMEL_LCDC_CONTRAST_CTR,
> + if (contrast_ctr & ATMEL_LCDC_POL_POSITIVE)
> + lcdc_writel(sinfo, ATMEL_LCDC_CONTRAST_CTR,
> brightness ? contrast_ctr : 0);
> + else
> + lcdc_writel(sinfo, ATMEL_LCDC_CONTRAST_CTR, contrast_ctr);
>
> bl->props.fb_blank = bl->props.power = sinfo->bl_power = power;
>
--
Nicolas Ferre
next prev parent reply other threads:[~2012-01-09 16:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-05 7:59 [PATCH 1/2] atmel_lcdfb: Adjust HFP calculation so it matches the manual Alexander Stein
2011-10-05 7:59 ` Alexander Stein
2011-10-05 7:59 ` [PATCH 2/2] atmel_lcdfb: Use proper blanking on negative contrast polarity Alexander Stein
2011-10-05 7:59 ` Alexander Stein
2012-01-09 16:17 ` Nicolas Ferre [this message]
2012-01-09 16:17 ` Nicolas Ferre
2011-11-12 0:14 ` [PATCH 1/2] atmel_lcdfb: Adjust HFP calculation so it matches Florian Tobias Schandinat
2011-11-12 0:14 ` [PATCH 1/2] atmel_lcdfb: Adjust HFP calculation so it matches the manual Florian Tobias Schandinat
2012-01-09 14:21 ` [PATCH 1/2] atmel_lcdfb: Adjust HFP calculation so it matches Nicolas Ferre
2012-01-09 14:21 ` [PATCH 1/2] atmel_lcdfb: Adjust HFP calculation so it matches the manual Nicolas Ferre
2012-01-11 22:39 ` Florian Tobias Schandinat
2012-01-11 22:39 ` Florian Tobias Schandinat
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=4F0B130E.10701@atmel.com \
--to=nicolas.ferre@atmel.com \
--cc=linux-arm-kernel@lists.infradead.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.