Re: cross-compiling alternatives (was Re: [PATCH 0/1] Embedded Maintainer(s)...)

2008-06-12 Thread Bill Gatliff
. -- Bill Gatliff [EMAIL PROTECTED] -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

[RFC 2/6] [PWM] Changes to existing include/linux/pwm.h to adapt to generic PWM API

2008-10-08 Thread Bill Gatliff
Signed-off-by: Bill Gatliff [EMAIL PROTECTED] --- include/linux/pwm.h | 168 -- 1 files changed, 147 insertions(+), 21 deletions(-) diff --git a/include/linux/pwm.h b/include/linux/pwm.h index 3945f80..d3d18f7 100644 --- a/include/linux/pwm.h

[RFC 5/6] [PWM] Install new Atmel PWMC driver in Kconfig, expunge old one

2008-10-08 Thread Bill Gatliff
Signed-off-by: Bill Gatliff [EMAIL PROTECTED] --- arch/arm/Kconfig |2 + drivers/Makefile |2 + drivers/misc/Kconfig |9 - drivers/misc/Makefile|1 - drivers/misc/atmel_pwm.c | 409 -- drivers/pwm/Kconfig

[RFC 1/6] [PWM] Generic PWM API implementation

2008-10-08 Thread Bill Gatliff
Signed-off-by: Bill Gatliff [EMAIL PROTECTED] --- drivers/pwm/pwm.c | 667 + 1 files changed, 667 insertions(+), 0 deletions(-) create mode 100644 drivers/pwm/pwm.c diff --git a/drivers/pwm/pwm.c b/drivers/pwm/pwm.c new file mode 100644

[RFC 4/6] [PWM] Driver for Atmel PWMC peripheral

2008-10-08 Thread Bill Gatliff
Signed-off-by: Bill Gatliff [EMAIL PROTECTED] --- drivers/pwm/atmel-pwm.c | 631 +++ 1 files changed, 631 insertions(+), 0 deletions(-) create mode 100644 drivers/pwm/atmel-pwm.c diff --git a/drivers/pwm/atmel-pwm.c b/drivers/pwm/atmel-pwm.c new

Re: [RFC 0/6] Proposal for a Generic PWM Device API

2008-10-08 Thread Bill Gatliff
Mike Frysinger wrote: On Wed, Oct 8, 2008 at 12:43, Bill Gatliff wrote: This series proposes a generic PWM driver API. seems that the API is solely geared to handle PWM as an output signal. True. The peripherals I'm currently targeting are output-only devices, and the API reflects

Re: [RFC 0/6] Proposal for a Generic PWM Device API

2008-10-08 Thread Bill Gatliff
Bill Gatliff wrote: all the utility config functions lack set in their name. it's a little confusing as to whether the function is a get or set at first glance. For the record, I can support adding a set to the function names. b.g. -- Bill Gatliff [EMAIL PROTECTED] -- To unsubscribe

Re: [RFC 0/6] Proposal for a Generic PWM Device API

2008-10-08 Thread Bill Gatliff
aren't going to get a measured value in return! b.g. -- Bill Gatliff [EMAIL PROTECTED] -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [RFC 0/6] Proposal for a Generic PWM Device API

2008-10-08 Thread Bill Gatliff
a (simultaneous) measurement mode, or cached values if the device's configuration registers were write-only. In measurement mode, they'd return the measured values. I think this'll work. b.g. -- Bill Gatliff [EMAIL PROTECTED] -- To unsubscribe from this list: send the line unsubscribe linux-embedded

Re: [RFC 5/6] [PWM] Install new Atmel PWMC driver in Kconfig, expunge old one

2008-10-09 Thread Bill Gatliff
the led-pwm stuff I posted to use the led-blink API. b.g. -- Bill Gatliff [EMAIL PROTECTED] -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [RFC 5/6] [PWM] Install new Atmel PWMC driver in Kconfig, expunge old one

