[kernel] Add the generic PWM api from Bill Gatliff (experimental). Ignore the leds...
[openwrt.git] / target / linux / generic-2.6 / patches-2.6.34 / 890-generic_pwm_api.patch
1 Patches from: Bill Gatliff <bgat@billgatliff.com>
2 Based on:
3 * Expunge old Atmel PWMC driver, replacing it with one that conforms to the PWM API
4 * Incorporate PWM API code into KBuild
5 Ignore the LEDS part atm
6 ---
7
8 diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile
9 index 049ff24..b94666c 100644
10 --- a/drivers/misc/Makefile
11 +++ b/drivers/misc/Makefile
12 @@ -5,7 +5,6 @@
13  obj-$(CONFIG_IBM_ASM)          += ibmasm/
14  obj-$(CONFIG_HDPU_FEATURES)    += hdpuftrs/
15  obj-$(CONFIG_AD525X_DPOT)      += ad525x_dpot.o
16 -obj-$(CONFIG_ATMEL_PWM)                += atmel_pwm.o
17  obj-$(CONFIG_ATMEL_SSC)                += atmel-ssc.o
18  obj-$(CONFIG_ATMEL_TCLIB)      += atmel_tclib.o
19  obj-$(CONFIG_ICS932S401)       += ics932s401.o
20 diff --git a/drivers/Kconfig b/drivers/Kconfig
21 index 368ae6d..54d7b16 100644
22 --- a/drivers/Kconfig
23 +++ b/drivers/Kconfig
24 @@ -54,6 +54,8 @@ source "drivers/pps/Kconfig"
25  
26  source "drivers/gpio/Kconfig"
27  
28 +source "drivers/pwm/Kconfig"
29 +
30  source "drivers/w1/Kconfig"
31  
32  source "drivers/power/Kconfig"
33 diff --git a/drivers/Makefile b/drivers/Makefile
34 index 6ee53c7..e6143f3 100644
35 --- a/drivers/Makefile
36 +++ b/drivers/Makefile
37 @@ -6,6 +6,8 @@
38  #
39  
40  obj-y                          += gpio/
41 +obj-$(CONFIG_GENERIC_PWM)      += pwm/
42 +
43  obj-$(CONFIG_PCI)              += pci/
44  obj-$(CONFIG_PARISC)           += parisc/
45  obj-$(CONFIG_RAPIDIO)          += rapidio/
46 diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig