add generic GPIO to MIPS boards, use it for au1000 and for the MTX-1 led driver as...
[openwrt/openwrt.git] / target / linux / generic-2.6 / patches / 013-mips_generic_gpio_support.patch
1 --- linux-2.6.21.1/arch/mips/Kconfig 2007-04-27 23:49:26.000000000 +0200
2 +++ linux-2.6.21.1-owrt/arch/mips/Kconfig 2007-05-24 13:51:13.000000000 +0200
3 @@ -869,6 +869,10 @@
4 bool
5 default y
6
7 +config GENERIC_GPIO
8 + bool
9 + default n
10 +
11 config SCHED_NO_NO_OMIT_FRAME_POINTER
12 bool
13 default y
14 --- linux-2.6.21.1/include/asm-mips/gpio.h 1970-01-01 01:00:00.000000000 +0100
15 +++ linux-2.6.21.1-owrt/include/asm-mips/gpio.h 2007-05-24 13:51:13.000000000 +0200
16 @@ -0,0 +1,6 @@
17 +#ifndef _ASM_MIPS_GPIO_H
18 +#define _ASM_MIPS_GPIO_H
19 +
20 +#include <gpio.h>
21 +
22 +#endif /* _ASM_MIPS_GPIO_H */
23 --- linux-2.6.21.1/arch/mips/defconfig 2007-04-27 23:49:26.000000000 +0200
24 +++ linux-2.6.21.1-owrt/arch/mips/defconfig 2007-05-24 14:37:52.000000000 +0200
25 @@ -71,6 +71,7 @@
26 CONFIG_GENERIC_HWEIGHT=y
27 CONFIG_GENERIC_CALIBRATE_DELAY=y
28 CONFIG_GENERIC_TIME=y
29 +CONFIG_GENERIC_GPIO=n
30 CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y
31 # CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ is not set
32 CONFIG_ARC=y