]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP1: ams-delta FIQ: don't use static GPIO numbers
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>
Thu, 21 Jun 2018 22:41:24 +0000 (00:41 +0200)
committerTony Lindgren <tony@atomide.com>
Tue, 3 Jul 2018 06:05:14 +0000 (23:05 -0700)
commit23376c49659bcaf2cb31876133a046224e45081f
treec9520ee9b3fcd34fa2d22300da456649dd5541e7
parent931dd9e0e815cb244e22dd2c33fe7421ecf5f535
ARM: OMAP1: ams-delta FIQ: don't use static GPIO numbers

With introduction of GPIO lookup tables to Amstrad Delta board init
file, semantics of symbols representing OMAP GPIO pins defined in
<mach/board-ams-delta.h> changed from statically assigned global GPIO
numbers to hardware pin numbers local to OMAP "gpio-0-15" chip.

This patch modifies deferred FIQ interrupt handler so it no longer uses
static GPIO numbers in favour of IRQ data descriptors obtained at FIQ
initialization time from descriptor of the GPIO chip with use of its
hardware pin numbers.  The chip descriptor is passed from the board
init file.

As a benefit, the deferred FIQ handler should work faster.

Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
[tony@atomide.com: removed duplicate gpiochip_match_by_label]
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/ams-delta-fiq.c
arch/arm/mach-omap1/board-ams-delta.c
arch/arm/mach-omap1/include/mach/ams-delta-fiq.h