Skip to content

Commit

Permalink
pwm: Move PUV3 PWM driver to PWM framework
Browse files Browse the repository at this point in the history
This commit moves the driver to drivers/pwm and converts it to the new
PWM framework.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Tested-by: Qin Rui <qinrui@mprc.pku.edu.cn>
Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
  • Loading branch information
Thierry Reding committed Oct 5, 2012
1 parent 5384e27 commit 79c11b6
Show file tree
Hide file tree
Showing 6 changed files with 174 additions and 231 deletions.
12 changes: 2 additions & 10 deletions arch/unicore32/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ config UNICORE32
designs licensed by PKUnity Ltd.
Please see web page at <http://www.pkunity.com/>.

config HAVE_PWM
bool

config GENERIC_GPIO
def_bool y

Expand Down Expand Up @@ -105,7 +102,8 @@ config PUV3_DB0913

config PUV3_NB0916
bool "NetBook board (0916)"
select HAVE_PWM
select PWM
select PWM_PUV3

config PUV3_SMW0919
bool "Security Mini-Workstation board (0919)"
Expand Down Expand Up @@ -219,12 +217,6 @@ config PUV3_GPIO
select GPIO_SYSFS if EXPERIMENTAL
default y

config PUV3_PWM
tristate
default BACKLIGHT_PWM
help
Enable support for NB0916 PWM controllers

if PUV3_NB0916

menu "PKUnity NetBook-0916 Features"
Expand Down
1 change: 0 additions & 1 deletion arch/unicore32/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ obj-$(CONFIG_UNICORE_FPU_F64) += fpu-ucf64.o
obj-$(CONFIG_ARCH_PUV3) += clock.o irq.o time.o

obj-$(CONFIG_PUV3_GPIO) += gpio.o
obj-$(CONFIG_PUV3_PWM) += pwm.o
obj-$(CONFIG_PUV3_PM) += pm.o sleep.o
obj-$(CONFIG_HIBERNATION) += hibernate.o hibernate_asm.o

Expand Down
219 changes: 0 additions & 219 deletions arch/unicore32/kernel/pwm.c

This file was deleted.

11 changes: 10 additions & 1 deletion drivers/pwm/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
menuconfig PWM
bool "Pulse-Width Modulation (PWM) Support"
depends on !MACH_JZ4740 && !PUV3_PWM
depends on !MACH_JZ4740
help
Generic Pulse-Width Modulation (PWM) support.

Expand Down Expand Up @@ -76,6 +76,15 @@ config PWM_MXS
To compile this driver as a module, choose M here: the module
will be called pwm-mxs.

config PWM_PUV3
tristate "PKUnity NetBook-0916 PWM support"
depends on ARCH_PUV3
help
Generic PWM framework driver for PKUnity NetBook-0916.

To compile this driver as a module, choose M here: the module
will be called pwm-puv3.

config PWM_PXA
tristate "PXA PWM support"
depends on ARCH_PXA
Expand Down
1 change: 1 addition & 0 deletions drivers/pwm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ obj-$(CONFIG_PWM_BFIN) += pwm-bfin.o
obj-$(CONFIG_PWM_IMX) += pwm-imx.o
obj-$(CONFIG_PWM_LPC32XX) += pwm-lpc32xx.o
obj-$(CONFIG_PWM_MXS) += pwm-mxs.o
obj-$(CONFIG_PWM_PUV3) += pwm-puv3.o
obj-$(CONFIG_PWM_PXA) += pwm-pxa.o
obj-$(CONFIG_PWM_SAMSUNG) += pwm-samsung.o
obj-$(CONFIG_PWM_TEGRA) += pwm-tegra.o
Expand Down
Loading

0 comments on commit 79c11b6

Please sign in to comment.