diff options
author | John Crispin <john@openwrt.org> | 2015-07-14 07:43:10 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-07-14 07:43:10 +0000 |
commit | d5d3b5e49cf7f7ea8c46605236cbe06eaa850d42 (patch) | |
tree | f9d68e440f707d5ee0cd3015f8bf542650735ee1 /target/linux/gemini/patches-4.1/050-gpio-to-irq.patch | |
parent | 023b0e0b38e9a6a9f30d04576ad665ac053b3661 (diff) | |
download | upstream-d5d3b5e49cf7f7ea8c46605236cbe06eaa850d42.tar.gz upstream-d5d3b5e49cf7f7ea8c46605236cbe06eaa850d42.tar.bz2 upstream-d5d3b5e49cf7f7ea8c46605236cbe06eaa850d42.zip |
gemini: add 4.1 support
Signed-off-by: Roman Yeryomin <roman@advem.lv>
SVN-Revision: 46353
Diffstat (limited to 'target/linux/gemini/patches-4.1/050-gpio-to-irq.patch')
-rw-r--r-- | target/linux/gemini/patches-4.1/050-gpio-to-irq.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/gemini/patches-4.1/050-gpio-to-irq.patch b/target/linux/gemini/patches-4.1/050-gpio-to-irq.patch new file mode 100644 index 0000000000..7572849864 --- /dev/null +++ b/target/linux/gemini/patches-4.1/050-gpio-to-irq.patch @@ -0,0 +1,21 @@ +--- a/arch/arm/mach-gemini/gpio.c ++++ b/arch/arm/mach-gemini/gpio.c +@@ -196,12 +196,18 @@ static int gemini_gpio_direction_output( + 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, + }; |