2008-10-09 Thread Bill Gatliff
help me slide into insanity a little more slowly. :) (I have some PPC and MIPS boards, too. Occupational hazard). b.g. -- Bill Gatliff [EMAIL PROTECTED] -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to [EMAIL PROTECTED] More majordomo

Re: [RFC 0/6] Proposal for a Generic PWM Device API

2008-10-10 Thread Bill Gatliff
note on l-a-k, linuxppc-dev and elsewhere that refers those interested to the actual content. I can live with that. b.g. -- Bill Gatliff [EMAIL PROTECTED] -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to [EMAIL PROTECTED] More majordomo info

Re: [RFC 0/6] Proposal for a Generic PWM Device API

2008-10-10 Thread Bill Gatliff
they would have something to add, too. I'm beginning to appreciate what everyone must have had to deal with for GPIO. :) b.g. -- Bill Gatliff [EMAIL PROTECTED] -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to [EMAIL PROTECTED] More majordomo info

Re: [RFC 0/6] Proposal for a Generic PWM Device API

2008-10-10 Thread Bill Gatliff
Paul Mundt wrote: On Fri, Oct 10, 2008 at 09:03:34AM -0500, Bill Gatliff wrote: Paul Mundt wrote: This is likely because some of those lists are subscribers only, so cross posting is poor form. It makes sense to keep the discussion in one place, and to send notification messages

Re: [RFC 0/6] Proposal for a Generic PWM Device API

2008-10-10 Thread Bill Gatliff
the ARM people. Sounds like the ARM people need you to drop by and help them do a better job. Sounds like you could directly benefit from their doing a better job, too. Win-win. b.g. -- Bill Gatliff [EMAIL PROTECTED] -- To unsubscribe from this list: send the line unsubscribe linux-embedded

Re: Getting physical addresses of mmap'd pages from userspace

2008-10-13 Thread Bill Gatliff
Robert Schwebel wrote: In reality, there are no real alternatives for accelerates chips. Would the Silicon Motion SM50x chips qualify as an alternative? They can do the blitting, at least. No OpenGL, tho. So, I guess it depends on your definition of accelerated... b.g. -- Bill Gatliff

Re: Getting physical addresses of mmap'd pages from userspace

2008-10-14 Thread Bill Gatliff
must be an investment in something that nets a larger return to the vendor of the documents in question. What might that be? Hmmm Just my US$0.02. You can keep the change. :) b.g. -- Bill Gatliff [EMAIL PROTECTED] -- To unsubscribe from this list: send the line unsubscribe linux-embedded

[PATCH 0/6] Generic PWM API implementation

2008-10-15 Thread Bill Gatliff
been run-tested on a Cogent CSB737 (AT91SAM9263), mated to a custom circuit that drives multiple DC motors and sensors. Feedback is welcome! b.g. -- Bill Gatliff [EMAIL PROTECTED] --- Bill Gatliff (6): [PWM] Generic PWM API implementation [PWM] Changes to existing include/linux/pwm.h

[PATCH 5/6] [PWM] Install new Atmel PWMC driver in Kconfig, expunge old one

2008-10-15 Thread Bill Gatliff
Signed-off-by: Bill Gatliff [EMAIL PROTECTED] --- arch/arm/Kconfig |2 + drivers/Makefile |2 + drivers/misc/Kconfig |9 - drivers/misc/Makefile|1 - drivers/misc/atmel_pwm.c | 409 -- drivers/pwm/Kconfig

[PATCH 3/6] [PWM] Documentation

2008-10-15 Thread Bill Gatliff
Signed-off-by: Bill Gatliff [EMAIL PROTECTED] --- Documentation/pwm.txt | 258 + 1 files changed, 258 insertions(+), 0 deletions(-) create mode 100644 Documentation/pwm.txt diff --git a/Documentation/pwm.txt b/Documentation/pwm.txt new file mode

[PATCH 1/6] [PWM] Generic PWM API implementation

