From 031e3104c03172a40bff338ef2f15cb220150c86 Mon Sep 17 00:00:00 2001 From: Roman Yeryomin Date: Wed, 21 Nov 2012 21:49:32 +0200 Subject: Add Andrew's gpio patches. Closes #2. Signed-off-by: Roman Yeryomin --- .../realtek/patches-2.6.30/304-add-rtlgpio.patch | 28 ++++++++++++++++++++++ .../305-add-gpio-driver-switching.patch | 25 +++++++++++++++++++ .../306-make-gpio-rtl-honor-switch.patch | 11 +++++++++ 3 files changed, 64 insertions(+) create mode 100644 target/linux/realtek/patches-2.6.30/304-add-rtlgpio.patch create mode 100644 target/linux/realtek/patches-2.6.30/305-add-gpio-driver-switching.patch create mode 100644 target/linux/realtek/patches-2.6.30/306-make-gpio-rtl-honor-switch.patch (limited to 'target/linux/realtek/patches-2.6.30') diff --git a/target/linux/realtek/patches-2.6.30/304-add-rtlgpio.patch b/target/linux/realtek/patches-2.6.30/304-add-rtlgpio.patch new file mode 100644 index 000000000..45b62390b --- /dev/null +++ b/target/linux/realtek/patches-2.6.30/304-add-rtlgpio.patch @@ -0,0 +1,28 @@ +--- a/drivers/gpio/Makefile 2012-11-05 14:07:42.074262520 +0400 ++++ b/drivers/gpio/Makefile 2012-11-05 14:08:18.327603410 +0400 +@@ -10,5 +10,6 @@ + obj-$(CONFIG_GPIO_PCA953X) += pca953x.o + obj-$(CONFIG_GPIO_PCF857X) += pcf857x.o + obj-$(CONFIG_GPIO_TWL4030) += twl4030-gpio.o +-obj-$(CONFIG_GPIO_XILINX) += xilinx_gpio.o ++obj-$(CONFIG_GPIO_RTL) += rtl_gpio.o + obj-$(CONFIG_GPIO_BT8XX) += bt8xxgpio.o ++ +--- a/drivers/gpio/Kconfig 2012-11-05 14:07:47.534263615 +0400 ++++ b/drivers/gpio/Kconfig 2012-11-05 14:07:58.770932541 +0400 +@@ -73,6 +73,15 @@ + help + Say yes here to support the Xilinx FPGA GPIO device + ++config GPIO_RTL ++ bool "Realtek RTL819x GPIO support" ++ help ++ Say yes here to support the Realtek GPIO found in ++ RTL819x boards. Please note, that this is a hacky ++ backport ++ ++ ++ + comment "I2C GPIO expanders:" + + config GPIO_MAX732X diff --git a/target/linux/realtek/patches-2.6.30/305-add-gpio-driver-switching.patch b/target/linux/realtek/patches-2.6.30/305-add-gpio-driver-switching.patch new file mode 100644 index 000000000..9dc6548b6 --- /dev/null +++ b/target/linux/realtek/patches-2.6.30/305-add-gpio-driver-switching.patch @@ -0,0 +1,25 @@ +--- linux-2.6.30.9.a/arch/rlx/Kconfig 2012-11-05 14:18:41.701066133 +0400 ++++ linux-2.6.30.9.b/arch/rlx/Kconfig 2012-11-05 14:16:50.864374834 +0400 +@@ -139,6 +139,22 @@ + config RTL_FLASH_MAPPING_ENABLE + bool "Enable Flash Mapping" + ++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 POCKET_ROUTER_SUPPORT + bool "Pocket router support" + diff --git a/target/linux/realtek/patches-2.6.30/306-make-gpio-rtl-honor-switch.patch b/target/linux/realtek/patches-2.6.30/306-make-gpio-rtl-honor-switch.patch new file mode 100644 index 000000000..e0c259713 --- /dev/null +++ b/target/linux/realtek/patches-2.6.30/306-make-gpio-rtl-honor-switch.patch @@ -0,0 +1,11 @@ +--- a/drivers/char/Makefile 2012-11-05 14:22:46.404451333 +0400 ++++ b/drivers/char/Makefile 2012-11-05 14:23:57.307799712 +0400 +@@ -98,7 +98,7 @@ + obj-$(CONFIG_GPIO_VR41XX) += vr41xx_giu.o + obj-$(CONFIG_GPIO_TB0219) += tb0219.o + obj-$(CONFIG_TELCLOCK) += tlclk.o +-obj-$(CONFIG_RTL_819X) += rtl_gpio.o ++obj-$(CONFIG_RTL_GPIO) += rtl_gpio.o + obj-$(CONFIG_RTL_NFBI_MDIO) += rtl_mdio/ + + obj-$(CONFIG_MWAVE) += mwave/ -- cgit v1.2.3