Skip to content

Commit

Permalink
gpio/davinci: add interrupt support for GPIOs 16-31
Browse files Browse the repository at this point in the history
Interrupts for GPIOs 16 through 31 are enabled by bit 1 in the
"binten" register (offset 8). Previous versions of GPIO only
used bit 0, which enables GPIO 0-15 interrupts.

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Reviewed-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Vitaly Andrianov authored and Linus Walleij committed Jul 17, 2015
1 parent 2563606 commit 3685bbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpio-davinci.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ static int davinci_gpio_irq_setup(struct platform_device *pdev)
chips[0].chip.to_irq = gpio_to_irq_unbanked;
chips[0].gpio_irq = bank_irq;
chips[0].gpio_unbanked = pdata->gpio_unbanked;
binten = BIT(0);
binten = GENMASK(pdata->gpio_unbanked / 16, 0);

/* AINTC handles mask/unmask; GPIO handles triggering */
irq = bank_irq;
Expand Down

0 comments on commit 3685bbc

Please sign in to comment.