Re: Question about GPIO Lib

2012-02-01 Thread Bill Gatliff
make this work even better. b.g. -- Bill Gatliff b...@billgatliff.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: Question about GPIO Lib

2012-01-31 Thread Bill Gatliff
Bruce: On Mon, Jan 30, 2012 at 6:06 PM, bruce_leon...@selinc.com wrote: Bill Gatliff b...@billgatliff.com wrote on 01/27/2012 10:42:57 AM: Sounds like you DON'T want to merely export that GPIO pin to userspace. Well, yes I do want to just export to userspace I misunderstood your message

Re: Question about GPIO Lib

2012-01-27 Thread Bill Gatliff
be exportable to userspace anyway. Regardless, you are probably better off implement a DEVICE_ATTR that, in its store() method, treads lightly on said pin. And then do a gpio_request() in kernel space so that users can't ever see the pin directly. Just my $0.02. b.g. -- Bill Gatliff b

Re: Question on supporting multiple HW versions with a single driver (warning: long post)

2011-02-07 Thread Bill Gatliff
can see an example of what I'm trying to do? Bruce ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev -- Bill Gatliff b...@billgatliff.com

Re: Xorg on Fujitsu Lime with MPC5200b?

2010-04-15 Thread Bill Gatliff
Roman Fietze wrote: Hallo Bill, On Thursday 15 April 2010 05:07:08 Bill Gatliff wrote: Actually, I *have* Debian squeeze's xorg running on the platform just fine, with a 2.6.34-rc1 kernel (kernel.org). Problem is, every single diagonal line is very blocky--- not smooth at all

Re: Xorg on Fujitsu Lime with MPC5200b?