2008-10-15 Thread Bill Gatliff
a callback function that the API will invoke in a worker thread at the end of the PWM period. Signed-off-by: Bill Gatliff [EMAIL PROTECTED] --- drivers/pwm/pwm.c | 681 + 1 files changed, 681 insertions(+), 0 deletions(-) create mode 100644

[PATCH 2/6] [PWM] Changes to existing include/linux/pwm.h to adapt to generic PWM API

2008-10-15 Thread Bill Gatliff
Modifications to the existing include/linux/pwm.h file for the generic PWM API. Signed-off-by: Bill Gatliff [EMAIL PROTECTED] --- include/linux/pwm.h | 172 -- 1 files changed, 151 insertions(+), 21 deletions(-) diff --git a/include/linux/pwm.h b

[PATCH 6/6] [PWM] New LED driver and trigger that use PWM API

2008-10-15 Thread Bill Gatliff
of the LED change as system load changes. Signed-off-by: Bill Gatliff [EMAIL PROTECTED] --- drivers/leds/Kconfig | 24 +-- drivers/leds/Makefile |2 + drivers/leds/leds-pwm.c| 167 drivers/leds/ledtrig-dim.c | 95

Re: Getting physical addresses of mmap'd pages from userspace

2008-10-15 Thread Bill Gatliff
Robert Schwebel wrote: Your argumentation neglects the possibility that vendors just do it the way they always did. Don't assume that some intelligent life form has mandatorily taken an intentional decision :) D'oh! Good point. :) b.g. -- Bill Gatliff [EMAIL PROTECTED] -- To unsubscribe

Re: UIO - interrupt performance

2008-10-20 Thread Bill Gatliff
unpleasant UIO experience. b.g. -- Bill Gatliff [EMAIL PROTECTED] -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: UIO - interrupt performance

2008-10-21 Thread Bill Gatliff
license conditions. At least it's legal gray area. Note that it's not my intention to start a discussion on that. Then I will only contradict you, and not cite my supporting evidence. :) b.g. -- Bill Gatliff [EMAIL PROTECTED] -- To unsubscribe from this list: send the line unsubscribe linux

Re: [PATCH 1/6] [PWM] Generic PWM API implementation

2008-11-04 Thread Bill Gatliff
you'd prefer to see those implemented before moving to mainline though ? Sounds like if we can get a git tree on kernel.org, then the first stop would be my pulling the code into the tree, and then asking Linus to do a pull. To which is response will probably be: Bill who? :) b.g. -- Bill

Re: [PATCH/RFC] Add Alternative Log Buffer Support for printk Messages

2008-11-25 Thread Bill Gatliff
--- mostly because my impression until now was that the available implementations were both closed-source, and not supporting embedded, non-PPC targets like ARM. b.g. -- Bill Gatliff [EMAIL PROTECTED] -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message

Re: [Ksummit-2009-discuss] Representing Embedded Architectures at the Kernel Summit

2009-06-02 Thread Bill Gatliff
a hand in helping to represent the embedded issues... b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Representing Embedded Architectures at the Kernel Summit

2009-06-02 Thread Bill Gatliff
it was under 2.4, so we're making progress. b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: flicker free booting

2009-07-31 Thread Bill Gatliff
online. And if the driver was in a demand-loaded module, then the static image wouldn't disappear until just before the application that does the animation was ready to start drawing. b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe

Re: flicker free booting

2009-07-31 Thread Bill Gatliff
and similar, where it takes two or three seconds just to load and uncompress the kernel from NOR or NAND flash. And add a second or so on top of that to zeroinit the graphics framebuffer, if your display is of any decent size and depth. b.g. -- Bill Gatliff b...@billgatliff.com

Re: flicker free booting

2009-07-31 Thread Bill Gatliff
, and verify that the configuration matches what the parameter specifies before making changes. That way you could use framebuffer= to communicate the desired setup to the driver in cases where the hardware wasn't already initialized. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe

Re: flicker free booting

