SPEAr320: Add pwm support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 3 patches 1 replyIn review
Patches in v1 No applies recorded yet
None of the 3 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] SPEAr320: Add pwm support
Quoted 40 lines · viresh kumar
Quoted 31 lines · Arnd Bergmann
No objection to your patch, but I think we need to have a long-term plan for pwm:
arnd at wuerfel:~/linux-2.6$ git ls-files | grep
pwm.carch/arm/mach-exynos4/include/mach/pwm-clock.harch/arm/mach-mxs/devices/platform-mxs-pwm.carch/arm/mach-s3c64xx/include/mach/pwm-clock.harch/arm/mach-s5p64x0/include/mach/pwm-clock.harch/arm/mach-s5pc100/include/mach/pwm-clock.harch/arm/mach-s5pv210/include/mach/pwm-clock.harch/arm/mach-vt8500/pwm.carch/arm/plat-mxc/devices/platform-mxc_pwm.carch/arm/plat-mxc/pwm.carch/arm/plat-pxa/pwm.carch/arm/plat-s3c24xx/include/mach/pwm-clock.harch/arm/plat-samsung/dev-pwm.carch/arm/plat-samsung/pwm-clock.carch/arm/plat-samsung/pwm.carch/mips/jz4740/pwm.carch/unicore32/kernel/pwm.cdrivers/leds/leds-atmel-pwm.cdrivers/leds/leds-pwm.cdrivers/mfd/twl6030-pwm.cdrivers/misc/ab8500-pwm.cdrivers/misc/atmel_pwm.cdrivers/misc/ep93xx_pwm.cMy rough feeling is that what this should look like is a new subsystem that exports a set of operations and has specific drivers, like:
Quoted 7 lines
drivers/pwm/Kconfigdrivers/pwm/pwm_core.cdrivers/pwm/pwm_pxa.cdrivers/pwm/pwm_unicore.cdrivers/pwm/pwm_st.cdrivers/pwm/pwm_...
Quoted 2 lines
Sascha sent a patchset for something similar earlier. But don't know what happened to it.
Nothing yet, unfortunately. It was a straight forward implementation which basically implements the existing pwm functions and adds register/unregister functions.
Bill Gatliff posts a pwm framework since 2008. I wasn't aware of his patches by the time I wrote my pwm layer. Bills patches target more the motor controller use case and are (in my opinion) too complicated. I can't agree on his approach, but didn't want to go with competing patches either.
As Bills patches still didn't make it into the kernel Maybe it's time to respin my version.
For reference, find my patches here:
https://lkml.org/lkml/2011/1/28/92
Sascha
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |