[U-Boot] [PATCH v2 08/19] tegra: Add support for PWFM

Simon Glass sjg at chromium.org
Wed Jul 11 06:45:34 CEST 2012


Hi Stephen,

On Fri, Jun 15, 2012 at 1:35 AM, Stephen Warren <swarren at wwwdotorg.org>wrote:

> On 06/13/2012 10:19 AM, Simon Glass wrote:
> > The pulse width/frequency modulation peripheral supports generating
> > a repeating pulse. It is useful for controlling LCD brightness.
>
> Surely this should be modeled as a driver that's instantiated from DT,
> which provides n PWMs. As such, I'd expect the driver to have some kind
> of init/probe function, and:
>
> > +void pwfm_enable(struct pwfm_ctlr *pwfm, int rate, int pulse_width,
> > +             int freq_divider);
>
> to take a pwm_id parameter too.
>

OK I will do something along those lines.

Regards,
Simon


More information about the U-Boot mailing list