RE: [PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-02-27 Thread Chew, Chiau Ee
Fun > Subject: Re: [PATCH] pwm: add support for Intel Low Power Subsystem PWM > > On Thu, Feb 27, 2014 at 09:03:41AM +, Chew, Chiau Ee wrote: > > > > > +static int pwm_lpss_probe(struct platform_device *pdev) { > > > > > + struct devic

Re: [PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-02-27 Thread Mika Westerberg
On Thu, Feb 27, 2014 at 09:03:41AM +, Chew, Chiau Ee wrote: > > > > +static int pwm_lpss_probe(struct platform_device *pdev) { > > > > + struct device *dev = >dev; > > > > + struct pwm_lpss_chip *lpwm; > > > > + int ret; > > > > + > > > > + lpwm = dev_get_platdata(dev);

RE: [PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-02-27 Thread Chew, Chiau Ee
Fun > Subject: Re: [PATCH] pwm: add support for Intel Low Power Subsystem PWM > > On Wed, Feb 26, 2014 at 03:38:23PM +0100, Thierry Reding wrote: > > On Tue, Jan 21, 2014 at 02:00:08AM +0800, Chew Chiau Ee wrote: > > [...] > > > diff --git a

Re: [PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-02-27 Thread Mika Westerberg
On Wed, Feb 26, 2014 at 03:38:23PM +0100, Thierry Reding wrote: > On Tue, Jan 21, 2014 at 02:00:08AM +0800, Chew Chiau Ee wrote: > [...] > > diff --git a/drivers/pwm/pwm-lpss.c b/drivers/pwm/pwm-lpss.c > [...] > > +/* > > + * Intel Low Power Subsystem PWM controller driver > > + * > > + *

Re: [PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-02-27 Thread Mika Westerberg
On Wed, Feb 26, 2014 at 03:38:23PM +0100, Thierry Reding wrote: On Tue, Jan 21, 2014 at 02:00:08AM +0800, Chew Chiau Ee wrote: [...] diff --git a/drivers/pwm/pwm-lpss.c b/drivers/pwm/pwm-lpss.c [...] +/* + * Intel Low Power Subsystem PWM controller driver + * + * Copyright (C) 2014,

RE: [PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-02-27 Thread Chew, Chiau Ee
] pwm: add support for Intel Low Power Subsystem PWM On Wed, Feb 26, 2014 at 03:38:23PM +0100, Thierry Reding wrote: On Tue, Jan 21, 2014 at 02:00:08AM +0800, Chew Chiau Ee wrote: [...] diff --git a/drivers/pwm/pwm-lpss.c b/drivers/pwm/pwm-lpss.c [...] +/* + * Intel Low Power

Re: [PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-02-27 Thread Mika Westerberg
On Thu, Feb 27, 2014 at 09:03:41AM +, Chew, Chiau Ee wrote: +static int pwm_lpss_probe(struct platform_device *pdev) { + struct device *dev = pdev-dev; + struct pwm_lpss_chip *lpwm; + int ret; + + lpwm = dev_get_platdata(dev); struct

RE: [PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-02-27 Thread Chew, Chiau Ee
] pwm: add support for Intel Low Power Subsystem PWM On Thu, Feb 27, 2014 at 09:03:41AM +, Chew, Chiau Ee wrote: +static int pwm_lpss_probe(struct platform_device *pdev) { + struct device *dev = pdev-dev; + struct pwm_lpss_chip *lpwm; + int ret

Re: [PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-02-26 Thread Thierry Reding
On Tue, Jan 21, 2014 at 02:00:08AM +0800, Chew Chiau Ee wrote: [...] > diff --git a/drivers/pwm/pwm-lpss.c b/drivers/pwm/pwm-lpss.c [...] > +/* > + * Intel Low Power Subsystem PWM controller driver > + * > + * Copyright (C) 2014, Intel Corporation > + * Author: Mika Westerberg > + * Author: Chew

Re: [PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-02-26 Thread Thierry Reding
On Tue, Jan 21, 2014 at 02:00:08AM +0800, Chew Chiau Ee wrote: [...] diff --git a/drivers/pwm/pwm-lpss.c b/drivers/pwm/pwm-lpss.c [...] +/* + * Intel Low Power Subsystem PWM controller driver + * + * Copyright (C) 2014, Intel Corporation + * Author: Mika Westerberg

RE: [PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-02-18 Thread Chew, Chiau Ee
hang, Rebecca Swee Fun > Subject: Re: [PATCH] pwm: add support for Intel Low Power Subsystem PWM > > On Tue, Jan 21, 2014 at 08:43:39PM +0100, Thierry Reding wrote: > > The idea behind this is that only a single user can have access to a > > given PWM device at a time. The PWM

RE: [PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-02-18 Thread Chew, Chiau Ee
Subject: Re: [PATCH] pwm: add support for Intel Low Power Subsystem PWM On Tue, Jan 21, 2014 at 08:43:39PM +0100, Thierry Reding wrote: The idea behind this is that only a single user can have access to a given PWM device at a time. The PWM device's PWMF_REQUESTED flag is set (and cleared

Re: [PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-01-23 Thread One Thousand Gnomes
> Does that clarify things? Yes -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-01-23 Thread One Thousand Gnomes
Does that clarify things? Yes -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-01-22 Thread Mika Westerberg
On Tue, Jan 21, 2014 at 08:43:39PM +0100, Thierry Reding wrote: > The idea behind this is that only a single user can have access to a > given PWM device at a time. The PWM device's PWMF_REQUESTED flag is set > (and cleared) under the pwm_lock and any subsequent users will not be > able to use

Re: [PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-01-22 Thread Mika Westerberg
On Tue, Jan 21, 2014 at 08:43:39PM +0100, Thierry Reding wrote: The idea behind this is that only a single user can have access to a given PWM device at a time. The PWM device's PWMF_REQUESTED flag is set (and cleared) under the pwm_lock and any subsequent users will not be able to use that

Re: [PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-01-21 Thread Thierry Reding
On Tue, Jan 21, 2014 at 10:52:36AM +0200, Mika Westerberg wrote: > On Mon, Jan 20, 2014 at 01:28:14PM +, One Thousand Gnomes wrote: > > > +static int pwm_lpss_config(struct pwm_chip *chip, struct pwm_device *pwm, > > > + int duty_ns, int period_ns) > > > +{ > > > + struct pwm_lpss_chip *lpwm =

Re: [PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-01-21 Thread Mika Westerberg
On Mon, Jan 20, 2014 at 01:28:14PM +, One Thousand Gnomes wrote: > > +static int pwm_lpss_config(struct pwm_chip *chip, struct pwm_device *pwm, > > + int duty_ns, int period_ns) > > +{ > > + struct pwm_lpss_chip *lpwm = to_lpwm(chip); > > + u8 on_time_div; > > + unsigned long c =

Re: [PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-01-21 Thread Mika Westerberg
On Mon, Jan 20, 2014 at 01:28:14PM +, One Thousand Gnomes wrote: +static int pwm_lpss_config(struct pwm_chip *chip, struct pwm_device *pwm, + int duty_ns, int period_ns) +{ + struct pwm_lpss_chip *lpwm = to_lpwm(chip); + u8 on_time_div; + unsigned long c =

Re: [PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-01-21 Thread Thierry Reding
On Tue, Jan 21, 2014 at 10:52:36AM +0200, Mika Westerberg wrote: On Mon, Jan 20, 2014 at 01:28:14PM +, One Thousand Gnomes wrote: +static int pwm_lpss_config(struct pwm_chip *chip, struct pwm_device *pwm, + int duty_ns, int period_ns) +{ + struct pwm_lpss_chip *lpwm =

Re: [PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-01-20 Thread One Thousand Gnomes
> +static int pwm_lpss_config(struct pwm_chip *chip, struct pwm_device *pwm, > + int duty_ns, int period_ns) > +{ > + struct pwm_lpss_chip *lpwm = to_lpwm(chip); > + u8 on_time_div; > + unsigned long c = clk_get_rate(lpwm->clk); > + unsigned long long base_unit, hz =

[PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-01-20 Thread Chew Chiau Ee
From: Mika Westerberg Add support for Intel Low Power I/O subsystem PWM controllers found on Intel BayTrail SoC. Signed-off-by: Mika Westerberg Signed-off-by: Chew, Kean Ho Signed-off-by: Chang, Rebecca Swee Fun Signed-off-by: Chew, Chiau Ee --- drivers/pwm/Kconfig| 10 +++

Re: [PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-01-20 Thread One Thousand Gnomes
+static int pwm_lpss_config(struct pwm_chip *chip, struct pwm_device *pwm, + int duty_ns, int period_ns) +{ + struct pwm_lpss_chip *lpwm = to_lpwm(chip); + u8 on_time_div; + unsigned long c = clk_get_rate(lpwm-clk); + unsigned long long base_unit, hz = 10UL; +

[PATCH] pwm: add support for Intel Low Power Subsystem PWM

2014-01-20 Thread Chew Chiau Ee
From: Mika Westerberg mika.westerb...@linux.intel.com Add support for Intel Low Power I/O subsystem PWM controllers found on Intel BayTrail SoC. Signed-off-by: Mika Westerberg mika.westerb...@linux.intel.com Signed-off-by: Chew, Kean Ho kean.ho.c...@intel.com Signed-off-by: Chang, Rebecca Swee