linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* S3C64xx backlight PWM misinited GPIO pin
@ 2009-09-24 15:23 Maurus Cuelenaere
  2009-09-28  7:43 ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Maurus Cuelenaere @ 2009-09-24 15:23 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

Are the GPIO pins used as PWM (e.g. GPF15) supposed to be set to special
function 2 in the bootloader/mach file or is this just a bug in the PWM 
driver
in current mainline?

Without doing the below, backlight PWM doesn't work for me:


static int smartq_bl_init(struct device *dev)
{
     s3c_gpio_cfgpin(S3C64XX_GPF(15), S3C_GPIO_SFN(2));

     return 0;
}

static struct platform_pwm_backlight_data smartq_backlight_data = {
...
     .init        = smartq_bl_init,
...
};


which doesn't look like it's the way to go..

Do I need to set some kind of config option (mach-hmt doesn't seem to 
need the
above change) or .. ?

Regards,

Maurus Cuelenaere

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-28 17:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-24 15:23 S3C64xx backlight PWM misinited GPIO pin Maurus Cuelenaere
2009-09-28  7:43 ` Peter Korsgaard
2009-09-28 17:31   ` Maurus Cuelenaere

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).