2009-07-31 Thread Bill Gatliff
Tim Bird wrote: Bill Gatliff wrote: Those fractions-of-seconds boot times are beyond the reach of the 200 MHz-class ARM9 processors and similar, where it takes two or three seconds just to load and uncompress the kernel from NOR or NAND flash. While I don't disagree from a practical

[[RFC] 4/5] An LED dimmer trigger, which uses the PWM API to vary the brightness of an LED according to system load

2009-10-19 Thread Bill Gatliff
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

[[RFC] 3/5] Expunge old Atmel PWMC driver, replacing it with one that conforms to the PWM API

2009-10-19 Thread Bill Gatliff
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

[[RFC] 1/5] API to consolidate PWM devices behind a common user and kernel interface

2009-10-19 Thread Bill Gatliff
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

[[RFC] 5/5] Incorporate PWM API code into KBuild

2009-10-19 Thread Bill Gatliff
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 drivers/pwm

[[RFC] 0/5] Generic PWM API Proposal

2009-10-19 Thread Bill Gatliff
). The author wishes to express his appreciation to Russell King, David Brownell, Ulf Samuelsson, Eric Maio, Haavard Skinnemoen, and others who helped him formulate the API and reviewed early releases of the code. Bill Gatliff (5): API to consolidate PWM devices behind a common user and kernel

How to create a git repo on git.kernel.org?

2009-10-19 Thread Bill Gatliff
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 list

Re: How to create a git repo on git.kernel.org?

2009-10-19 Thread Bill Gatliff
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

Re: [[RFC] 4/5] An LED dimmer trigger, which uses the PWM API to vary the brightness of an LED according to system load

2009-10-19 Thread Bill Gatliff
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

Re: [[RFC] 2/5] Emulates PWM hardware using a high-resolution timer and a GPIO pin

2009-10-19 Thread Bill Gatliff
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

Re: [[RFC] 1/5] API to consolidate PWM devices behind a common user and kernel interface

2009-10-19 Thread Bill Gatliff
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

Re: [[RFC] 3/5] Expunge old Atmel PWMC driver, replacing it with one that conforms to the PWM API

2009-10-19 Thread Bill Gatliff
= PTR_ERR(ap-clk); Probably, because it's preferable to return the actual error code when it's known, rather than translating all error codes to -ENODEV. Good catch. b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded

Re: [PATCH 0/6] Generic PWM API implementation

2009-11-17 Thread Bill Gatliff
. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 0/6] Generic PWM API implementation

2009-11-17 Thread Bill Gatliff
on AA25 please! No, I don't know who SCL1 is nor where AA25 is. I'll be waiting. :) b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH 0/6] Generic PWM API implementation

2009-11-17 Thread Bill Gatliff
that API talks to the GPIO API or to a different driver if you change your mind. Same idea for the PWM API. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [[RFC] 2/5] Emulates PWM hardware using a high-resolution timer and a GPIO pin

2009-11-17 Thread Bill Gatliff
there will be very visual when it occurs. Dimming control of LEDs and incandescent lamps can be very forgiving of jitter, but I was thinking more along the lines of make this LED blink faster or slower when I came up with the implementation. b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from

Re: [PATCH 0/6] Generic PWM API implementation

2009-11-23 Thread Bill Gatliff
enough in practice to be worth the effort. I'm not saying it can't be done, just that it isn't my focus. Yours? :) b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord...@vger.kernel.org More

Re: [POWER] battery calibration parameters from sysfs

2009-12-14 Thread Bill Gatliff
the coulomb-counting chip connected to a tiny microcontroller, or even a dedicated hardware counter? Then the main CPU wouldn't need to wake as often, it could just ask the microcontroller over I2C, or read/reset the hardware counter. b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from

[PWM PATCH 0/5] Implements a common PWM API

2010-02-01 Thread Bill Gatliff
This patch series implements a common PWM API. This series incorporates the feedback from the linux-embedded mailing list and elsewhere; the author greatly appreciates the efforts of everyone who reviewed the previous version of this code. Bill Gatliff (5): API to consolidate PWM devices

[PWM PATCH 2/5] Emulates PWM hardware using a high-resolution timer and a GPIO pin

