mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
gpio: kempld: Implement the interrupt controller
Add a GPIO IRQ chip implementation for the kempld GPIO controller. Of note is only how the parent IRQ is obtained. The IRQ for the GPIO controller can be configured in the BIOS, along with the IRQ for the I2C controller. These IRQ are returned by ACPI but this information is only usable if both IRQ are configured. When only one is configured, only one is returned making it impossible to know which one it is. Luckily the BIOS will set the configured IRQ in the PLD registers, so it can be read from there instead, and that also work on platforms without ACPI. The vendor driver allowed to override the IRQ using a module parameters, so there are boards in field which used this parameter instead of properly configuring the BIOS. This implementation provides this as well for compatibility. Signed-off-by: Alban Bedel <alban.bedel@lht.dlh.de> Link: https://patch.msgid.link/20260311143120.2179347-5-alban.bedel@lht.dlh.de Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
This commit is contained in:
committed by
Bartosz Golaszewski
parent
2443c2e122
commit
a25f48fd92
@@ -1440,6 +1440,7 @@ config GPIO_JANZ_TTL
|
||||
config GPIO_KEMPLD
|
||||
tristate "Kontron ETX / COMexpress GPIO"
|
||||
depends on MFD_KEMPLD
|
||||
select GPIOLIB_IRQCHIP
|
||||
help
|
||||
This enables support for the PLD GPIO interface on some Kontron ETX
|
||||
and COMexpress (ETXexpress) modules.
|
||||
|
||||
Reference in New Issue
Block a user