mfd: Add ACPI support to Kontron PLD driver
authorMichael Brunner <Michael.Brunner@kontron.com>
Thu, 20 Aug 2020 15:39:14 +0000 (15:39 +0000)
committerLee Jones <lee.jones@linaro.org>
Wed, 30 Sep 2020 16:46:27 +0000 (17:46 +0100)
commite8299c7313af857254bc4304bc37482e9b952481
tree7a8cdd23832ea13568062230d999606beeb96098
parent876611c493b10cbb59e0e2143d3e744d0442de63
mfd: Add ACPI support to Kontron PLD driver

Recent Kontron COMe modules identify the PLD device using the hardware
id KEM0001 in the ACPI table.
This patch adds support for probing the device using the HID and also
retrieving the resources.

As this is not available for all products, the DMI based detection still
needs to be around for older systems. It is executed if no matching ACPI
HID is found during registering the platform driver or no specific
device id is forced.
If a device is detected using ACPI and no resource information is
available, the default io resource is used.

Forcing a device id with the force_device_id parameter and therefore
manually generating a platform device takes precedence over ACPI during
probing.

Signed-off-by: Michael Brunner <michael.brunner@kontron.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/kempld-core.c