Signed-off-by: Bill Gatliff b...@billgatliff.com
---
drivers/leds/Kconfig | 32 ++-
drivers/leds/Makefile |3 +
drivers/leds/leds-pwm.c| 224 +++-
drivers/leds/ledtrig-dim.c | 95 +++
include/linux/pwm-led.h|
Signed-off-by: Bill Gatliff b...@billgatliff.com
---
drivers/misc/Makefile|6 +-
drivers/misc/atmel_pwm.c | 409 --
drivers/pwm/atmel-pwm.c | 633 ++
3 files changed, 638 insertions(+), 410 deletions(-)
delete
Signed-off-by: Bill Gatliff b...@billgatliff.com
---
Documentation/pwm.txt | 258 ++
drivers/pwm/pwm.c | 692 +
include/linux/pwm.h | 179 +++--
3 files changed, 1109 insertions(+), 20 deletions(-)
create mode
Signed-off-by: Bill Gatliff b...@billgatliff.com
---
drivers/Kconfig |2 ++
drivers/Makefile |2 ++
drivers/pwm/Kconfig | 30 ++
drivers/pwm/Makefile |7 +++
4 files changed, 41 insertions(+), 0 deletions(-)
create mode 100644
This patch series extends the existing PWM API into something more
generic, and adds support for hotplugging. A driver for the Atmel
SAM9263 PWMC peripheral is provided, as well as a leds-pwm wedge
and an led-dim trigger that allow the LED API to take advantage
of this new API. The code has
Guys:
How does one go about creating a git tree on git.kernel.org? I'd like
to create one there as a public repository for the PWM API stuff, and
for a couple of boards that I'd like to get into mainline.
Thanks!
b.g.
--
Bill Gatliff
b...@billgatliff.com
--
To unsubscribe from this
On Mon, Oct 19, 2009 at 03:40:44PM -0500, Bill Gatliff wrote:
Guys:
How does one go about creating a git tree on git.kernel.org? I'd like
to create one there as a public repository for the PWM API stuff, and
for a couple of boards that I'd like to get into mainline.
Step one is to get
Bill Gatliff wrote:
Guys:
How does one go about creating a git tree on git.kernel.org? I'd like
to create one there as a public repository for the PWM API stuff, and
for a couple of boards that I'd like to get into mainline.
Thanks!
b.g.
Why is it that you don't find the relevant line
On Mon, Oct 19, 2009 at 16:32, Bill Gatliff wrote:
--- a/drivers/leds/leds-pwm.c
+++ b/drivers/leds/leds-pwm.c
@@ -1,153 +1,167 @@
-/*
- * linux/drivers/leds-pwm.c
- *
- * simple PWM based LED control
- *
- * Copyright 2009 Luotao Fu @ Pengutronix (l...@pengutronix.de)
- *
- * based on
On Mon, Oct 19, 2009 at 16:32, Bill Gatliff wrote:
--- /dev/null
+++ b/drivers/pwm/gpio.c
@@ -0,0 +1,318 @@
+#define DEBUG 99
whoops
+ pr_debug(%s:%d start, %lu ticks\n,
+ dev_name(p-pwm-dev), p-chan, p-duty_ticks);
you already have a struct device, so this is just
On Mon, Oct 19, 2009 at 16:32, Bill Gatliff wrote:
+A generic PWM device framework must accomodate the substantial
accommodate
+be accomodated by the Generic PWM Device API framework.
accommodated
+bus_id -- the plaintext name of the device. Users will bind to a
plain text
+synchronize,
On Mon, Oct 19, 2009 at 16:32, Bill Gatliff wrote:
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -6,6 +6,8 @@
#
obj-y += gpio/
+obj-$(CONFIG_GENERIC_PWM) += pwm/
+
obj-$(CONFIG_PCI) += pci/
spurious new line
--- /dev/null
+++
Mike Frysinger wrote:
On Mon, Oct 19, 2009 at 16:32, Bill Gatliff wrote:
--- a/drivers/leds/leds-pwm.c
+++ b/drivers/leds/leds-pwm.c
@@ -1,153 +1,167 @@
-/*
- * linux/drivers/leds-pwm.c
- *
- * simple PWM based LED control
- *
- * Copyright 2009 Luotao Fu @ Pengutronix (l...@pengutronix.de)
Mike Frysinger wrote:
On Mon, Oct 19, 2009 at 16:32, Bill Gatliff wrote:
--- /dev/null
+++ b/drivers/pwm/gpio.c
@@ -0,0 +1,318 @@
+#define DEBUG 99
whoops
Indeed!
+ pr_debug(%s:%d start, %lu ticks\n,
+dev_name(p-pwm-dev), p-chan, p-duty_ticks);
Mike Frysinger wrote:
On Mon, Oct 19, 2009 at 16:32, Bill Gatliff wrote:
+A generic PWM device framework must accomodate the substantial
accommodate
Heh, and to think I sometimes get paid to write! :)
Similar and redundant feedback [snipped]
+synchronize, unsynchronize --
Mike Frysinger wrote:
+ ap-clk = clk_get(pdev-dev, pwm_clk);
+ if (IS_ERR(ap-clk)) {
+ pr_info(%s: clk_get error %ld\n,
+ ap-pwm.bus_id, PTR_ERR(ap-clk));
+ ret = -ENODEV;
+ goto err_clk_get;
shouldnt it be:
ret
On Mon, Oct 19, 2009 at 21:42, Bill Gatliff wrote:
Mike Frysinger wrote:
On Mon, Oct 19, 2009 at 16:32, Bill Gatliff wrote:
#include linux/pwm.h
+#include linux/pwm-led.h
if there's going to be a bunch of new pwm related headers, perhaps a
subdir makes more sense: linux/pwm/xxx
In
17 matches
Mail list logo