linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: anarsoul@gmail.com (Vasily Khoruzhick)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 2/5] Add basic HP iPAQ rx1950 support
Date: Sun, 27 Sep 2009 10:10:29 +0300	[thread overview]
Message-ID: <200909271010.43474.anarsoul@gmail.com> (raw)
In-Reply-To: <20090927061802.GL31920@trinity.fluff.org>

? ????????? ?? 27 ???????? 2009 09:18:02 ????? Ben Dooks ???????:
 
> > +static int rx1950_backlight_notify(int brightness)
> > +{
> > +	static int disabled = 1;
> > +	if (!brightness) {
> > +		if (!disabled) {
> > +			s3c2410_gpio_setpin(S3C2410_GPB(0), 0);
> > +			s3c2410_gpio_pullup(S3C2410_GPB(0), 0);
> > +			s3c2410_gpio_cfgpin(S3C2410_GPB(0),
> > +				S3C2410_GPIO_OUTPUT);
> > +		}
> > +		disabled = 1;
> > +	} else {
> > +		if (disabled) {
> > +			/* LED driver need a "push" to power on */
> > +			s3c2410_gpio_setpin(S3C2410_GPB(0), 1);
> > +			s3c2410_gpio_pullup(S3C2410_GPB(0), 1);
> > +			/* Warm up backlight for one period of PWM.
> > +			 * Without this trick its almost impossible to
> > +			 * enable backlight
> > +			 */
> > +			ndelay(48000);
> > +			s3c2410_gpio_cfgpin(S3C2410_GPB(0),
> > +				S3C2410_GPB0_TOUT0);
> > +		}
> > +		disabled = 0;
> > +	}
> > +	return brightness;
> > +}
> 
> Maybe this is something that should be done in the pwm-bl driver?

Nope, it's device specific. Btw, all this code will be moved into platform 
driver that controls LCD and backlight power in future.

> > +	/* Configuring udc pullup */
> > +	s3c2410_gpio_cfgpin(S3C2440_GPJ5, S3C2410_GPIO_OUTPUT);
> 
> please use gpiolib interface, we're moving away from specific gpio set
> interface.

I'd like to, but gpiolib interface doesn't support GPJ port :(
  
Thanks for review!

Regards
Vasily
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20090927/b16a0b10/attachment.sig>

      reply	other threads:[~2009-09-27  7:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-26 21:03 [PATCH v2 2/5] Add basic HP iPAQ rx1950 support Vasily Khoruzhick
2009-09-27  6:18 ` Ben Dooks
2009-09-27  7:10   ` Vasily Khoruzhick [this message]

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=200909271010.43474.anarsoul@gmail.com \
    --to=anarsoul@gmail.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 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).