diff options
author | Stijn Tintel <stijn@linux-ipv6.be> | 2016-08-24 01:08:32 +0300 |
---|---|---|
committer | Stijn Tintel <stijn@linux-ipv6.be> | 2016-08-24 01:08:32 +0300 |
commit | df047234786ce61c3fd36bf9cf098d21737ae199 (patch) | |
tree | 80e43a7f47e10ffcb12801a6e0c7a664a18ff465 /target/linux/gemini/patches-4.4/050-gpio-to-irq.patch | |
parent | 012873074f372ea01d861eccce008b57b1453008 (diff) | |
download | upstream-df047234786ce61c3fd36bf9cf098d21737ae199.tar.gz upstream-df047234786ce61c3fd36bf9cf098d21737ae199.tar.bz2 upstream-df047234786ce61c3fd36bf9cf098d21737ae199.zip |
gemini: rename patches directory to patches-4.4
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'target/linux/gemini/patches-4.4/050-gpio-to-irq.patch')
-rw-r--r-- | target/linux/gemini/patches-4.4/050-gpio-to-irq.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/gemini/patches-4.4/050-gpio-to-irq.patch b/target/linux/gemini/patches-4.4/050-gpio-to-irq.patch new file mode 100644 index 0000000000..7572849864 --- /dev/null +++ b/target/linux/gemini/patches-4.4/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, + }; |