diff options
author | Roman <roman.yeryomin@gmail.com> | 2016-08-22 16:50:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-22 16:50:20 +0300 |
commit | 5b3bb5ce52670e53238d9fa7a3bab39ee75200c0 (patch) | |
tree | bcc43b6756b543f6056ccb7ddec766d77f636fc8 /target/linux/gemini/patches-4.4/050-gpio-to-irq.patch | |
parent | a1b1b78a316b045fc586be9dcdec4e64ab597b87 (diff) | |
parent | 81feceaa26b2de05d620d269abad0d9b8c86b097 (diff) | |
download | master-187ad058-5b3bb5ce52670e53238d9fa7a3bab39ee75200c0.tar.gz master-187ad058-5b3bb5ce52670e53238d9fa7a3bab39ee75200c0.tar.bz2 master-187ad058-5b3bb5ce52670e53238d9fa7a3bab39ee75200c0.zip |
Merge pull request #67 from yeryomin/gemini
gemini: add 4.4 support
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, + }; |