2010-02-01 Thread Bill Gatliff
Signed-off-by: Bill Gatliff b...@billgatliff.com --- drivers/pwm/gpio.c | 307 1 files changed, 307 insertions(+), 0 deletions(-) create mode 100644 drivers/pwm/gpio.c diff --git a/drivers/pwm/gpio.c b/drivers/pwm/gpio.c new file mode

[PWM PATCH 5/5] LED dimmer trigger

2010-02-01 Thread Bill Gatliff
Signed-off-by: Bill Gatliff b...@billgatliff.com --- drivers/leds/ledtrig-dim.c | 95 1 files changed, 95 insertions(+), 0 deletions(-) create mode 100644 drivers/leds/ledtrig-dim.c diff --git a/drivers/leds/ledtrig-dim.c b/drivers/leds/ledtrig

[PWM PATCH 3/5] Expunge old Atmel PWMC driver, replacing it with one that conforms to the PWM API

2010-02-01 Thread Bill Gatliff
Signed-off-by: Bill Gatliff b...@billgatliff.com --- drivers/misc/Makefile|6 +- drivers/misc/atmel_pwm.c | 409 drivers/pwm/atmel-pwm.c | 589 ++ 3 files changed, 594 insertions(+), 410 deletions(-) delete

Re: [PWM PATCH 0/5] Implements a common PWM API

2010-02-02 Thread Bill Gatliff
doubly sure they are present in the next (final?) posting... b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PWM PATCH 3/5] Expunge old Atmel PWMC driver, replacing it with one that conforms to the PWM API

2010-02-02 Thread Bill Gatliff
provided. b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PWM PATCH 1/5] API to consolidate PWM devices behind a common user and kernel interface

2010-02-02 Thread Bill Gatliff
rebasing. Nitpick... Can you move the #ifndef/#define to after the comment? I did that in all the others, I guess I missed this one... b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord

Re: [PWM PATCH 1/5] API to consolidate PWM devices behind a common user and kernel interface

2010-02-03 Thread Bill Gatliff
. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PWM PATCH 1/5] API to consolidate PWM devices behind a common user and kernel interface

2010-02-04 Thread Bill Gatliff
Bill Gatliff wrote: H Hartley Sweeten wrote: Your older patch just used printk's to output the messages. I think the Oops is being caused by the dev_level(pwm-dev, ...). Where is pwm-dev being setup? The intention was to save the result from device_create() called from

[PWM PATCH 4/7] Implements PWM-based LED control

2010-02-09 Thread Bill Gatliff
Signed-off-by: Bill Gatliff b...@billgatliff.com --- drivers/leds/leds-pwm.c | 224 --- include/linux/pwm/pwm-led.h | 33 +++ 2 files changed, 157 insertions(+), 100 deletions(-) create mode 100644 include/linux/pwm/pwm-led.h diff --git

[PWM PATCH 7/7] PWM API driver for MPC52xx GPT peripheral

2010-02-09 Thread Bill Gatliff
Signed-off-by: Bill Gatliff b...@billgatliff.com --- arch/powerpc/platforms/52xx/mpc52xx_gpt.c | 195 - 1 files changed, 193 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/52xx/mpc52xx_gpt.c b/arch/powerpc/platforms/52xx/mpc52xx_gpt.c index

[PWM PATCH 2/7] Emulates PWM hardware using a high-resolution timer and a GPIO pin

2010-02-09 Thread Bill Gatliff
Signed-off-by: Bill Gatliff b...@billgatliff.com --- drivers/pwm/gpio.c | 312 1 files changed, 312 insertions(+), 0 deletions(-) create mode 100644 drivers/pwm/gpio.c diff --git a/drivers/pwm/gpio.c b/drivers/pwm/gpio.c new file mode

[PWM PATCH 5/7] LED dim trigger based on PWM control of the LED

