53fd7796a15d2c8a87b67d9983bd399b9b5e3e47
[openwrt/openwrt.git] / target / linux / ar7 / patches-2.6.24 / 120-gpio_chrdev.patch
1 Index: linux-2.6.23-rc6/drivers/char/Kconfig
2 ===================================================================
3 --- linux-2.6.23-rc6.orig/drivers/char/Kconfig 2007-09-21 16:23:51.000000000 +0800
4 +++ linux-2.6.23-rc6/drivers/char/Kconfig 2007-09-21 16:24:12.000000000 +0800
5 @@ -928,6 +928,15 @@
6 To compile this driver as a module, choose M here: the
7 module will be called mwave.
8
9 +config AR7_GPIO
10 + tristate "TI AR7 GPIO Support"
11 + depends on AR7
12 + help
13 + Give userspace access to the GPIO pins on the Texas Instruments AR7
14 + processors.
15 +
16 + If compiled as a module, it will be called ar7_gpio.
17 +
18 config SCx200_GPIO
19 tristate "NatSemi SCx200 GPIO Support"
20 depends on SCx200
21 Index: linux-2.6.23-rc6/drivers/char/Makefile
22 ===================================================================
23 --- linux-2.6.23-rc6.orig/drivers/char/Makefile 2007-09-21 16:23:51.000000000 +0800
24 +++ linux-2.6.23-rc6/drivers/char/Makefile 2007-09-21 16:24:12.000000000 +0800
25 @@ -89,6 +89,7 @@
26 obj-$(CONFIG_PPDEV) += ppdev.o
27 obj-$(CONFIG_NWBUTTON) += nwbutton.o
28 obj-$(CONFIG_NWFLASH) += nwflash.o
29 +obj-$(CONFIG_AR7_GPIO) += ar7_gpio.o
30 obj-$(CONFIG_SCx200_GPIO) += scx200_gpio.o
31 obj-$(CONFIG_PC8736x_GPIO) += pc8736x_gpio.o
32 obj-$(CONFIG_NSC_GPIO) += nsc_gpio.o