summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/patches-2.6.30/305-add-gpio-driver-switching.patch
blob: 079c9ae94735a23cdc57c6f3ad85819fe684589c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
commit 0e7132f6f0530cdafb84c56525a8b7885bd659a7
Author: Roman Yeryomin <roman@advem.lv>
Date:   Tue Feb 5 02:31:46 2013 +0200

    adopt 305-add-gpio-driver-switching.patch
    
    Signed-off-by: Roman Yeryomin <roman@advem.lv>

diff --git a/arch/rlx/Kconfig b/arch/rlx/Kconfig
index 94bf573..7fe4efc 100644
--- a/arch/rlx/Kconfig
+++ b/arch/rlx/Kconfig
@@ -275,6 +275,22 @@ config GENERIC_ISA_DMA_SUPPORT_BROKEN
 config GENERIC_GPIO
 	bool
 
+choice
+
+prompt "GPIO Driver to use"
+
+config RTL_GPIO
+       bool "Use realtek's GPIO driver"
+
+config RTL_NGPIO
+       bool "Use Necromant's gpiolib driver (recommended)"
+       select GENERIC_GPIO
+       select ARCH_REQUIRE_GPIOLIB
+       select GPIO_RTL
+       default y
+
+endchoice
+
 config SWAP_IO_SPACE
 	bool