* 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* S3C64xx backlight PWM misinited GPIO pin
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
0 siblings, 1 reply; 3+ messages in thread
From: Peter Korsgaard @ 2009-09-28 7:43 UTC (permalink / raw)
To: linux-arm-kernel
>>>>> "Maurus" == Maurus Cuelenaere <mcuelenaere@gmail.com> writes:
Maurus> Hi,
Maurus> Are the GPIO pins used as PWM (e.g. GPF15) supposed to be set
Maurus> to special function 2 in the bootloader/mach file or is this
Maurus> just a bug in the PWM driver in current mainline?
The pin configuration imho doesn't belong in the pwm driver shared
between 24xx/64xx.
Maurus> which doesn't look like it's the way to go..
To me it's OK - Ben, what do you say?
Maurus> Do I need to set some kind of config option (mach-hmt doesn't
Maurus> seem to need the above change) or .. ?
It doesn't do it because I setup the pin in the bootloader (E.G. to
display bootsplash image).
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
* S3C64xx backlight PWM misinited GPIO pin
2009-09-28 7:43 ` Peter Korsgaard
@ 2009-09-28 17:31 ` Maurus Cuelenaere
0 siblings, 0 replies; 3+ messages in thread
From: Maurus Cuelenaere @ 2009-09-28 17:31 UTC (permalink / raw)
To: linux-arm-kernel
Op 28-09-09 09:43, Peter Korsgaard schreef:
> Maurus> Are the GPIO pins used as PWM (e.g. GPF15) supposed to be set
> Maurus> to special function 2 in the bootloader/mach file or is this
> Maurus> just a bug in the PWM driver in current mainline?
>
> The pin configuration imho doesn't belong in the pwm driver shared
> between 24xx/64xx.
Agreed, but what about a 64xx (or 6410-specific if necessary) configuration?
IMHO this shouldn't go in the platform config, as the PWM GPIO pins are
fixed
for all S3C6410-based devices.
> Maurus> Do I need to set some kind of config option (mach-hmt doesn't
> Maurus> seem to need the above change) or .. ?
>
> It doesn't do it because I setup the pin in the bootloader (E.G. to
> display bootsplash image).
I suspected something like that, perhaps I should be doing this too.
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).