2010-02-09 Thread Bill Gatliff
Signed-off-by: Bill Gatliff b...@billgatliff.com --- drivers/leds/ledtrig-dim.c | 95 1 files changed, 95 insertions(+), 0 deletions(-) create mode 100644 drivers/leds/ledtrig-dim.c diff --git a/drivers/leds/ledtrig-dim.c b/drivers/leds/ledtrig

[PWM PATCH 1/7] API to consolidate PWM devices behind a common user and kernel interface

2010-02-09 Thread Bill Gatliff
Signed-off-by: Bill Gatliff b...@billgatliff.com --- Documentation/pwm.txt | 260 +++ drivers/pwm/pwm.c | 644 +++ include/linux/pwm.h | 31 --- include/linux/pwm/pwm.h | 170 + 4 files changed, 1074

Re: [PWM PATCH 1/7] API to consolidate PWM devices behind a common user and kernel interface

2010-02-09 Thread Bill Gatliff
Thanks sooo much for your reviews! b.g. -- Bill Gatliff Embedded systems training and consulting http://billgatliff.com b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [PWM PATCH 1/7] API to consolidate PWM devices behind a common user and kernel interface

2010-02-09 Thread Bill Gatliff
Bill Gatliff wrote: + + p-requester = requester; + if (!strcmp(requester, REQUEST_SYSFS)) + p-pid = current-pid; This is new.. What's the reason for saving the pid? I've gotten complaints from those who say, Ok, so it reported 'sysfs' back to me

Re: [PWM PATCH 2/7] Emulates PWM hardware using a high-resolution timer and a GPIO pin

2010-02-10 Thread Bill Gatliff
anyway. b.g. -- Bill Gatliff Embedded systems training and consulting http://billgatliff.com b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

Re: [PWM PATCH 1/5] API to consolidate PWM devices behind a common user and kernel interface

2010-02-11 Thread Bill Gatliff
. It isn't necessarily the case that the user cares, but I was thinking that having the API allow for different polarity might prevent some applications having to optionally do the %duty vs. 100-%duty conversion themselves. b.g. -- Bill Gatliff Embedded systems training and consulting http

A better way to sequence driver initialization?

2010-04-09 Thread Bill Gatliff
this is a stupid idea, I might post it to lkml. Now's your chance! :) b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: A better way to sequence driver initialization?

2010-04-09 Thread Bill Gatliff
Bill Gatliff wrote: If someone doesn't tell me this is a stupid idea, I might post it to lkml. Now's your chance! :) So I went ahead and tried it anyway: $ git diff init/main.c diff --git a/init/main.c b/init/main.c index dac44a9..1461d09 100644 --- a/init/main.c +++ b/init/main.c

Re: A better way to sequence driver initialization?

2010-04-09 Thread Bill Gatliff
Bill Gatliff wrote: Maybe there are fewer places that would need wait queues than I originally thought! At least for drivers that use the device API, kset_find_obj() might be the only place that needs to wait until a device or bus appears. ... and kset_register() might be the only place

Re: A better way to sequence driver initialization?

2010-04-10 Thread Bill Gatliff
own kthread_run() is a solution, either. I'll keep tinkering. :) b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

Re: A better way to sequence driver initialization?

2010-04-10 Thread Bill Gatliff
tracking? I can't even implement that without a context that can sleep... b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: A better way to sequence driver initialization?

2010-04-10 Thread Bill Gatliff
to have to settle for now with kthreading my probes that might want to sleep, and adding a wait queue to gpio_request() and a few others. It ain't perfect, but it is achieveable. *sigh* b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux

Planning on updating the PWM patches soon...

2010-08-02 Thread Bill Gatliff
, b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PWM 09/10] Build pwm.o only if CONFIG_GENERIC_PWM is set

2010-10-01 Thread Bill Gatliff
Signed-off-by: Bill Gatliff b...@billgatliff.com --- drivers/pwm/Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/pwm/Makefile b/drivers/pwm/Makefile index e8cacc5..5f29752 100644 --- a/drivers/pwm/Makefile +++ b/drivers/pwm/Makefile @@ -1,6 +1,6

