]> git.ipfire.org Git - thirdparty/linux.git/commit
ARM: omap1: Fix up the Nokia 770 board device IRQs
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 30 Apr 2023 09:12:54 +0000 (11:12 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 24 May 2023 13:01:43 +0000 (15:01 +0200)
commit084b6f216778b4109123b396b531f12ff6c354e9
tree9979c895e1b5384081a2daebdc842fb146ddbabe
parente519f0bb64efc2c9c8b67bb2d114dda458bdc34d
ARM: omap1: Fix up the Nokia 770 board device IRQs

The platform devices on the Nokia 770 is using some
board-specific IRQs that get statically assigned to platform
devices in the boardfile.

This does not work with dynamic IRQ chip bases.

Utilize the NULL device to define some board-specific
GPIO lookups and use these to immediately look up the
same GPIOs, convert to IRQ numbers and pass as resources
to the devices. This is ugly but should work.

Fixes: 92bf78b33b0b ("gpio: omap: use dynamic allocation of base")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-omap1/board-nokia770.c