2010-04-15 Thread Bill Gatliff
I would love it if you posted your code! Thanks!! b.g. On Apr 15, 2010 8:53 AM, Roman Fietze roman.fie...@telemotive.de wrote: Hello Bill, On Thursday 15 April 2010 15:01:59 Bill Gatliff wrote: Are you talking about this code here? ... Yes. I added a routine like /* Swap frame buffer

Re: Xorg on Fujitsu Lime with MPC5200b?

2010-04-15 Thread Bill Gatliff
. Can I just hack shadowUpdatePacked() itself? b.g. -- Bill Gatliff b...@billgatliff.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: Xorg on Fujitsu Lime with MPC5200b?

2010-04-15 Thread Bill Gatliff
in other SoCs... Thanks! b.g. -- Bill Gatliff b...@billgatliff.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Xorg on Fujitsu Lime with MPC5200b?

2010-04-14 Thread Bill Gatliff
to start with this one? Anyone else running a similar configuration with any success? I'm completely lost, and running out of hair *fast*... Thanks! b.g. -- Bill Gatliff b...@billgatliff.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org

kernel BUG at kernel/timer.c:643!

2010-04-12 Thread Bill Gatliff
Is anyone seeing this message on an MPC5200 platform with the current HEAD from Linus Torvalds' git repo? I just did a rebase, and started seeing it... b.g. -- Bill Gatliff b...@billgatliff.com ___ Linuxppc-dev mailing list Linuxppc-dev

Re: A better way to sequence driver initialization?

2010-04-10 Thread Bill Gatliff
Benjamin Herrenschmidt wrote: On Fri, 2010-04-09 at 14:23 -0500, Bill Gatliff wrote: My recent post, Requesting a GPIO that hasn't been registered yet, and Anton's reply thereto (thanks, Anton!) on linuxppc-dev got me thinking about the problem of dependencies between devices in different

Re: A better way to sequence driver initialization?

2010-04-10 Thread Bill Gatliff
Grant Likely wrote: On Fri, Apr 9, 2010 at 1:23 PM, Bill Gatliff b...@billgatliff.com wrote: Guys: My recent post, Requesting a GPIO that hasn't been registered yet, and Anton's reply thereto (thanks, Anton!) on linuxppc-dev got me thinking about the problem of dependencies between

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 ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

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 ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

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 ___ Linuxppc-dev

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 ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

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-09 Thread Bill Gatliff
Bill Gatliff wrote: ... and kset_register() might be the only place that calls wake_up_interruptible(). Wow. Wow, indeed. With just the attached patch, I get exactly one OOPS now--- in ssc_free(), which I think is getting called because atmel_ssc_modinit() is racing with something. I

Requesting a GPIO that hasn't been registered yet

2010-03-30 Thread Bill Gatliff
! Any suggestions? Thanks!! b.g. -- Bill Gatliff b...@billgatliff.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: Sleep-capable GPIO slave-selects on MPC52xx?

2010-01-12 Thread Bill Gatliff
Bill Gatliff wrote: It looks like the current version of the MPC52xx SPI driver won't work with sleep-capable GPIOs for slave-selects. In particular, it looks like mpc52xx_spi_fsmstate_transfer() is an interrupt handler that calls mpc52xx_spi_chipsel(), which itself calls gpio_set_value

Sleep-capable GPIO slave-selects on MPC52xx?

2010-01-11 Thread Bill Gatliff
, or is this a known (or at least now-identified) limitation of the current mpc52xx_spi.c? Thanks! b.g. -- Bill Gatliff Embedded systems training and consulting http://billgatliff.com b...@billgatliff.com ___ Linuxppc-dev mailing list Linuxppc-dev

Re: How to set GPIO state in the dts or in platform

2010-01-06 Thread Bill Gatliff
Ayman El-Khashab wrote: On 1/5/2010 10:38 PM, Bill Gatliff wrote: Ayman El-Khashab wrote: I've got a custom board akin to the walnut. I've successfully got u-boot, the kernel, and a working filesystem. The only thing I lack is a clear idea of how to set a GPIO. Isn't

Re: [PATCH 0/2] Create an of_i2c_gpiochip_add()

2010-01-06 Thread Bill Gatliff
Bill Gatliff wrote: This patch series creates an of_i2c_gpiochip_add() function, to allow i2c-based GPIO expanders to work with device tree gpio specifications. So nobody has any yays or nays on this? I was expecting at least _something_! :) Does the lack of response mean I'll be seeing

Re: [PATCH 0/2] Create an of_i2c_gpiochip_add()

2010-01-06 Thread Bill Gatliff
was in the discussion of being removed, this might complicate things, too. Is this the right mailing list for such patches, though? b.g. -- Bill Gatliff Embedded systems training and consulting http://billgatliff.com b...@billgatliff.com

[PATCH 2/2] Create an of_i2c_gpiochip_add()

2010-01-05 Thread Bill Gatliff
Signed-off-by: Bill Gatliff b...@billgatliff.com --- drivers/of/gpio.c | 55 + 1 files changed, 55 insertions(+), 0 deletions(-) diff --git a/drivers/of/gpio.c b/drivers/of/gpio.c index 6eea601..56b438a 100644 --- a/drivers/of/gpio.c +++ b

[PATCH 0/2] Create an of_i2c_gpiochip_add()

2010-01-05 Thread Bill Gatliff
This patch series creates an of_i2c_gpiochip_add() function, to allow i2c-based GPIO expanders to work with device tree gpio specifications. Bill Gatliff (2): Create a struct of_i2c_gpio_chip, for i2c-based GPIO devices Create an of_i2c_gpiochip_add() drivers/of/gpio.c | 55

[PATCH 1/2] Create a struct of_i2c_gpio_chip, for i2c-based GPIO devices

2010-01-05 Thread Bill Gatliff
Signed-off-by: Bill Gatliff b...@billgatliff.com --- include/linux/of_gpio.h | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/include/linux/of_gpio.h b/include/linux/of_gpio.h index fc2472c..0c39242 100644 --- a/include/linux/of_gpio.h +++ b/include

[PATCH 0/2] *** SUBJECT HERE ***

2010-01-05 Thread Bill Gatliff
*** BLURB HERE *** Bill Gatliff (2): Use struct of_i2c_gpio_chip instead of raw struct gpio_chip Reorder initialization to better support device tree data drivers/gpio/pca953x.c | 168 +--- 1 files changed, 88 insertions(+), 80 deletions

[PATCH 1/2] Use struct of_i2c_gpio_chip instead of raw struct gpio_chip

2010-01-05 Thread Bill Gatliff
, an ordinary struct gpio_chip is employed. Signed-off-by: Bill Gatliff b...@billgatliff.com --- drivers/gpio/pca953x.c | 50 ++- 1 files changed, 36 insertions(+), 14 deletions(-) diff --git a/drivers/gpio/pca953x.c b/drivers/gpio/pca953x.c index b097043

[PATCH 2/2] Reorder initialization to better support device tree data

2010-01-05 Thread Bill Gatliff
This patch changes the initialization sequence implemented in pca953x_probe(), so as to simplify the retrieval of device tree data when device trees are used. Incorporates the new of_i2c_gpiochip_add() function to register the newly-added GPIOs. Signed-off-by: Bill Gatliff b...@billgatliff.com

[RFC/PATCH 0/2] Updates to improve device tree support

2010-01-05 Thread Bill Gatliff
. The of_i2c_gpiochip_add() function has been posted for review on the linuxppc-dev mailing list. Bill Gatliff (2): Use struct of_i2c_gpio_chip instead of raw struct gpio_chip Reorder initialization to better support device tree data drivers/gpio/pca953x.c | 168

Re: [PATCH 0/2] *** SUBJECT HERE ***

2010-01-05 Thread Bill Gatliff
Bill Gatliff wrote: *** BLURB HERE *** Dangit, sometimes I really hate it when emacs leaves its backup files around... :( Like now, for example. Please disregard the noise generated by my careless use of filename wildcards... b.g. -- Bill Gatliff Embedded systems training

Re: How to set GPIO state in the dts or in platform

2010-01-05 Thread Bill Gatliff
for the flags, try a 1. I know of at least one driver that interprets that to mean a polarity inversion. Maybe you'll get lucky. :) b.g. -- Bill Gatliff Embedded systems training and consulting http://billgatliff.com b...@billgatliff.com

Re: Question on MPC52xx IRQ[123] pins

2009-12-31 Thread Bill Gatliff
, you switch the irq type to the opposite setting. I think that approach rates pretty high on the ugly scale too, but perhaps tolerably so. In fact, were I to actually need to interface one of the IRQ lines to gpiolib, I might attempt this... b.g. -- Bill Gatliff Embedded systems training

Re: Trouble specifying dts gpio-leds with GPIO expander chip

2009-12-31 Thread Bill Gatliff
Anton Vorontsov wrote: Though, soon there will be an easier way to register I2C/SPI chips with the OF GPIO infrastructure. Should this make me hesitate to update the pca953x driver, or clone it? b.g. -- Bill Gatliff Embedded systems training and consulting http://billgatliff.com b

[PATCH 1/1] Adds gpio_to_irq() and related support to the mpc52xx_gpio WKUP peripheral driver

2009-12-30 Thread Bill Gatliff
operations. Signed-off-by: Bill Gatliff b...@billgatliff.com --- arch/powerpc/platforms/52xx/mpc52xx_gpio.c | 328 ++- 1 files changed, 267 insertions(+), 61 deletions(-) diff --git a/arch/powerpc/platforms/52xx/mpc52xx_gpio.c b/arch/powerpc/platforms/52xx/mpc52xx_gpio.c

Re: [PATCH 1/1] Adds gpio_to_irq() and related support to the mpc52xx_gpio WKUP peripheral driver

2009-12-30 Thread Bill Gatliff
Bill Gatliff wrote: Second, the previously-unimplemented gpio_to_irq() function was added, using __gpio_to_irq(). The author does not know why this code was previously left out of arch/powerpc/include/asm/gpio.h. It seems to work. The generic irq_to_gpio() function was not tested

Re: Does gpio_to_irq() work for MPC52xx gpios?

2009-12-29 Thread Bill Gatliff
Peter Korsgaard wrote: Bill == Bill Gatliff b...@billgatliff.com writes: Bill Guys: Bill Is it possible to specify an individual GPIO pin as an interrupt source Bill with the current MPC52xx code? No (not yet). In Ben's latest pull request there's a patch from me to add

Re: Does gpio_to_irq() work for MPC52xx gpios?

2009-12-23 Thread Bill Gatliff
. I'm taking a look at that code now, planning to adapt it for the MPC52xx unless someone raises any objections. b.g. -- Bill Gatliff b...@billgatliff.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo

Re: Does gpio_to_irq() work for MPC52xx gpios?

2009-12-23 Thread Bill Gatliff
Bill Gatliff wrote: Peter Korsgaard wrote: No (not yet). In Ben's latest pull request there's a patch from me to add basic infrastructure for gpio_to_irq(). I've recently added irq support to the mpc8xxx driver, but so far nothing has been written for 52xx. http://patchwork.ozlabs.org

Re: Does gpio_to_irq() work for MPC52xx gpios?

2009-12-23 Thread Bill Gatliff
. -- Bill Gatliff b...@billgatliff.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: Does gpio_to_irq() work for MPC52xx gpios?

2009-12-23 Thread Bill Gatliff
Bill Gatliff wrote: Guys: Ok, I have gpio_to_irq() more-or-less showing signs of life for the MPC5200. But I'm having some trouble using it the way I want to. I think I've got the idea all of a sudden. In order to describe the inputs to my rotary encoder using the syntax I want, I have

Does gpio_to_irq() work for MPC52xx gpios?

2009-12-22 Thread Bill Gatliff
that code to allow me to register an interrupt handler for a specific GPIO pin just isn't there... b.g. -- Bill Gatliff b...@billgatliff.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Trouble specifying dts gpio-leds with GPIO expander chip

2009-12-21 Thread Bill Gatliff
? Anyone have any suggestions? b.g. -- Bill Gatliff b...@billgatliff.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Question on MPC52xx IRQ[123] pins

2009-12-21 Thread Bill Gatliff
, it turns out. Almost like trying to reuse a PCI driver as a platform driver. I didn't spot how important that was until I started hacking on the code itself... Thanks! b.g. -- Bill Gatliff b...@billgatliff.com ___ Linuxppc-dev mailing list Linuxppc

Re: Accessing flash directly from User Space

2009-10-27 Thread Bill Gatliff
Jonathan Haws wrote: How can I get that pointer? Unfortunately I cannot simply use the address of the flash. Is there some magical function call that gives me access to that portion of the memory space? $ man 2 mmap You want MAP_SHARED and O_SYNC. b.g. -- Bill Gatliff b

Re: Accessing flash directly from User Space

2009-10-27 Thread Bill Gatliff
to have a file descriptor to a device, do I not? However, I do not have a base flash driver to give me that file descriptor. Am I missing something with that call? /dev/mem b.g. -- Bill Gatliff b...@billgatliff.com ___ Linuxppc-dev mailing

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

2008-11-25 Thread Bill Gatliff
Matt Sealey wrote: I can think of a bunch of reasons why it's a good idea.. Can you point to a GPL/LGPL/BSD/etc. source code for an OpenFirmware implementation? b.g. -- Bill Gatliff [EMAIL PROTECTED] ___ Linuxppc-dev mailing list Linuxppc-dev

Proposal for a Generic PWM Device API posted on linux-embedded

2008-10-15 Thread Bill Gatliff
it will be useful for many others as well. Kindest regards, b.g. -- Bill Gatliff [EMAIL PROTECTED] ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: Floating inputs on unused GPIO pins

2008-10-13 Thread Bill Gatliff
Freescale-branded docs to back you up. I say, write the code and make everyone else happy. :) At least until someone plugs in that expansion module! b.g. -- Bill Gatliff [EMAIL PROTECTED] ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https

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

2008-10-10 Thread Bill Gatliff
David Woodhouse wrote: Subscriber-only lists are broken. Just don't use them. You owe me a new keyboard! :) b.g. -- Bill Gatliff [EMAIL PROTECTED] ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc

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] ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc

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

2008-10-10 Thread Bill Gatliff
Jon Smirl wrote: What do the device tree deities have to say about PWM support? Dunno. What lists are they on? :) b.g. -- Bill Gatliff [EMAIL PROTECTED] ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo

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

2008-10-10 Thread Bill Gatliff
Benjamin Herrenschmidt wrote: On Wed, 2008-10-08 at 11:43 -0500, Bill Gatliff wrote: Signed-off-by: Bill Gatliff [EMAIL PROTECTED] --- And you haven't provided -any- changeset comment. That isn't good :-) What's the easiest way to do that with git? I'm using git-format-patch and git-send

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] ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo

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] ___ Linuxppc-dev mailing list

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

2008-10-09 Thread Bill Gatliff
output, and the billion other things.. /me blushes Aw, shucks. I'm just glad I could help. :) b.g. -- Bill Gatliff [EMAIL PROTECTED] ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

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

2008-10-09 Thread Bill Gatliff
Benjamin Herrenschmidt wrote: On Wed, 2008-10-08 at 11:43 -0500, Bill Gatliff wrote: This series proposes a generic PWM driver API. This proposed API is motivated by the author's need to support pluggable devices; a secondary objective is to consolidate the existing PWM implementations

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

2008-10-08 Thread Bill Gatliff
identified. The proposed code has 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

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

2008-10-08 Thread Bill Gatliff
Signed-off-by: Bill Gatliff [EMAIL PROTECTED] --- drivers/leds/Kconfig | 21 -- drivers/leds/Makefile |2 + drivers/leds/leds-pwm.c| 141 drivers/leds/ledtrig-dim.c | 95 + include/linux/pwm

[RFC 3/6] [PWM] Documentation

2008-10-08 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

[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