[PWM 02/10] Emulates PWM hardware using a high-resolution timer and a GPIO pin

2010-10-01 Thread Bill Gatliff
Signed-off-by: Bill Gatliff b...@billgatliff.com --- drivers/pwm/gpio.c | 298 1 files changed, 298 insertions(+), 0 deletions(-) create mode 100644 drivers/pwm/gpio.c diff --git a/drivers/pwm/gpio.c b/drivers/pwm/gpio.c new file mode 100644

[PWM 06/10] Incorporate PWM API code into KBuild

2010-10-01 Thread Bill Gatliff
Signed-off-by: Bill Gatliff b...@billgatliff.com --- drivers/Kconfig |2 ++ drivers/Makefile |2 ++ drivers/leds/Kconfig | 22 -- drivers/leds/Makefile |2 ++ drivers/pwm/Kconfig | 28 drivers/pwm/Makefile |6

[PWM 10/10] Expunge previous driver for PXA PWM

2010-10-01 Thread Bill Gatliff
Signed-off-by: Bill Gatliff b...@billgatliff.com --- arch/arm/mach-pxa/Kconfig | 26 ++-- arch/arm/plat-pxa/Makefile |1 - arch/arm/plat-pxa/pwm.c| 304 drivers/pwm/Kconfig|8 + drivers/pwm/Makefile |1 + 5 files

[PWM 01/10] API to consolidate PWM devices behind a common user and kernel interface

2010-10-01 Thread Bill Gatliff
Signed-off-by: Bill Gatliff b...@billgatliff.com --- Documentation/pwm.txt | 260 +++ drivers/pwm/pwm.c | 635 +++ include/linux/pwm.h | 31 --- include/linux/pwm/pwm.h | 128 ++ 4 files changed, 1023 insertions

Re: [PWM 01/10] API to consolidate PWM devices behind a common user and kernel interface

2010-10-06 Thread Bill Gatliff
On Fri, Oct 1, 2010 at 5:00 PM, Kevin Hilman khil...@deeprootsystems.com wrote: Bill Gatliff b...@billgatliff.com writes: Signed-off-by: Bill Gatliff b...@billgatliff.com Hi Bill, Any plans to post this to a broader audience?  maybe linux-arm-kernel? I was thinking that the appropriate

Re: [PWM 01/10] API to consolidate PWM devices behind a common user and kernel interface

2010-10-06 Thread Bill Gatliff
nowhere. :( b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PWM 01/10] API to consolidate PWM devices behind a common user and kernel interface

2010-10-06 Thread Bill Gatliff
. b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Generic PWM git tree rebased; please resend me your patches

2010-10-21 Thread Bill Gatliff
(or send me a pull request). I'm trying to get all of your patches merged, but many of them aren't going in without conflicts. Sorry for the extra work. Thanks very much! b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded

Re: [PWM 01/10] API to consolidate PWM devices behind a common user and kernel interface

2010-10-21 Thread Bill Gatliff
Grant: On Wed, Oct 20, 2010 at 2:32 PM, Bill Gatliff b...@billgatliff.com wrote: Yeah, by changing to using class attributes, a lot of this could end up going away. Looking at that now, in fact. Going to class device attributes did the trick. Thanks for pointing me in the right direction

Avoiding platform-specific callbacks in drivers?

2010-11-09 Thread Bill Gatliff
, and post code and feedback. b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Avoiding platform-specific callbacks in drivers?

2010-11-09 Thread Bill Gatliff
was there; it just took an expert like Nicolas Pitre to point out the obvious to me. I can be so dense sometimes! :) b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord...@vger.kernel.org More majordomo info

[PWM v3: 1/3] PWM: Implement a generic PWM framework

2011-02-10 Thread Bill Gatliff
as time permits. Eventually, the current PWM implementation will be deprecated and then expunged. Signed-off-by: Bill Gatliff b...@billgatliff.com --- Documentation/pwm.txt | 277 + drivers/Kconfig |2 + drivers/Makefile|2 + drivers/pwm/Kconfig

