From a304f3d2b6605e237d4ad080feb51d53bbb82b19 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 26 Mar 2015 20:36:30 +0000 Subject: gemini: add 3.18 support Signed-off-by: Roman Yeryomin SVN-Revision: 45033 --- .../linux/gemini/patches-3.18/050-gpio-to-irq.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 target/linux/gemini/patches-3.18/050-gpio-to-irq.patch (limited to 'target/linux/gemini/patches-3.18/050-gpio-to-irq.patch') 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 0000000..18b0abd --- /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, + }; -- cgit v1.1