diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-26 20:36:30 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-26 20:36:30 +0000 |
commit | b83cc973cec0cf2010a43ff094c418d8573fe5be (patch) | |
tree | ef820bef132e9e1fe6d7c46ba3a46700f591ad80 /target/linux/gemini/patches-3.18/050-gpio-to-irq.patch | |
parent | 2a4b34d5cc74eb3b2f30919cb675cdf2c19b73d4 (diff) | |
download | master-187ad058-b83cc973cec0cf2010a43ff094c418d8573fe5be.tar.gz master-187ad058-b83cc973cec0cf2010a43ff094c418d8573fe5be.tar.bz2 master-187ad058-b83cc973cec0cf2010a43ff094c418d8573fe5be.zip |
gemini: add 3.18 support
Signed-off-by: Roman Yeryomin <roman@advem.lv>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45033 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/gemini/patches-3.18/050-gpio-to-irq.patch')
-rw-r--r-- | target/linux/gemini/patches-3.18/050-gpio-to-irq.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/gemini/patches-3.18/050-gpio-to-irq.patch b/target/linux/gemini/patches-3.18/050-gpio-to-irq.patch new file mode 100644 index 0000000000..18b0abdac6 --- /dev/null +++ b/target/linux/gemini/patches-3.18/050-gpio-to-irq.patch @@ -0,0 +1,21 @@ +--- a/arch/arm/mach-gemini/gpio.c 2015-03-01 10:34:52.492113048 +0100 ++++ b/arch/arm/mach-gemini/gpio.c 2015-03-01 10:34:59.876498159 +0100 +@@ -196,12 +196,18 @@ + return 0; + } + ++static int gemini_gpio_to_irq(struct gpio_chip *chip, unsigned gpio) ++{ ++ return gpio + GPIO_IRQ_BASE; ++} ++ + static struct gpio_chip gemini_gpio_chip = { + .label = "Gemini", + .direction_input = gemini_gpio_direction_input, + .get = gemini_gpio_get, + .direction_output = gemini_gpio_direction_output, + .set = gemini_gpio_set, ++ .to_irq = gemini_gpio_to_irq, + .base = 0, + .ngpio = GPIO_PORT_NUM * 32, + }; |