[PWM v3: 2/3] PWM: GPIO+hrtimer device emulation

2011-02-10 Thread Bill Gatliff
and unrequesting the pwm_channel under sysfs as usual; then do: # rm -rf /config/gpio_pwm/gpio number Signed-off-by: Bill Gatliff b...@billgatliff.com --- drivers/pwm/Kconfig|9 ++ drivers/pwm/Makefile |2 + drivers/pwm/gpio-pwm.c | 354

[PWM v3: 3/3] PWM: Atmel PWMC driver

2011-02-10 Thread Bill Gatliff
Driver to allow the Atmel PWMC peripheral found on various AT91 SoCs to be controlled using the Generic PWM framework. Tested on the AT91SAM9263. Signed-off-by: Bill Gatliff b...@billgatliff.com --- drivers/pwm/Kconfig |8 + drivers/pwm/Makefile |1 + drivers/pwm/atmel-pwmc.c

[PWM v4 3/3] PWM: Atmel PWMC driver

2011-02-12 Thread Bill Gatliff
Driver to allow the Atmel PWMC peripheral found on various AT91 SoCs to be controlled using the Generic PWM framework. Tested on the AT91SAM9263. Signed-off-by: Bill Gatliff b...@billgatliff.com --- drivers/pwm/Kconfig |8 + drivers/pwm/Makefile |1 + drivers/pwm/atmel-pwmc.c

[PWM v4 1/3] PWM: Implement a generic PWM framework

2011-02-12 Thread Bill Gatliff
as time permits. Eventually, the current PWM implementation will be deprecated and then expunged. Signed-off-by: Bill Gatliff b...@billgatliff.com --- Documentation/pwm.txt | 277 ++ drivers/Kconfig |2 + drivers/Makefile|2 + drivers/pwm/Kconfig

Re: [PWM v4 2/3] PWM: GPIO+hrtimer device emulation

2011-02-12 Thread Bill Gatliff
.  is that useful if they cant call any of the config funcs ? Users of gpio_pwm aren't supposed to call the config functions in gpio-pwm.c, they are supposed to invoke them indirectly via the regular PWM API (pwm.c). b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send

Re: [PWM v3: 1/3] PWM: Implement a generic PWM framework

2011-02-14 Thread Bill Gatliff
allow it. b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PWM v3: 1/3] PWM: Implement a generic PWM framework

2011-02-16 Thread Bill Gatliff
to do. This fact is what motivated my design of the pwm_config() function. We have threaded interrupts for this. I haven't thought about hrtimers though. Yes, I'm aware of threaded interrupts. But I don't want to mandate them in situations where the hardware doesn't require them. b.g. -- Bill

[PWM v5 0/3] Implement a generic PWM framework

2011-02-19 Thread Bill Gatliff
see here is at last suitable for pulling into mainline. Finally, the attached code CAN be used to control devices that drive stepper motors and the like, but doing so is discouraged as I am anticipating a request to develop an API specifically for such situations. Regards, b.g. Bill Gatliff (3

[PWM v5 1/3] PWM: Implement a generic PWM framework

2011-02-19 Thread Bill Gatliff
as time permits. Eventually, the current PWM implementation will be deprecated and then expunged. Signed-off-by: Bill Gatliff b...@billgatliff.com --- Documentation/pwm.txt | 277 + drivers/Kconfig |2 + drivers/Makefile|2 + drivers/pwm/Kconfig

Re: [PWM v5 1/3] PWM: Implement a generic PWM framework

2011-02-20 Thread Bill Gatliff
, but I had never thought about it before now... b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PWM v5 2/3] PWM: GPIO+hrtimer device emulation

2011-02-20 Thread Bill Gatliff
Mike: Yep. My rebasing technique obviously needs some work! :) b.g. -- Bill Gatliff b...@billgatliff.com -- To unsubscribe from this list: send the line unsubscribe linux-embedded in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

  1   2   >