summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorRoman Yeryomin <roman@advem.lv>2013-07-11 17:30:18 +0300
committerRoman Yeryomin <roman@advem.lv>2013-07-11 17:30:18 +0300
commitb21bbe56a47af9df9a7d3b2d1fa5bc8bcccae4bd (patch)
treea3d3528825c629c67c7135a9e4dc10a2056595e4 /target
parent8d04e9d26f772cf2709222f6e1dbd9b15a115e66 (diff)
Add/fix gpiolib support for realtek 8196c. References #22.
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Diffstat (limited to 'target')
-rw-r--r--target/linux/realtek/config-2.6.305
-rw-r--r--target/linux/realtek/patches-2.6.30/add-gpiolib-support.patch21
2 files changed, 26 insertions, 0 deletions
diff --git a/target/linux/realtek/config-2.6.30 b/target/linux/realtek/config-2.6.30
index 1ba553a93..b0ab7dd9e 100644
--- a/target/linux/realtek/config-2.6.30
+++ b/target/linux/realtek/config-2.6.30
@@ -20,6 +20,7 @@ CONFIG_ARCH_IRQ_CPU=y
CONFIG_ARCH_IRQ_VEC=y
CONFIG_ARCH_BUS_PCI=y
# CONFIG_ARCH_BUS_PCI_MSI is not set
+CONFIG_ARCH_REQUIRE_GPIOLIB=y
#
# System Configuration
@@ -136,6 +137,9 @@ CONFIG_GENERIC_TIME=y
# CONFIG_GENERIC_CMOS_UPDATE is not set
CONFIG_SCHED_OMIT_FRAME_POINTER=y
# CONFIG_NO_IOPORT is not set
+CONFIG_GPIOLIB=y
+# CONFIG_DEBUG_GPIO is not set
+CONFIG_GPIO_SYSFS=y
#
# Kernel type
@@ -1063,6 +1067,7 @@ CONFIG_USB_GADGET_VBUS_DRAW=500
# CONFIG_AUXDISPLAY is not set
# CONFIG_UIO is not set
# CONFIG_STAGING is not set
+# CONFIG_USB_GPIO_VBUS is not set
#
# File systems
diff --git a/target/linux/realtek/patches-2.6.30/add-gpiolib-support.patch b/target/linux/realtek/patches-2.6.30/add-gpiolib-support.patch
new file mode 100644
index 000000000..88f60e4a7
--- /dev/null
+++ b/target/linux/realtek/patches-2.6.30/add-gpiolib-support.patch
@@ -0,0 +1,21 @@
+--- linux-2.6.30.9/drivers/gpio/gpiolib.c 2013-07-11 17:26:56.283467173 +0300
++++ linux-2.6.30.9/drivers/gpio/gpiolib.c 2013-07-11 17:07:42.298560582 +0300
+@@ -1152,7 +1152,7 @@
+ : "? ");
+
+ if (!is_out) {
+- int irq = gpio_to_irq(gpio);
++ int irq = __gpio_to_irq(gpio);
+ struct irq_desc *desc = irq_to_desc(irq);
+
+ /* This races with request_irq(), set_irq_type(),
+--- linux-2.6.30.9/arch/rlx/config.in.rtl8196c 2013-07-11 17:28:15.693460745 +0300
++++ linux-2.6.30.9/arch/rlx/config.in.rtl8196c 2013-07-11 16:42:12.030684449 +0300
+@@ -3,6 +3,7 @@
+
+ config RTL_8196C
+ def_bool y
++ select ARCH_REQUIRE_GPIOLIB
+
+ #
+ # Processor Config