[PATCH v7 03/11] pwm: add support for atmel-hlcdc-pwm device

2014-10-01 Thread Boris Brezillon
From: Boris BREZILLON The HLCDC IP available in some Atmel SoCs (i.e. sam9x5i.e. at91sam9n12, at91sam9x5 family or sama5d3 family) provide a PWM device. This driver add support for a PWM chip exposing a single PWM device (which will most likely be used to drive a backlight device). Signed-off-b

[PATCH v7 03/11] pwm: add support for atmel-hlcdc-pwm device

2014-10-06 Thread Thierry Reding
On Wed, Oct 01, 2014 at 04:53:00PM +0200, Boris Brezillon wrote: [...] > diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig > index b800783..afb896b 100644 > --- a/drivers/pwm/Kconfig > +++ b/drivers/pwm/Kconfig > @@ -50,6 +50,16 @@ config PWM_ATMEL > To compile this driver as a module,

[PATCH v7 03/11] pwm: add support for atmel-hlcdc-pwm device

2014-10-06 Thread Boris Brezillon
On Mon, 6 Oct 2014 12:46:35 +0200 Thierry Reding wrote: > On Wed, Oct 01, 2014 at 04:53:00PM +0200, Boris Brezillon wrote: > [...] > > diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig > > index b800783..afb896b 100644 > > --- a/drivers/pwm/Kconfig > > +++ b/drivers/pwm/Kconfig > > @@ -50,6

[PATCH v7 03/11] pwm: add support for atmel-hlcdc-pwm device

2014-10-06 Thread Thierry Reding
On Mon, Oct 06, 2014 at 01:50:09PM +0200, Boris Brezillon wrote: > On Mon, 6 Oct 2014 12:46:35 +0200 Thierry Reding gmail.com> wrote: > > On Wed, Oct 01, 2014 at 04:53:00PM +0200, Boris Brezillon wrote: [...] > > > + if (pres > ATMEL_HLCDC_PWMPS_MAX) > > > + return -EINVAL; > > > > I thin