gpio: loongson-64bit: Extend GPIO irq support
authorBinbin Zhou <zhoubinbin@loongson.cn>
Mon, 14 Jul 2025 06:45:42 +0000 (14:45 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 16 Jul 2025 09:33:50 +0000 (11:33 +0200)
commit27cb8f702eb789f97f7a8bd5a91d76c65a937b2f
treebac2294ef7dc189efe6b50c96d1121e3ad821360
parent5103fbb7b59f7a078284a345d82bdab0f0ee6d08
gpio: loongson-64bit: Extend GPIO irq support

Add the interrupt enable register offset (inten_offset) so that GPIO
interrupts can be enabled normally on more models.

According to the latest interface specifications, the definition of GPIO
interrupts in ACPI is similar to that in FDT. The GPIO interrupts are
listed one by one according to the GPIO number, and the corresponding
interrupt number can be obtained directly through the GPIO number
specified by the consumer.

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
Reviewed-by: Huacai Chen <chenhuacai@loongson.cn>
Link: https://lore.kernel.org/r/20250714064542.2276247-1-zhoubinbin@loongson.cn
[Bartosz: tweaked the commit message]
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-loongson-64bit.c